change playerctl shortcuts

This commit is contained in:
2023-01-27 21:50:16 +05:30
parent 8899dbdaee
commit e732d5514d
6 changed files with 19 additions and 15 deletions

View File

@@ -73,12 +73,14 @@ binde=$mainMod, RETURN, exec, foot
bindr=SUPER, D, exec, pkill tofi || tofi-drun | xargs hyprctl dispatch exec -- bindr=SUPER, D, exec, pkill tofi || tofi-drun | xargs hyprctl dispatch exec --
bindr=SUPER SHIFT, D, exec, pkill tofi || tofi-run --require-match=false | xargs hyprctl dispatch exec -- bindr=SUPER SHIFT, D, exec, pkill tofi || tofi-run --require-match=false | xargs hyprctl dispatch exec --
bind=$mainMod, P, exec, playerctl play-pause $playerctl=playerctl -p 'playerctld,%any'
bind=, XF86AudioPlay, exec, playerctl play-pause
bind=, XF86AudioNext, exec, playerctl position 5+ bind=$mainMod, P, exec, $playerctl play-pause
bind=, XF86AudioPrev, exec, playerctl position 5- bind=, XF86AudioPlay, exec, $playerctl play-pause
bind=$mainMod, XF86AudioNext, exec, playerctl next bind=, XF86AudioNext, exec, $playerctl position 5+
bind=$mainMod, XF86AudioPrev, exec, playerctl previous bind=, XF86AudioPrev, exec, $playerctl position 5-
bind=$mainMod, XF86AudioNext, exec, $playerctl next
bind=$mainMod, XF86AudioPrev, exec, $playerctl previous
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ binde=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle

View File

@@ -50,6 +50,8 @@ myXmobarrc = "~/.xmonad/lib/xmobar.hs"
myWorkspaces = clickable $ ["\xf269", "\xf120", "\xf121", "\xf392", "\xf008", "\xf07b", "\xf11b", "\xf086", "\xf074" ] myWorkspaces = clickable $ ["\xf269", "\xf120", "\xf121", "\xf392", "\xf008", "\xf07b", "\xf11b", "\xf086", "\xf074" ]
where clickable l = ["<action=`xdotool key super+" ++ show (n) ++ "`>" ++ ws ++ "</action>" | (i,ws) <- zip [1..9] l, let n = i ] where clickable l = ["<action=`xdotool key super+" ++ show (n) ++ "`>" ++ ws ++ "</action>" | (i,ws) <- zip [1..9] l, let n = i ]
playerctl = "playerctl -p 'playerctld,%any'"
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
[ ((modMask, xK_Return), [ ((modMask, xK_Return),
spawn $ XMonad.terminal conf) spawn $ XMonad.terminal conf)
@@ -70,22 +72,22 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
spawn "flameshot gui -d 10000") spawn "flameshot gui -d 10000")
, ((modMask, xK_p), , ((modMask, xK_p),
spawn "playerctl play-pause") spawn (playerctl ++ " play-pause"))
, ((0, xF86XK_AudioPlay), , ((0, xF86XK_AudioPlay),
spawn "playerctl play-pause") spawn (playerctl ++ " play-pause"))
, ((modMask, xF86XK_AudioNext), , ((modMask, xF86XK_AudioNext),
spawn "playerctl next") spawn (playerctl ++ " next"))
, ((modMask, xF86XK_AudioPrev), , ((modMask, xF86XK_AudioPrev),
spawn "playerctl previous") spawn (playerctl ++ " previous"))
, ((0, xF86XK_AudioPrev), , ((0, xF86XK_AudioPrev),
spawn "playerctl position 5-") spawn (playerctl ++ " position 5-"))
, ((0, xF86XK_AudioNext), , ((0, xF86XK_AudioNext),
spawn "playerctl position 5+") spawn (playerctl ++ " position 5+"))
, ((0, xF86XK_AudioRaiseVolume), , ((0, xF86XK_AudioRaiseVolume),
spawn "pamixer --allow-boost -ui 5") spawn "pamixer --allow-boost -ui 5")

View File

@@ -141,7 +141,7 @@ Free %: ${round(100 - EWW_RAM.used_mem_perc, 2)}%"
:class "battery") :class "battery")
(system_metric (system_metric
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:tooltip "Free Disk: ${round(EWW_DISK['/'].free / EWW_DISK['/'].total * 100, 2)} GB :tooltip "Free Disk: ${round(EWW_DISK['/'].free / 1024 / 1024, 2)} GB
Free Disk %: ${round(EWW_DISK['/'].free / EWW_DISK['/'].total * 100, 2)}%" Free Disk %: ${round(EWW_DISK['/'].free / EWW_DISK['/'].total * 100, 2)}%"
:class "disk")))) :class "disk"))))

View File

@@ -46,6 +46,7 @@
dunst dunst
authy authy
gnome.zenity gnome.zenity
iwgtk
# Wine and games and stuff # Wine and games and stuff
steam steam

View File

@@ -8,7 +8,6 @@ in
autocd = true; autocd = true;
history = rec { history = rec {
expireDuplicatesFirst = true; expireDuplicatesFirst = true;
ignoreDups = true;
size = 30000; size = 30000;
save = size; save = size;
}; };