Switch from dwm to dwl in scripts
- Add more keybindings to swhkd - Move session and control-center scripts from dwm to dwl - Remove restart option from session script - Remove compositor and startup rofi menus from control-center - Update dwl submodule
This commit is contained in:
67
README.org
67
README.org
@@ -8220,28 +8220,51 @@ WantedBy=default.target
|
|||||||
#+BEGIN_SRC sxhkd :tangle swhkd/.config/swhkd/swhkdrc
|
#+BEGIN_SRC sxhkd :tangle swhkd/.config/swhkd/swhkdrc
|
||||||
# Terminal
|
# Terminal
|
||||||
super + shift + return
|
super + shift + return
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
# Menu
|
# Menu
|
||||||
super + p
|
super + p
|
||||||
rofi -show combi
|
rofi -show combi
|
||||||
|
super + ctrl + p
|
||||||
|
~/.scripts/control-center.sh --rofi
|
||||||
|
super + ctrl + c
|
||||||
|
cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
||||||
|
super + ctrl + d
|
||||||
|
~/.scripts/brightness.sh --rofi
|
||||||
|
super + ctrl + v
|
||||||
|
~/.scripts/pactl.sh --rofi
|
||||||
|
super + ctrl + m
|
||||||
|
~/.scripts/playerctl.sh --rofi
|
||||||
|
super + ctrl + n
|
||||||
|
~/.scripts/dunst.sh --rofi
|
||||||
|
super + ctrl + q
|
||||||
|
~/.scripts/session.sh --rofi
|
||||||
|
|
||||||
# Volume Controls
|
# Volume Controls
|
||||||
xf86audioraisevolume
|
xf86audioraisevolume
|
||||||
~/.scripts/pactl.sh --raise
|
~/.scripts/pactl.sh --raise
|
||||||
|
|
||||||
xf86audiolowervolume
|
xf86audiolowervolume
|
||||||
~/.scripts/pactl.sh --lower
|
~/.scripts/pactl.sh --lower
|
||||||
|
|
||||||
xf86audiomute
|
xf86audiomute
|
||||||
~/.scripts/pactl.sh --mute
|
~/.scripts/pactl.sh --mute
|
||||||
|
|
||||||
|
# Media Controls
|
||||||
|
xf86audioplay
|
||||||
|
~/.scripts/playerctl.sh --play-pause
|
||||||
|
xf86audioprev
|
||||||
|
~/.scripts/playerctl.sh --prev
|
||||||
|
xf86audionext
|
||||||
|
~/.scripts/playerctl.sh --next
|
||||||
|
|
||||||
|
# Screenshot
|
||||||
|
print
|
||||||
|
flameshot gui
|
||||||
|
|
||||||
# Brightness Controls
|
# Brightness Controls
|
||||||
xf86monbrightnessup
|
xf86monbrightnessup
|
||||||
~/.scripts/brightness.sh --raise
|
~/.scripts/brightness.sh --raise
|
||||||
|
|
||||||
xf86monbrightnessdown
|
xf86monbrightnessdown
|
||||||
~/.scripts/brightness.sh --lower
|
~/.scripts/brightness.sh --lower
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* User Programs
|
* User Programs
|
||||||
@@ -9579,7 +9602,7 @@ main $@
|
|||||||
|
|
||||||
** Session Control
|
** Session Control
|
||||||
|
|
||||||
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwm/.scripts/session.sh
|
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.scripts/session.sh
|
||||||
help_menu() {
|
help_menu() {
|
||||||
echo "Script to interact with desktop session. Use only one argument at a time."
|
echo "Script to interact with desktop session. Use only one argument at a time."
|
||||||
# echo " - Play / Pause: playerctl.sh --play-pause"
|
# echo " - Play / Pause: playerctl.sh --play-pause"
|
||||||
@@ -9592,7 +9615,6 @@ help_menu() {
|
|||||||
|
|
||||||
rofi_menu() {
|
rofi_menu() {
|
||||||
declare -a options=(
|
declare -a options=(
|
||||||
" Restart dwm - restart"
|
|
||||||
" Logout - logout"
|
" Logout - logout"
|
||||||
" Lock - lock"
|
" Lock - lock"
|
||||||
"⏾ Sleep - sleep"
|
"⏾ Sleep - sleep"
|
||||||
@@ -9623,8 +9645,8 @@ main() {
|
|||||||
help_menu
|
help_menu
|
||||||
;;
|
;;
|
||||||
--logout)
|
--logout)
|
||||||
notify-send "Session Control" "Logging Out of dwm"
|
notify-send "Session Control" "Logging Out of dwl"
|
||||||
dwm-msg run_command quit 0
|
wtype -M win -M shift -P q
|
||||||
;;
|
;;
|
||||||
--lock)
|
--lock)
|
||||||
notify-send "Session Control" "Locking Session"
|
notify-send "Session Control" "Locking Session"
|
||||||
@@ -9646,13 +9668,6 @@ main() {
|
|||||||
notify-send "Session Control" "Hibernating System"
|
notify-send "Session Control" "Hibernating System"
|
||||||
systemctl hibernate
|
systemctl hibernate
|
||||||
;;
|
;;
|
||||||
--restart)
|
|
||||||
notify-send "Session Control" "Restarting dwm"
|
|
||||||
dwm-msg run_command quit 1
|
|
||||||
pkill polybar
|
|
||||||
sleep 5
|
|
||||||
/home/sravan/.config/dwm-flexipatch/polybar/launch.sh
|
|
||||||
;;
|
|
||||||
--rofi)
|
--rofi)
|
||||||
rofi_menu
|
rofi_menu
|
||||||
;;
|
;;
|
||||||
@@ -9665,7 +9680,7 @@ main $@
|
|||||||
|
|
||||||
** Control Center
|
** Control Center
|
||||||
|
|
||||||
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwm/.scripts/control-center.sh
|
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle dwl/.scripts/control-center.sh
|
||||||
help_menu() {
|
help_menu() {
|
||||||
echo "Main script to launch sub-menu scripts. Use only one argument at a time."
|
echo "Main script to launch sub-menu scripts. Use only one argument at a time."
|
||||||
# echo " - Play / Pause: playerctl.sh --play-pause"
|
# echo " - Play / Pause: playerctl.sh --play-pause"
|
||||||
@@ -9678,13 +9693,11 @@ help_menu() {
|
|||||||
|
|
||||||
rofi_menu() {
|
rofi_menu() {
|
||||||
declare -a options=(
|
declare -a options=(
|
||||||
" Compositor - picom"
|
|
||||||
" Display - brightness"
|
" Display - brightness"
|
||||||
" Notifications - dunst"
|
" Notifications - dunst"
|
||||||
" Media - playerctl"
|
" Media - playerctl"
|
||||||
" Volume - pactl"
|
" Volume - pactl"
|
||||||
" Backup - backup"
|
" Backup - backup"
|
||||||
" Startup Processes - startup"
|
|
||||||
" Hardware - cpu-gpu"
|
" Hardware - cpu-gpu"
|
||||||
" Gaming - gaming"
|
" Gaming - gaming"
|
||||||
" Power Menu - session"
|
" Power Menu - session"
|
||||||
@@ -9711,9 +9724,6 @@ main() {
|
|||||||
--help | -h)
|
--help | -h)
|
||||||
help_menu
|
help_menu
|
||||||
;;
|
;;
|
||||||
--picom)
|
|
||||||
/home/sravan/.scripts/picom.sh --rofi
|
|
||||||
;;
|
|
||||||
--brightness)
|
--brightness)
|
||||||
/home/sravan/.scripts/brightness.sh --rofi
|
/home/sravan/.scripts/brightness.sh --rofi
|
||||||
;;
|
;;
|
||||||
@@ -9729,9 +9739,6 @@ main() {
|
|||||||
--backup)
|
--backup)
|
||||||
/home/sravan/.scripts/backup.sh --rofi
|
/home/sravan/.scripts/backup.sh --rofi
|
||||||
;;
|
;;
|
||||||
--startup)
|
|
||||||
/home/sravan/.scripts/startup.sh --rofi
|
|
||||||
;;
|
|
||||||
--cpu-gpu)
|
--cpu-gpu)
|
||||||
/home/sravan/.scripts/cpu-gpu.sh --rofi
|
/home/sravan/.scripts/cpu-gpu.sh --rofi
|
||||||
;;
|
;;
|
||||||
|
Submodule dwl/.config/dwl updated: d2e550ceb3...3609061178
@@ -11,13 +11,11 @@ help_menu() {
|
|||||||
|
|
||||||
rofi_menu() {
|
rofi_menu() {
|
||||||
declare -a options=(
|
declare -a options=(
|
||||||
" Compositor - picom"
|
|
||||||
" Display - brightness"
|
" Display - brightness"
|
||||||
" Notifications - dunst"
|
" Notifications - dunst"
|
||||||
" Media - playerctl"
|
" Media - playerctl"
|
||||||
" Volume - pactl"
|
" Volume - pactl"
|
||||||
" Backup - backup"
|
" Backup - backup"
|
||||||
" Startup Processes - startup"
|
|
||||||
" Hardware - cpu-gpu"
|
" Hardware - cpu-gpu"
|
||||||
" Gaming - gaming"
|
" Gaming - gaming"
|
||||||
" Power Menu - session"
|
" Power Menu - session"
|
||||||
@@ -44,9 +42,6 @@ main() {
|
|||||||
--help | -h)
|
--help | -h)
|
||||||
help_menu
|
help_menu
|
||||||
;;
|
;;
|
||||||
--picom)
|
|
||||||
/home/sravan/.scripts/picom.sh --rofi
|
|
||||||
;;
|
|
||||||
--brightness)
|
--brightness)
|
||||||
/home/sravan/.scripts/brightness.sh --rofi
|
/home/sravan/.scripts/brightness.sh --rofi
|
||||||
;;
|
;;
|
||||||
@@ -62,9 +57,6 @@ main() {
|
|||||||
--backup)
|
--backup)
|
||||||
/home/sravan/.scripts/backup.sh --rofi
|
/home/sravan/.scripts/backup.sh --rofi
|
||||||
;;
|
;;
|
||||||
--startup)
|
|
||||||
/home/sravan/.scripts/startup.sh --rofi
|
|
||||||
;;
|
|
||||||
--cpu-gpu)
|
--cpu-gpu)
|
||||||
/home/sravan/.scripts/cpu-gpu.sh --rofi
|
/home/sravan/.scripts/cpu-gpu.sh --rofi
|
||||||
;;
|
;;
|
@@ -11,7 +11,6 @@ help_menu() {
|
|||||||
|
|
||||||
rofi_menu() {
|
rofi_menu() {
|
||||||
declare -a options=(
|
declare -a options=(
|
||||||
" Restart dwm - restart"
|
|
||||||
" Logout - logout"
|
" Logout - logout"
|
||||||
" Lock - lock"
|
" Lock - lock"
|
||||||
"⏾ Sleep - sleep"
|
"⏾ Sleep - sleep"
|
||||||
@@ -42,8 +41,8 @@ main() {
|
|||||||
help_menu
|
help_menu
|
||||||
;;
|
;;
|
||||||
--logout)
|
--logout)
|
||||||
notify-send "Session Control" "Logging Out of dwm"
|
notify-send "Session Control" "Logging Out of dwl"
|
||||||
dwm-msg run_command quit 0
|
wtype -M win -M shift -P q
|
||||||
;;
|
;;
|
||||||
--lock)
|
--lock)
|
||||||
notify-send "Session Control" "Locking Session"
|
notify-send "Session Control" "Locking Session"
|
||||||
@@ -65,13 +64,6 @@ main() {
|
|||||||
notify-send "Session Control" "Hibernating System"
|
notify-send "Session Control" "Hibernating System"
|
||||||
systemctl hibernate
|
systemctl hibernate
|
||||||
;;
|
;;
|
||||||
--restart)
|
|
||||||
notify-send "Session Control" "Restarting dwm"
|
|
||||||
dwm-msg run_command quit 1
|
|
||||||
pkill polybar
|
|
||||||
sleep 5
|
|
||||||
/home/sravan/.config/dwm-flexipatch/polybar/launch.sh
|
|
||||||
;;
|
|
||||||
--rofi)
|
--rofi)
|
||||||
rofi_menu
|
rofi_menu
|
||||||
;;
|
;;
|
@@ -1,24 +1,47 @@
|
|||||||
# Terminal
|
# Terminal
|
||||||
super + shift + return
|
super + shift + return
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
# Menu
|
# Menu
|
||||||
super + p
|
super + p
|
||||||
rofi -show combi
|
rofi -show combi
|
||||||
|
super + ctrl + p
|
||||||
|
~/.scripts/control-center.sh --rofi
|
||||||
|
super + ctrl + c
|
||||||
|
cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
||||||
|
super + ctrl + d
|
||||||
|
~/.scripts/brightness.sh --rofi
|
||||||
|
super + ctrl + v
|
||||||
|
~/.scripts/pactl.sh --rofi
|
||||||
|
super + ctrl + m
|
||||||
|
~/.scripts/playerctl.sh --rofi
|
||||||
|
super + ctrl + n
|
||||||
|
~/.scripts/dunst.sh --rofi
|
||||||
|
super + ctrl + q
|
||||||
|
~/.scripts/session.sh --rofi
|
||||||
|
|
||||||
# Volume Controls
|
# Volume Controls
|
||||||
xf86audioraisevolume
|
xf86audioraisevolume
|
||||||
~/.scripts/pactl.sh --raise
|
~/.scripts/pactl.sh --raise
|
||||||
|
|
||||||
xf86audiolowervolume
|
xf86audiolowervolume
|
||||||
~/.scripts/pactl.sh --lower
|
~/.scripts/pactl.sh --lower
|
||||||
|
|
||||||
xf86audiomute
|
xf86audiomute
|
||||||
~/.scripts/pactl.sh --mute
|
~/.scripts/pactl.sh --mute
|
||||||
|
|
||||||
|
# Media Controls
|
||||||
|
xf86audioplay
|
||||||
|
~/.scripts/playerctl.sh --play-pause
|
||||||
|
xf86audioprev
|
||||||
|
~/.scripts/playerctl.sh --prev
|
||||||
|
xf86audionext
|
||||||
|
~/.scripts/playerctl.sh --next
|
||||||
|
|
||||||
|
# Screenshot
|
||||||
|
print
|
||||||
|
flameshot gui
|
||||||
|
|
||||||
# Brightness Controls
|
# Brightness Controls
|
||||||
xf86monbrightnessup
|
xf86monbrightnessup
|
||||||
~/.scripts/brightness.sh --raise
|
~/.scripts/brightness.sh --raise
|
||||||
|
|
||||||
xf86monbrightnessdown
|
xf86monbrightnessdown
|
||||||
~/.scripts/brightness.sh --lower
|
~/.scripts/brightness.sh --lower
|
||||||
|
Reference in New Issue
Block a user