1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 00:37:44 +02:00

Compare commits

..

No commits in common. "7e576a888e0a834093a853eb3f9db670608d9947" and "0dbb41554677f3ffaf592e99d839e273cc490678" have entirely different histories.

8 changed files with 44 additions and 87 deletions

View File

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

View File

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

View File

@ -1,42 +0,0 @@
#!/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

7
.local/bin/tools/dnd_start Executable file
View File

@ -0,0 +1,7 @@
#!/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

10
.local/bin/tools/dnd_stop Executable file
View File

@ -0,0 +1,10 @@
#!/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"

View File

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