Switch from xfce4-notifyd to dunst

This commit is contained in:
Sravan Balaji
2024-05-02 08:27:14 -04:00
parent 7a9ce2935c
commit 0861b724d1
8 changed files with 51 additions and 35 deletions

View File

@@ -32,10 +32,10 @@ modifcolor=ff5555ff
bgcolor=282a36ff bgcolor=282a36ff
prelock() { prelock() {
/home/sravan/.scripts/xfce4-notifyd.sh --pause /home/sravan/.scripts/dunst.sh --pause
} }
# custom postlock # custom postlock
postlock() { postlock() {
/home/sravan/.scripts/xfce4-notifyd.sh --unpause /home/sravan/.scripts/dunst.sh --unpause
} }

View File

@@ -13,7 +13,7 @@ rofi_menu() {
declare -a options=( declare -a options=(
"󱕅 Compositor - picom" "󱕅 Compositor - picom"
"󰍹 Display - brightness" "󰍹 Display - brightness"
"󰂚 Notifications - xfce4-notifyd" "󰂚 Notifications - dunst"
" Media - playerctl" " Media - playerctl"
"󰕾 Volume - pactl" "󰕾 Volume - pactl"
"󰁯 Backup - backup" "󰁯 Backup - backup"
@@ -50,8 +50,8 @@ main() {
--brightness) --brightness)
/home/sravan/.scripts/brightness.sh --rofi /home/sravan/.scripts/brightness.sh --rofi
;; ;;
--xfce4-notifyd) --dunst)
/home/sravan/.scripts/xfce4-notifyd.sh --rofi /home/sravan/.scripts/dunst.sh --rofi
;; ;;
--playerctl) --playerctl)
/home/sravan/.scripts/playerctl.sh --rofi /home/sravan/.scripts/playerctl.sh --rofi

View File

@@ -29,6 +29,8 @@ rofi_menu() {
" Close Notification - close" " Close Notification - close"
" View History - history" " View History - history"
"󰂠 Toggle Do Not Disturb - dnd" "󰂠 Toggle Do Not Disturb - dnd"
" Pause Popup Notifications - pause"
" Unpause Popup Notifications - unpause"
"󰌍 Back - back" "󰌍 Back - back"
"󰗼 Quit - quit" "󰗼 Quit - quit"
) )
@@ -122,6 +124,12 @@ main() {
--dnd) --dnd)
dunstctl set-paused toggle dunstctl set-paused toggle
;; ;;
--pause)
dunstctl set-paused true
;;
--unpause)
dunstctl set-paused false
;;
--rofi) --rofi)
rofi_menu rofi_menu
;; ;;

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
/home/sravan/.scripts/picom.sh --on & /home/sravan/.scripts/picom.sh --on &
/home/sravan/.scripts/xfce4-notifyd.sh --unpause & /home/sravan/.scripts/dunst.sh --unpause &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced & /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive & /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false & /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &

View File

