Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2020-11-21 13:54:12 +08:00
commit 17c51fb00e
8 changed files with 16 additions and 34 deletions

View File

@ -1,5 +0,0 @@
#!/bin/sh
killall -q dunst
while pgrep -x dunst >/dev/null; do sleep 1; done
dunst &

View File

@ -1,19 +0,0 @@
#!/bin/sh
DIR=$(dirname "$(readlink -f "$0")")
. "$DIR/../env.sh"
# install nvim
case "$PM" in
apt)
sudo apt install -y dunst
;;
pacman)
sudo pacman -S --needed dunst
;;
esac
# symlink configuration
lnsf "$DIR/content/dunstrc" "$XDG_CONFIG_HOME/dunst/dunstrc"
sudo cp -f "$DIR/content/dunstdaemon" "$PREFIX/bin"
sudo chmod +x "$PREFIX/bin/dunstdaemon"

View File

@ -29,7 +29,7 @@
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "400x5-30+50"
geometry = "400x20+30+50"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
@ -51,7 +51,7 @@
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
separator_height = 0
# Padding between text and separator.
padding = 8
@ -61,10 +61,10 @@
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 0
frame_width = 1
# Defines color of the frame around the notification window.
frame_color = "#aaaaaa"
frame_color = "#666666"
# Define a color for the separator.
# possible values are:
@ -85,7 +85,7 @@
### Text ###
font = Hermit 9
font = sans 9
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
@ -211,6 +211,12 @@
# layout changes.
force_xinerama = false
mouse_left_click = do_action
mouse_middle_click = close_all
mouse_right_click = close_current
dmenu = /usr/local/bin/dmenu
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]

View File

@ -13,6 +13,7 @@ case "$PM" in
fonts-wqy-microhei \
fonts-symbola \
fonts-dejavu-core \
dunst \
gucharmap
# network manager
sudo apt install \
@ -36,6 +37,7 @@ case "$PM" in
gsfonts \
ttf-cascadia-code \
ttf-dejavu \
dunst \
gucharmap
# official wqy-microhei package doesn't fix the Korean Glyphs stacking bug
# https://code.google.com/p/chromium/issues/detail?id=233851
@ -104,5 +106,6 @@ sudo systemctl start NetworkManager
sudo ln -sf /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
sudo ln -sf /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
sudo ln -sf /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
sudo cp "$DIR/freetype2.sh" "/etc/profile.d/freetype2.sh"
sudo cp "$DIR/local.conf" "/etc/fonts/local.conf"
sudo cp "$DIR/content/freetype2.sh" "/etc/profile.d/freetype2.sh"
sudo cp "$DIR/content/local.conf" "/etc/fonts/local.conf"
lnsf "$DIR/content/dunstrc" "$XDG_CONFIG_HOME/dunst/dunstrc"

View File

@ -3,9 +3,6 @@
# start compositor daemon
picomdaemon
# start desktop notification daemon
dunstdaemon
# start dwmbar daemon
statusbar