mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/xmonad: powerprofilesctl bindings
This commit is contained in:
parent
a6cd6515a6
commit
62d085de11
1 changed files with 12 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import XMonad
|
||||
|
||||
import XMonad.Actions.SwapWorkspaces(swapWithCurrent)
|
||||
import XMonad.Actions.Submap (submap)
|
||||
import XMonad.Actions.Submap (submap, visualSubmap)
|
||||
|
||||
import XMonad.Util.EZConfig (additionalKeys, removeKeys)
|
||||
import XMonad.Util.NamedScratchpad (NamedScratchpad (NS),
|
||||
|
|
@ -228,6 +228,17 @@ main = xmonad
|
|||
, ((superMask, xK_l), spawn lock )
|
||||
])
|
||||
|
||||
++ (let
|
||||
powerprofile p = (p, spawn $ "powerprofilesctl set " ++ p)
|
||||
in
|
||||
[ ( (superMask, xK_p), visualSubmap def $ M.fromList
|
||||
[ ((0, xK_1), powerprofile "power-saver")
|
||||
, ((0, xK_2), powerprofile "balanced" )
|
||||
, ((0, xK_3), powerprofile "performance")
|
||||
]
|
||||
)
|
||||
])
|
||||
|
||||
myTerm :: String
|
||||
myTerm = "kitty"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue