HLWM: Add notifications to bluetooth commands. Emacs: evil RET to calendar select

This commit is contained in:
Joseph Ferano 2023-08-17 13:20:02 +07:00
parent abd92c7c7c
commit f2305c3aac
2 changed files with 22 additions and 5 deletions

View File

@ -2320,6 +2320,8 @@ and there's no need for a middle-man when it's already been implemented.
(define-key global-map (kbd "C-c n i") #'org-roam-node-insert) (define-key global-map (kbd "C-c n i") #'org-roam-node-insert)
(define-key global-map (kbd "C-c n c") #'org-roam-capture) (define-key global-map (kbd "C-c n c") #'org-roam-capture)
(org-roam-setup) (org-roam-setup)
(evil-define-key 'normal 'calendar-mode-map (kbd "RET") #'org-calendar-select)
#+end_src #+end_src
** Magit ** Magit

View File

@ -115,13 +115,28 @@ hc mousebind $Mod-Button2 zoom
hc mousebind $Mod-Button3 resize hc mousebind $Mod-Button3 resize
# media # media
hc keybind XF86AudioRaiseVolume spawn bash -c 'paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga; amixer sset Master 4%+' vol_sound=/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga
hc keybind XF86AudioLowerVolume spawn bash -c 'paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga; amixer sset Master 4%-' hc keybind XF86AudioRaiseVolume spawn bash -c "paplay $vol_sound; amixer sset Master 4%+"
hc keybind XF86AudioPlay spawn bash -c 'playerctl -a play-pause; paplay /usr/share/sounds/freedesktop/stereo/dialog-warning.oga' hc keybind XF86AudioLowerVolume spawn bash -c "paplay $vol_sound; amixer sset Master 4%-"
play_sound=/usr/share/sounds/freedesktop/stereo/dialog-warning.oga
hc keybind XF86AudioPlay spawn bash -c "playerctl -a play-pause; paplay $play_sound"
# bluetooth # bluetooth
hc keybind $Mod-b spawn bluetoothctl connect F8:5B:6E:2A:6A:CF icon=/usr/share/icons/Adwaita/16x16/status/bluetooth-active-symbolic.symbolic.png
hc keybind $Mod-Shift-b spawn sudo systemctl restart bluetooth.service
hc keybind $Mod-b chain \
'->' spawn bluetoothctl connect F8:5B:6E:2A:6A:CF \
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Connecting Galaxy Buds"
hc keybind $Mod-Alt-b chain \
'->' spawn bluetoothctl disconnect F8:5B:6E:2A:6A:CF \
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Disconnecting Galaxy Buds"
hc keybind $Mod-Shift-b chain \
'->' spawn sudo systemctl restart bluetooth.service \
'->' spawn notify-send -t 2000 -i $icon "Bluetooth" "Restarting systemd service"
hc keybind $Mod-Ctrl-b spawn toggle-bt-codec hc keybind $Mod-Ctrl-b spawn toggle-bt-codec
# Lock # Lock