summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-05-22 19:42:37 -0400
committerBen Sima <ben@bsima.me>2021-05-22 19:42:37 -0400
commite2e466e4ac94e1d0c5d4ba0d4f6e4d56ebca2c5c (patch)
tree9568a1bd7eaadab49c504c33998c8544f18a3b62
parent719a7d928005e848a3fb2a48c927e8a4a25f41a8 (diff)
Add dswitcher and cleanup xmonad a bit
-rw-r--r--lib/xmonad.hs12
-rw-r--r--profiles/laptop.nix5
2 files changed, 9 insertions, 8 deletions
diff --git a/lib/xmonad.hs b/lib/xmonad.hs
index 7fcff32..945cdac 100644
--- a/lib/xmonad.hs
+++ b/lib/xmonad.hs
@@ -64,9 +64,6 @@ getColorsFromXtheme =
"dark" -> return darkTheme
_ -> return darkTheme
-nixBin :: String
-nixBin = "/home/ben/.nix-profile/bin/"
-
altMask :: KeyMask
altMask = mod1Mask
@@ -76,19 +73,18 @@ dimmer = "brightnessctl s 5%-"
insKeys :: XConfig l -> [((KeyMask, KeySym), X ())]
insKeys conf@(XConfig {modMask = modMask}) =
- [ ((modMask, xK_y), spawn $ nixBin <> "passmenu"),
+ [ ((modMask, xK_y), spawn "passmenu"),
((modMask, xK_m), spawn "cmdtree"),
((modMask, xK_o), spawn "cmdtree"),
+ ((modMask, xK_n), spawn "dswitcher"),
-- restart xmonad and display stuff via home-manager
( (modMask, xK_r),
spawn $
intercalate
" && "
- [ "$HOME/.nix-profile/bin/xmonad --recompile",
- "$HOME/.nix-profile/bin/xmonad --restart",
- "$HOME/.nix-profile/bin/xlayoutdisplay",
- "$HOME/bin/uctl restart polybar"
+ [ "xlayoutdisplay",
+ "uctl restart polybar"
]
),
diff --git a/profiles/laptop.nix b/profiles/laptop.nix
index 3ecee50..e8bdbba 100644
--- a/profiles/laptop.nix
+++ b/profiles/laptop.nix
@@ -5,4 +5,9 @@
imports = [
../lib/linux.nix
];
+ home = {
+ packages = [
+ pkgs.wmctrl
+ ];
+ };
}