This commit is contained in:
Klesh Wong 2020-10-13 09:42:26 +08:00
commit 4c6dec51cd
3 changed files with 9 additions and 5 deletions

View File

@ -40,7 +40,7 @@ case "$PM" in
PAC_PKG_NAME=fonts-wqy-microhei_0.2.0-beta-3_all.pkg
[[ ! -f /tmp/$DEB_PKG_NAME ]] && \
wget http://mirrors.163.com/debian/pool/main/f/fonts-wqy-microhei/$DEB_PKG_NAME -O /tmp/$DEB_PKG_NAME
ar p /tmp/$DEB_PKG_NAME.data.tar.xz | sudo.tar.-Jxv -C /
ar p /tmp/$DEB_PKG_NAME data.tar.xz | sudo tar Jxv -C /
# install symbola for plain emojis(no-color) for st
yay -S --needed ttf-symbola-free
# clipboard
@ -79,7 +79,7 @@ install-nerdfont () {
https://gitee.com/klesh/nerd-fonts.git \
$LOCAL_REPO_PATH
sudo 7z x -x!'*Windows*' -aoa $LOCAL_REPO_PATH/$NAME -o/usr/local/share/fonts
sudo chmod +x /usr/local/share/fonts
sudo chmod +rx /usr/local/share/fonts
echo $LOCAL_REPO_PATH
rm -rf $LOCAL_REPO_PATH
}

View File

@ -9,10 +9,11 @@ $HOME/.config/dunst/launch.sh
# start dwmbar daemon
$HOME/.config/dwm/dwmbar
# setup screen locker
xset s 300
# disable screen saver / turn off monitor if inactived for 300 secs
xset s off
xset dpms 300 300 300
killall xss-lock
xss-lock --ignore-sleep (which slock) &
xss-lock (which slock) &
# start network applet
pgrep -x nm-applet || nm-applet &

View File

@ -2,6 +2,9 @@
function update
if pgrep slock
return
end
set -x text
if test -f /tmp/recording.pid
set text $text "🎥"