@@ -2,5 +2,5 @@
/home/sravan/.scripts/picom.sh --off & /home/sravan/.scripts/picom.sh --off &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance & /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance & /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance &
/home/sravan/.scripts/xfce4-notifyd.sh --pause & /home/sravan/.scripts/dunst.sh --pause &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true & /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
declare -a startup_array=(\ declare -a startup_array=(\
# Background Processes # Background Processes
"/usr/lib64/xfce4/notifyd/xfce4-notifyd" \ # XFCE Notification Daemon "bash /home/sravan/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
"bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor
"/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent
@@ -14,15 +14,15 @@ declare -a startup_array=(\
declare -a kill_startup_array=(\ declare -a kill_startup_array=(\
# Background Processes # Background Processes
"pkill xfce4-notifyd" \ # XFCE Notification Daemon "bash /home/sravan/.scripts/dunst.sh --off" \ # Dunst Notification Daemon
"pkill picom" \ # Picom Compositor "bash /home/sravan/.scripts/picom.sh --off" \ # Picom Compositor
"pkill greenclip" \ # Greenclip Clipboard Manager "pkill greenclip" \ # Greenclip Clipboard Manager
"pkill polkit" \ # GNOME Polkit Authentication Agent "pkill polkit" \ # GNOME Polkit Authentication Agent
"pkill xss-lock" \ # Session Lock Utility "pkill xss-lock" \ # Session Lock Utility
"pkill kdeconnectd" \ # KDE Connect Daemon "pkill kdeconnectd" \ # KDE Connect Daemon
"pkill redshift" \ # Redshift Blue Light Filter "pkill redshift" \ # Redshift Blue Light Filter
"pkill unclutter" \ # Hide Mouse Cursor "pkill unclutter" \ # Hide Mouse Cursor
"pkill easyeffects" \ # Easy Effects PipeWire Plugins "pkill easyeffects" \ # Easy Effects PipeWire Plugins
) )
declare -a delay_array=(\ declare -a delay_array=(\

View File

@@ -887,6 +887,8 @@ rofi_menu() {
" Close Notification - close" " Close Notification - close"
" View History - history" " View History - history"
"󰂠 Toggle Do Not Disturb - dnd" "󰂠 Toggle Do Not Disturb - dnd"
" Pause Popup Notifications - pause"
" Unpause Popup Notifications - unpause"
"󰌍 Back - back" "󰌍 Back - back"
"󰗼 Quit - quit" "󰗼 Quit - quit"
) )
@@ -980,6 +982,12 @@ main() {
--dnd) --dnd)
dunstctl set-paused toggle dunstctl set-paused toggle
;; ;;
--pause)
dunstctl set-paused true
;;
--unpause)
dunstctl set-paused false
;;
--rofi) --rofi)
rofi_menu rofi_menu
;; ;;
@@ -3847,7 +3855,7 @@ bgcolor=282a36ff
#+BEGIN_SRC conf :tangle .config/betterlockscreen/betterlockscreenrc #+BEGIN_SRC conf :tangle .config/betterlockscreen/betterlockscreenrc
prelock() { prelock() {
/home/sravan/.scripts/xfce4-notifyd.sh --pause /home/sravan/.scripts/dunst.sh --pause
} }
#+END_SRC #+END_SRC
@@ -3856,7 +3864,7 @@ prelock() {
#+BEGIN_SRC conf :tangle .config/betterlockscreen/betterlockscreenrc #+BEGIN_SRC conf :tangle .config/betterlockscreen/betterlockscreenrc
# custom postlock # custom postlock
postlock() { postlock() {
/home/sravan/.scripts/xfce4-notifyd.sh --unpause /home/sravan/.scripts/dunst.sh --unpause
} }
#+END_SRC #+END_SRC
@@ -8406,7 +8414,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
/home/sravan/.scripts/picom.sh --off & /home/sravan/.scripts/picom.sh --off &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance & /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-performance &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance & /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance &
/home/sravan/.scripts/xfce4-notifyd.sh --pause & /home/sravan/.scripts/dunst.sh --pause &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true & /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true &
#+END_SRC #+END_SRC
@@ -8416,7 +8424,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle .scripts/game_exit.sh #+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle .scripts/game_exit.sh
/home/sravan/.scripts/picom.sh --on & /home/sravan/.scripts/picom.sh --on &
/home/sravan/.scripts/xfce4-notifyd.sh --unpause & /home/sravan/.scripts/dunst.sh --unpause &
/home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced & /home/sravan/.scripts/cpu-gpu.sh --cpu-profile-balanced &
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive & /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-adaptive &
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false & /usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false &
@@ -9717,7 +9725,7 @@ Xcursor.size: CURSOR_SIZE
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle .scripts/startup.sh #+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle .scripts/startup.sh
declare -a startup_array=(\ declare -a startup_array=(\
# Background Processes # Background Processes
"/usr/lib64/xfce4/notifyd/xfce4-notifyd" \ # XFCE Notification Daemon "bash /home/sravan/.scripts/dunst.sh --on" \ # Dunst Notification Daemon
"bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor "bash /home/sravan/.scripts/picom.sh --on" \ # Picom Compositor
"/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager "/usr/bin/greenclip daemon" \ # Greenclip Clipboard Manager
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" \ # GNOME Polkit Authentication Agent
@@ -9730,15 +9738,15 @@ declare -a startup_array=(\
declare -a kill_startup_array=(\ declare -a kill_startup_array=(\
# Background Processes # Background Processes
"pkill xfce4-notifyd" \ # XFCE Notification Daemon "bash /home/sravan/.scripts/dunst.sh --off" \ # Dunst Notification Daemon
"pkill picom" \ # Picom Compositor "bash /home/sravan/.scripts/picom.sh --off" \ # Picom Compositor
"pkill greenclip" \ # Greenclip Clipboard Manager "pkill greenclip" \ # Greenclip Clipboard Manager
"pkill polkit" \ # GNOME Polkit Authentication Agent "pkill polkit" \ # GNOME Polkit Authentication Agent
"pkill xss-lock" \ # Session Lock Utility "pkill xss-lock" \ # Session Lock Utility
"pkill kdeconnectd" \ # KDE Connect Daemon "pkill kdeconnectd" \ # KDE Connect Daemon
"pkill redshift" \ # Redshift Blue Light Filter "pkill redshift" \ # Redshift Blue Light Filter
"pkill unclutter" \ # Hide Mouse Cursor "pkill unclutter" \ # Hide Mouse Cursor
"pkill easyeffects" \ # Easy Effects PipeWire Plugins "pkill easyeffects" \ # Easy Effects PipeWire Plugins
) )
declare -a delay_array=(\ declare -a delay_array=(\
@@ -10448,7 +10456,7 @@ rofi_menu() {
declare -a options=( declare -a options=(
"󱕅 Compositor - picom" "󱕅 Compositor - picom"
"󰍹 Display - brightness" "󰍹 Display - brightness"
"󰂚 Notifications - xfce4-notifyd" "󰂚 Notifications - dunst"
" Media - playerctl" " Media - playerctl"
"󰕾 Volume - pactl" "󰕾 Volume - pactl"
"󰁯 Backup - backup" "󰁯 Backup - backup"
@@ -10485,8 +10493,8 @@ main() {
--brightness) --brightness)
/home/sravan/.scripts/brightness.sh --rofi /home/sravan/.scripts/brightness.sh --rofi
;; ;;
--xfce4-notifyd) --dunst)
/home/sravan/.scripts/xfce4-notifyd.sh --rofi /home/sravan/.scripts/dunst.sh --rofi
;; ;;
--playerctl) --playerctl)
/home/sravan/.scripts/playerctl.sh --rofi /home/sravan/.scripts/playerctl.sh --rofi