Switch Back to dwm & Deadd Notifications

This commit is contained in:
Sravan Balaji
2023-04-30 09:52:37 -04:00
parent d51b35bbce
commit 4b8edf6b32
8 changed files with 30 additions and 26 deletions

View File

@@ -32,10 +32,10 @@ modifcolor=ff5555ff
bgcolor=282a36ff bgcolor=282a36ff
prelock() { prelock() {
/home/sravan/.scripts/naughty.sh --pause /home/sravan/.scripts/deadd.sh --pause
} }
# custom postlock # custom postlock
postlock() { postlock() {
/home/sravan/.scripts/naughty.sh --unpause /home/sravan/.scripts/deadd.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 - naughty" " Notifications - deadd"
" 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
;; ;;
--naughty) --deadd)
/home/sravan/.scripts/naughty.sh --rofi /home/sravan/.scripts/deadd.sh --rofi
;; ;;
--playerctl) --playerctl)
/home/sravan/.scripts/playerctl.sh --rofi /home/sravan/.scripts/playerctl.sh --rofi

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
/home/sravan/.scripts/naughty.sh --unpause /home/sravan/.scripts/deadd.sh --unpause
/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

@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
/home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/picom.sh --off
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance
/home/sravan/.scripts/naughty.sh --pause /home/sravan/.scripts/deadd.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

@@ -11,7 +11,7 @@ help_menu() {
rofi_menu() { rofi_menu() {
declare -a options=( declare -a options=(
"勒 Restart AwesomeWM - restart" "勒 Restart dwm - restart"
" Logout - logout" " Logout - logout"
" Lock - lock" " Lock - lock"
"⏾ Sleep - sleep" "⏾ Sleep - sleep"
@@ -42,8 +42,8 @@ main() {
help_menu help_menu
;; ;;
--logout) --logout)
notify-send "Session Control" "Logging Out of AwesomeWM" notify-send "Session Control" "Logging Out of dwm"
/usr/bin/awesome-client "awesome.quit()" xdotool key Super+Shift_L+q
;; ;;
--lock) --lock)
notify-send "Session Control" "Locking Session" notify-send "Session Control" "Locking Session"
@@ -66,8 +66,8 @@ main() {
systemctl hibernate systemctl hibernate
;; ;;
--restart) --restart)
notify-send "Session Control" "Restarting AwesomeWM" notify-send "Session Control" "Restarting dwm"
/usr/bin/awesome-client "awesome.restart()" xdotool key Super+Control_L+Shift_L+q
;; ;;
--rofi) --rofi)
rofi_menu rofi_menu

View File

