Session Control, AwesomeWM Tweaks, & Presentation Mode
- Exclude awesome bar from rounded corners in picom - Add xfce power manager presentation mode switching to game launch and exit scripts - Change session control rofi menu to work with AwesomeWM using remote execution - Change session control rofi menu to use systemctl commands for all non-WM operations - Update awesome config submodule
This commit is contained in:
Submodule .config/awesome updated: c03126abf8...3630ca4c1a
@@ -39,6 +39,7 @@ rounded-corners-exclude = [
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'Rofi'",
|
||||
"class_g = 'deadd-notification-center'",
|
||||
"class_g = 'awesome'",
|
||||
# "class_g = 'code-oss'",
|
||||
#"class_g = 'TelegramDesktop'",
|
||||
# "class_g = 'firefox'",
|
||||
|
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
/home/sravan/.scripts/deadd.sh --unpause
|
||||
/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
|
||||
|
@@ -2,3 +2,4 @@
|
||||
/home/sravan/.scripts/picom.sh --off
|
||||
/home/sravan/.scripts/cpu-gpu.sh --gpu-profile-performance
|
||||
/home/sravan/.scripts/deadd.sh --pause
|
||||
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true
|
||||
|
@@ -11,7 +11,7 @@ help_menu() {
|
||||
|
||||
rofi_menu() {
|
||||
declare -a options=(
|
||||
"勒 Restart Dwm - restart"
|
||||
"勒 Restart AwesomeWM - restart"
|
||||
" Logout - logout"
|
||||
" Lock - lock"
|
||||
"⏾ Sleep - sleep"
|
||||
@@ -42,8 +42,8 @@ main() {
|
||||
help_menu
|
||||
;;
|
||||
--logout)
|
||||
notify-send "Session Control" "Logging Out of Dwm"
|
||||
xdotool key Super+Shift_L+q
|
||||
notify-send "Session Control" "Logging Out of AwesomeWM"
|
||||
/usr/bin/awesome-client "awesome.quit()"
|
||||
;;
|
||||
--lock)
|
||||
notify-send "Session Control" "Locking Session"
|
||||
@@ -55,19 +55,19 @@ main() {
|
||||
;;
|
||||
--reboot)
|
||||
notify-send "Session Control" "Rebooting System"
|
||||
reboot
|
||||
systemctl reboot
|
||||
;;
|
||||
--shutdown)
|
||||
notify-send "Session Control" "Shutting Down System"
|
||||
shutdown now
|
||||
systemctl poweroff
|
||||
;;
|
||||
--hibernate)
|
||||
notify-send "Session Control" "Hibernating System"
|
||||
systemctl hibernate
|
||||
;;
|
||||
--restart)
|
||||
notify-send "Session Control" "Restarting Dwm"
|
||||
xdotool key Super+Control_L+Shift_L+q
|
||||
notify-send "Session Control" "Restarting AwesomeWM"
|
||||
/usr/bin/awesome-client "awesome.restart()"
|
||||
;;
|
||||
--rofi)
|
||||
rofi_menu
|
||||
|
17
README.org
17
README.org
@@ -2451,6 +2451,7 @@ rounded-corners-exclude = [
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'Rofi'",
|
||||
"class_g = 'deadd-notification-center'",
|
||||
"class_g = 'awesome'",
|
||||
# "class_g = 'code-oss'",
|
||||
#"class_g = 'TelegramDesktop'",
|
||||
# "class_g = 'firefox'",
|
||||
@@ -7289,6 +7290,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/cpu-gpu.sh --gpu-profile-performance
|
||||
/home/sravan/.scripts/deadd.sh --pause
|
||||
/usr/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true
|
||||
#+END_SRC
|
||||
|
||||
*** Post-Exit Script
|
||||
@@ -7298,6 +7300,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_exit.sh
|
||||
/home/sravan/.scripts/deadd.sh --unpause
|
||||
/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
|
||||
#+END_SRC
|
||||
|
||||
*** PlayStation 5 (DualSense) to Xbox 360 Controller Button Mapping
|
||||
@@ -8697,7 +8700,7 @@ help_menu() {
|
||||
|
||||
rofi_menu() {
|
||||
declare -a options=(
|
||||
"勒 Restart Dwm - restart"
|
||||
"勒 Restart AwesomeWM - restart"
|
||||
" Logout - logout"
|
||||
" Lock - lock"
|
||||
"⏾ Sleep - sleep"
|
||||
@@ -8728,8 +8731,8 @@ main() {
|
||||
help_menu
|
||||
;;
|
||||
--logout)
|
||||
notify-send "Session Control" "Logging Out of Dwm"
|
||||
xdotool key Super+Shift_L+q
|
||||
notify-send "Session Control" "Logging Out of AwesomeWM"
|
||||
/usr/bin/awesome-client "awesome.quit()"
|
||||
;;
|
||||
--lock)
|
||||
notify-send "Session Control" "Locking Session"
|
||||
@@ -8741,19 +8744,19 @@ main() {
|
||||
;;
|
||||
--reboot)
|
||||
notify-send "Session Control" "Rebooting System"
|
||||
reboot
|
||||
systemctl reboot
|
||||
;;
|
||||
--shutdown)
|
||||
notify-send "Session Control" "Shutting Down System"
|
||||
shutdown now
|
||||
systemctl poweroff
|
||||
;;
|
||||
--hibernate)
|
||||
notify-send "Session Control" "Hibernating System"
|
||||
systemctl hibernate
|
||||
;;
|
||||
--restart)
|
||||
notify-send "Session Control" "Restarting Dwm"
|
||||
xdotool key Super+Control_L+Shift_L+q
|
||||
notify-send "Session Control" "Restarting AwesomeWM"
|
||||
/usr/bin/awesome-client "awesome.restart()"
|
||||
;;
|
||||
--rofi)
|
||||
rofi_menu
|
||||
|
Reference in New Issue
Block a user