Permalink
Browse files

dunst

  • Loading branch information...
neeasade committed Jan 25, 2019
1 parent 06df482 commit ac8012cb6b42b9bd2b485fd4348282cd9747cffd
Showing with 39 additions and 30 deletions.
  1. +15 −26 templates/dunstrc
  2. +1 −1 wm/.wm/scripts/theming/defaults
  3. +23 −3 wm/.wm/scripts/theming/ltheme
@@ -1,35 +1,24 @@
[global]
font = {{d_font}}
allow_markup = yes
format = "<b>%s</b>\n%b"
markup = full
format = "%s\n%b"
sort = yes
indicate_hidden = yes
alignment = left
bounce_freq = 0
alignment = center
show_age_threshold = 60
word_wrap = yes
ignore_newline = no
geometry = "200x200-10-10"
shrink = no
transparency = 0
idle_threshold = 120
monitor = 0
geometry = "{{p_geometry}}"
idle_threshold = 60
follow = mouse
sticky_history = yes
word_wrap = yes
history_length = 20
show_indicators = yes
line_height = 0
separator_height = 2
padding = 8
horizontal_padding = 8
separator_color = auto
startup_notification = false
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/{{BROWSER}}
separator_height = {{b_border_width}}
padding = {{st_borderpx}}
horizontal_padding = {{st_borderpx}}
separator_color = frame
browser = {{BROWSER}}
icon_position = off
icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
# icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
frame_width = {{b_border_width}}
frame_color = "{{d_border_color}}"
frame_color = "{{b_focused_border_color}}"

[shortcuts]
close = ctrl+space
@@ -40,12 +29,12 @@
[urgency_low]
background = "#{{p_bg_normal}}"
foreground = "#{{p_fg_normal}}"
timeout = 10
timeout = 0

[urgency_normal]
background = "#{{p_bg_normal}}"
foreground = "#{{p_fg_normal}}"
timeout = 10
timeout = 0

[urgency_critical]
background = "#{{p_bg_active}}"
@@ -122,7 +122,7 @@ GTK_FONT="Droid Sans 10" # GTK font to be used.

# dunst
d_font="Droid Sans 10" # Font used by dunst on startup
d_border_color="$b_normal_border_color" # Font used by dunst on startup
d_border_color="$b_normal_border_color"

# compton
c_frame_opacity="1.0"
@@ -236,12 +236,32 @@ load_qutebrowser() {
load_dunst() {
trim_alphas

# geometry will hail from settings at the time this is called re: gap, panel
pgrep lemonbar || p_height=0

# still want it a _little_ in if we are not gapped
[ $(bspc config window_gap) -le 0 ] && b_window_gap=$st_borderpx

[ $b_border_width -gt 4 ] && b_border_width=$(( $b_border_width/2 ))
[ $st_borderpx -gt 12 ] && st_borderpx=$(( $st_borderpx/2 ))

# WIDTHxHEIGHT+XOFF+YOFF
# height is the number of notifications that can be open

d_width=400

# top center
# mon_width=$(bspc query -T -m | jq -r .rectangle.width)
# d_x_middle=$(( (mon_width / 2) - (d_width/2) ))
# p_geometry="${d_width}x6+${d_x_middle}+$((b_window_gap + p_height))"

# top right
p_geometry="${d_width}x6-${b_window_gap}+$((b_window_gap + p_height))"

margs dunstrc .config/dunst/dunstrc

pkill -x dunst
sleep 2 # dunst needs delay(?)
setsid dunst
pkill dunst
# dunst will auto-launch on notify-send call
}

load_mpd() {

0 comments on commit ac8012c

Please sign in to comment.