@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
declare -a startup_array=(\ declare -a startup_array=(\
# Background Processes # Background Processes
"bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center
"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
@@ -12,6 +13,7 @@ declare -a startup_array=(\
declare -a kill_startup_array=(\ declare -a kill_startup_array=(\
# Background Processes # Background Processes
"pkill deadd-notificat" \ # Deadd Notification Center
"pkill picom" \ # Picom Compositor "pkill picom" \ # Picom Compositor
"pkill greenclip" \ # Greenclip Clipboard Manager "pkill greenclip" \ # Greenclip Clipboard Manager
"pkill polkit" \ # GNOME Polkit Authentication Agent "pkill polkit" \ # GNOME Polkit Authentication Agent

View File

@@ -19,4 +19,4 @@ xrdb ~/.Xresources
/home/sravan/.scripts/startup.sh --kill-delay && /home/sravan/.scripts/startup.sh --kill-delay &&
/home/sravan/.scripts/startup.sh --delay) & /home/sravan/.scripts/startup.sh --delay) &
exec awesome exec dwm

View File

@@ -3223,7 +3223,7 @@ bgcolor=282a36ff
#+BEGIN_SRC conf :tangle .config/betterlockscreenrc #+BEGIN_SRC conf :tangle .config/betterlockscreenrc
prelock() { prelock() {
/home/sravan/.scripts/naughty.sh --pause /home/sravan/.scripts/deadd.sh --pause
} }
#+END_SRC #+END_SRC
@@ -3232,7 +3232,7 @@ prelock() {
#+BEGIN_SRC conf :tangle .config/betterlockscreenrc #+BEGIN_SRC conf :tangle .config/betterlockscreenrc
# custom postlock # custom postlock
postlock() { postlock() {
/home/sravan/.scripts/naughty.sh --unpause /home/sravan/.scripts/deadd.sh --unpause
} }
#+END_SRC #+END_SRC
@@ -7362,7 +7362,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh
/home/sravan/.scripts/picom.sh --off /home/sravan/.scripts/picom.sh --off
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance /home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance
/home/sravan/.scripts/naughty.sh --pause /home/sravan/.scripts/deadd.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
@@ -7371,7 +7371,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
*Preferences > System options > Post-exit script* *Preferences > System options > Post-exit script*
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh
/home/sravan/.scripts/naughty.sh --unpause /home/sravan/.scripts/deadd.sh --unpause
/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
#+END_SRC #+END_SRC
@@ -8128,7 +8128,7 @@ xrdb ~/.Xresources
*** Launch Environment *** Launch Environment
#+BEGIN_SRC shell :shebang #!/bin/sh :tangle .xinitrc #+BEGIN_SRC shell :shebang #!/bin/sh :tangle .xinitrc
exec awesome exec dwm
#+END_SRC #+END_SRC
** Xresources ** Xresources
@@ -8298,6 +8298,7 @@ Xcursor.size: CURSOR_SIZE
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/startup.sh #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/startup.sh
declare -a startup_array=(\ declare -a startup_array=(\
# Background Processes # Background Processes
"bash /home/sravan/.scripts/deadd.sh --on" \ # Deadd Notification Center
"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
@@ -8309,6 +8310,7 @@ declare -a startup_array=(\
declare -a kill_startup_array=(\ declare -a kill_startup_array=(\
# Background Processes # Background Processes
"pkill deadd-notificat" \ # Deadd Notification Center
"pkill picom" \ # Picom Compositor "pkill picom" \ # Picom Compositor
"pkill greenclip" \ # Greenclip Clipboard Manager "pkill greenclip" \ # Greenclip Clipboard Manager
"pkill polkit" \ # GNOME Polkit Authentication Agent "pkill polkit" \ # GNOME Polkit Authentication Agent
@@ -8894,7 +8896,7 @@ help_menu() {
rofi_menu() { rofi_menu() {
declare -a options=( declare -a options=(
"勒 Restart AwesomeWM - restart" "勒 Restart dwm - restart"
" Logout - logout" " Logout - logout"
" Lock - lock" " Lock - lock"
"⏾ Sleep - sleep" "⏾ Sleep - sleep"
@@ -8925,8 +8927,8 @@ main() {
help_menu help_menu
;; ;;
--logout) --logout)
notify-send "Session Control" "Logging Out of AwesomeWM" notify-send "Session Control" "Logging Out of dwm"
/usr/bin/awesome-client "awesome.quit()" xdotool key Super+Shift_L+q
;; ;;
--lock) --lock)
notify-send "Session Control" "Locking Session" notify-send "Session Control" "Locking Session"
@@ -8949,8 +8951,8 @@ main() {
systemctl hibernate systemctl hibernate
;; ;;
--restart) --restart)
notify-send "Session Control" "Restarting AwesomeWM" notify-send "Session Control" "Restarting dwm"
/usr/bin/awesome-client "awesome.restart()" xdotool key Super+Control_L+Shift_L+q
;; ;;
--rofi) --rofi)
rofi_menu rofi_menu
@@ -8979,7 +8981,7 @@ rofi_menu() {
declare -a options=( declare -a options=(
" Compositor - picom" " Compositor - picom"
" Display - brightness" " Display - brightness"
" Notifications - naughty" " Notifications - deadd"
" Media - playerctl" " Media - playerctl"
"墳Volume - pactl" "墳Volume - pactl"
" Backup - backup" " Backup - backup"
@@ -9016,8 +9018,8 @@ main() {
--brightness) --brightness)
/home/sravan/.scripts/brightness.sh --rofi /home/sravan/.scripts/brightness.sh --rofi
;; ;;
--naughty) --deadd)
/home/sravan/.scripts/naughty.sh --rofi /home/sravan/.scripts/deadd.sh --rofi
;; ;;
--playerctl) --playerctl)
/home/sravan/.scripts/playerctl.sh --rofi /home/sravan/.scripts/playerctl.sh --rofi