Compare commits

...

3 Commits

@ -32,6 +32,8 @@ super + bracketright
lmc mute_toggle
super + backslash
lmc deaf_toggle
super + bracketleft
dnd toggle
super + shift + l
keymap_toggle

@ -20,5 +20,11 @@ else
mic="^c#dfdfdf^  "
fi
if [ -f ~/.local/state/dnd_mode.lock ]; then
notifications="^c#ff0000^  "
else
notifications="^c#dfdfdf^  "
fi
vol=$(printf %3s $vol | tr ' ' ' ')
printf "^b#282828^%s%s^d^" "$mic" "$vol_info"
printf "^b#282828^%s%s%s^d^" "$mic" "$vol_info" "$notifications"

@ -0,0 +1,42 @@
#!/bin/sh
# Script to easily manage a do not disturb mode for dunst
case "$1" in
start)
# notify-send -u low "dunst" "Do not disturb started"
dunstctl history-clear
dunstctl rule dnd_low enable
dunstctl rule dnd_normal enable
dunstctl rule sound_normal disable
touch ~/.local/state/dnd_mode.lock
pkill -RTMIN+4 $STATUSBAR
paplay ~/.local/bin/etc/sxhkd/dnd/notifications_disabled.mp3 ;;
stop)
# notify-send -u low "dunst" "Do not disturb stopped"
dunstctl rule dnd_low disable
dunstctl rule dnd_normal disable
dunstctl rule sound_normal enable
hist_size=$(dunstctl history | jq '.data[0] | length')
for i in `seq $hist_size`; do
dunstctl history-pop
done
rm ~/.local/state/dnd_mode.lock
pkill -RTMIN+4 $STATUSBAR
paplay ~/.local/bin/etc/sxhkd/dnd/notifications_enabled.mp3 ;;
toggle)
if [ -f ~/.local/state/dnd_mode.lock ]; then
dnd stop
else
dnd start
fi ;;
*) cat << EOF
dnd: dunst interface to manage a do-not-disturb-mode.
Allowed options:
start Enable do-not-disturb-mode
stop Disable do-not-disturb-mode
toggle Toggle sound
EOF
esac

@ -1,7 +0,0 @@
#!/bin/sh
notify-send -u low "dunst" "Do not disturb started"
dunstctl history-clear
dunstctl rule dnd_low enable
dunstctl rule dnd_normal enable
dunstctl rule sound_normal disable

@ -1,10 +0,0 @@
#!/bin/sh
dunstctl rule dnd_low disable
dunstctl rule dnd_normal disable
dunstctl rule sound_normal enable
hist_size=$(dunstctl history | jq '.data[0] | length')
for i in `seq $hist_size`; do
dunstctl history-pop
done
notify-send -u low "dunst" "Do not disturb stopped"

@ -27,7 +27,7 @@ xargs -I{} mv {} .config-backup/{}
- ignore untracked files: `config config --local status.showUntrackedFiles no`
- pull current setup: `config pull`
- finish setup for vim:
- open vim and run `:PackerCompile`, and `:PackerInstall`
- open vim
The step containing commenting out is needed because the colorscheme has
problems being not available and disrupts the further process of the plugin
@ -48,31 +48,41 @@ There are various shortcuts and hotkeys used in this version. Included in my bui
| ModKey | Shift | Key | Function |
| ------ | ----- | ----------------- | --------------------------------------------------------- |
| Super | | b | Spawn browser |
| Super | | f | Spawn filemanager |
| Super | | i | (gpu-screen-record) stop recording |
| Super | | m | Spawn thunderbird |
| Super | | o | (gpu-screen-record) start replay |
| Super | | p | (gpu-screen-record) save replay |
| Super | | u | (gpu-screen-record) start recording |
| Super | | r | (dmenu) dmenu\_run |
| Super | Shift | x | Restart sxkd |
| Super | | F5 | Enable 2 Screen Monitor |
| Super | | F6 | Toggle touchpad |
| Super | | F7 | (dmenu) Mounting drives |
| Super | | F8 | (dmenu) Unmounting drives |
| Super | | F9 | Restart NetworkManager |
| Super | | F10 | (dmenu) Prompt, if yes: slock |
| Super | | F11 | (dmenu) Prompt, if yes: reboot |
| Super | | F12 | (dmenu) Prompt, if yes: shutdown |
| Super | | Print | (dmenu) Prompt to take a screenshot |
| Super | | Return | Spawn terminal |
| | | AudioMute | Volume mute |
| | | AudioMicMute | Mic Mute |
| | | AudioLowerVolume | Volume lower |
| | | AudioRaiseVolume | Volume raise |
| | | MonBrightnessDown | Brightness decrease |
| | | MonBrightnessUp | Brightness increase |
| Super | | a | (sounds) Previous song |
| Super | | b | (program) Spawn browser |
| Super | | c | (sounds) Toggle looping of songs |
| Super | | d | (sounds) Next song |
| Super | | f | (program) Spawn filemanager |
| Super | | i | (display) Stop recording |
| Super | | m | (program) Spawn thunderbird |
| Super | | o | (display) Start replay window |
| Super | | p | (display) Save replay window |
| Super | | u | (display) Start recording window |
| Super | | r | (program) Spawn dmenu\_run |
| Super | | s | (sounds) Pause song |
| Super | | x | (sounds) Toggle shuffling of songs |
| Super | Shift | l | (keyboard) Toggle keymap |
| Super | Shift | r | (sxhkd) Restart sxkd |
| Super | Shift | Space | (notifications) Close all notifications |
| Super | | [ | (notifications) Toggle dunst dnd |
| Super | | ] | (sounds) Toggle mute |
| Super | | \ | (sounds) Toggle deaf |
| Super | | F5 | (display) Enable 2 Screen Monitor |
| Super | | F6 | (keyboard) Toggle touchpad |
| Super | | F7 | (mounting) Mounting drives |
| Super | | F8 | (mounting) Unmounting drives |
| Super | | F9 | (network) Restart NetworkManager |
| Super | | F10 | (display) slock |
| Super | | F11 | (shutdown) reboot |
| Super | | F12 | (shutdown) shutdown |
| Super | | Return | (program) Spawn terminal |
| | | Print | (program) Prompt to take a screenshot |
| | | AudioMute | (sound) Volume mute |
| | | AudioMicMute | (sound) Mic Mute |
| | | AudioLowerVolume | (sound) Volume lower |
| | | AudioRaiseVolume | (sound) Volume raise |
| | | MonBrightnessDown | (display) Brightness decrease |
| | | MonBrightnessUp | (display) Brightness increase |
## Additional configs

Loading…
Cancel
Save