diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-06-02 21:50:33 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-06-02 21:50:33 +0200 |
commit | 15614d7ef70b8f5ae758b6154a62f1b014327c0d (patch) | |
tree | 10f5869d0293dc553d0b89d7bc0bed9c6d0d6ae9 | |
parent | cd66dd1c162443cb5e7d8f7e086191f4eb56fcc5 (diff) | |
download | nixos-15614d7ef70b8f5ae758b6154a62f1b014327c0d.tar nixos-15614d7ef70b8f5ae758b6154a62f1b014327c0d.tar.gz nixos-15614d7ef70b8f5ae758b6154a62f1b014327c0d.tar.bz2 nixos-15614d7ef70b8f5ae758b6154a62f1b014327c0d.tar.xz nixos-15614d7ef70b8f5ae758b6154a62f1b014327c0d.zip |
...
-rw-r--r-- | accounts/gkleen@sif/default.nix | 2 | ||||
-rw-r--r-- | accounts/gkleen@sif/xmonad/xmonad.hs | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 3f103b8a..4db58a1b 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -396,7 +396,7 @@ in { | |||
396 | weechat wrappedElementDesktop # helvum | 396 | weechat wrappedElementDesktop # helvum |
397 | matrix-synapse-tools.synadm wrappedRocketChatDesktop | 397 | matrix-synapse-tools.synadm wrappedRocketChatDesktop |
398 | flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs | 398 | flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs |
399 | sieve-connect gimp inkscape udiskie glab | 399 | sieve-connect gimp inkscape udiskie glab scrot |
400 | ]; | 400 | ]; |
401 | 401 | ||
402 | file = { | 402 | file = { |
diff --git a/accounts/gkleen@sif/xmonad/xmonad.hs b/accounts/gkleen@sif/xmonad/xmonad.hs index 906cc663..326749c9 100644 --- a/accounts/gkleen@sif/xmonad/xmonad.hs +++ b/accounts/gkleen@sif/xmonad/xmonad.hs | |||
@@ -24,6 +24,7 @@ import XMonad.Prompt | |||
24 | import XMonad.Prompt.Input | 24 | import XMonad.Prompt.Input |
25 | import XMonad.Util.Scratchpad | 25 | import XMonad.Util.Scratchpad |
26 | import XMonad.Util.NamedScratchpad | 26 | import XMonad.Util.NamedScratchpad |
27 | import XMonad.Util.Ungrab | ||
27 | import Control.Monad (sequence, liftM, liftM2, join, void) | 28 | import Control.Monad (sequence, liftM, liftM2, join, void) |
28 | import XMonad.Util.WorkspaceCompare | 29 | import XMonad.Util.WorkspaceCompare |
29 | import XMonad.Layout.NoBorders | 30 | import XMonad.Layout.NoBorders |
@@ -867,6 +868,11 @@ myKeys' conf host = Map.fromList $ | |||
867 | , ((0, xF86XK_AudioPause), mediaMpv $ MpvSetProperty "pause" False) | 868 | , ((0, xF86XK_AudioPause), mediaMpv $ MpvSetProperty "pause" False) |
868 | , ((0, {-xF86XK_AudioMicMute-} 269025202), safeSpawn "pulseaudio-ctl" ["mute-input"]) | 869 | , ((0, {-xF86XK_AudioMicMute-} 269025202), safeSpawn "pulseaudio-ctl" ["mute-input"]) |
869 | , ((0, xF86XK_AudioPlay), mediaMpvTogglePause) | 870 | , ((0, xF86XK_AudioPlay), mediaMpvTogglePause) |
871 | , ((0, xK_Print), do | ||
872 | home <- liftIO getHomeDirectory | ||
873 | unGrab | ||
874 | safeSpawn "scrot" ["-s", "-F", home </> "screenshots" </> "%Y-%m-%dT%H:%M:%S.png", "-e", "xclip -selection clipboard -t image/png -i $f"] | ||
875 | ) | ||
870 | , ((modm .|. mod1Mask, xK_space), mediaMpvTogglePause) | 876 | , ((modm .|. mod1Mask, xK_space), mediaMpvTogglePause) |
871 | 877 | ||
872 | -- , ((0, xF86XK_MonBrightnessDown), backlight . cycleThrough $ reverse brCycle) | 878 | -- , ((0, xF86XK_MonBrightnessDown), backlight . cycleThrough $ reverse brCycle) |