feat: Add spotify_player to laptop config
This commit is contained in:
parent
aac4d5c179
commit
29bd21e32d
2 changed files with 15 additions and 4 deletions
11
eww_laptop/scripts/bar_toggle.sh
Executable file
11
eww_laptop/scripts/bar_toggle.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
ISOPEN=$(eww windows | grep "*bar" | tr -d '*')
|
||||
|
||||
|
||||
if [ "$ISOPEN" = "" ]; then
|
||||
MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
eww open bar
|
||||
else
|
||||
eww close "$ISOPEN"
|
||||
fi
|
||||
|
|
@ -102,9 +102,9 @@ bind=SUPERSHIFT,L,exec, playerctl --all-players -a pause & swaylock -c 000000 &
|
|||
bind=,XF86AudioMute,exec, $HOME/.config/eww/scripts/toggle-mute
|
||||
bind=,XF86AudioLowerVolume,exec, $HOME/.config/eww/scripts/change-volume sink -5%
|
||||
bind=,XF86AudioRaiseVolume,exec, $HOME/.config/eww/scripts/change-volume sink +5%
|
||||
bind=,XF86AudioPlay,exec, playerctl --player=ncspot,firefox play-pause
|
||||
bind=,XF86AudioNext,exec, playerctl --player=ncspot,firefox next
|
||||
bind=,XF86AudioPrev,exec, playerctl --player=ncspot,firefox previous
|
||||
bind=,XF86AudioPlay,exec, playerctl --player=spotify_player,firefox play-pause
|
||||
bind=,XF86AudioNext,exec, playerctl --player=spotify_player,firefox next
|
||||
bind=,XF86AudioPrev,exec, playerctl --player=spotify_player,firefox previous
|
||||
bind=,XF86MonBrightnessDown,exec, $HOME/.config/eww/scripts/change-brightness brightness 10%-
|
||||
bind=,XF86MonBrightnessUp,exec, $HOME/.config/eww/scripts/change-brightness brightness +10%
|
||||
bind=SUPERSHIFT,S,exec, grim -g "$(slurp)" - | swappy -f -
|
||||
|
|
@ -184,5 +184,5 @@ exec-once=nheko
|
|||
# exec-once=flatpak run --branch=stable --arch=x86_64 --command=/app/bin/schildichat-desktop --file-forwarding chat.schildi.desktop --enable-features=ozonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland
|
||||
exec-once=firefox
|
||||
exec-once=nextcloud
|
||||
exec-once=kitty -e ncspot
|
||||
exec-once=kitty spotify
|
||||
exec-once = copyq --start-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue