diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.nix | 6 | ||||
-rw-r--r-- | lib/packages.nix | 1 | ||||
-rw-r--r-- | lib/xmonad.hs | 13 |
3 files changed, 14 insertions, 6 deletions
diff --git a/lib/common.nix b/lib/common.nix index 4e1bb18..47a2124 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -75,9 +75,13 @@ in urxvt = { enable = true; - fonts = []; + fonts = [ + "xft:Fira Mono:size=8:ant" + "xfg:Noto Emoji" + ]; iso14755 = true; # unicode chars transparent = true; + shading = 20; }; ssh = { diff --git a/lib/packages.nix b/lib/packages.nix index 25e5eef..358b0bd 100644 --- a/lib/packages.nix +++ b/lib/packages.nix @@ -43,6 +43,7 @@ material-icons mononoki ncdu nix-prefetch-scripts +noto-fonts-emoji ormolu pass pianobar diff --git a/lib/xmonad.hs b/lib/xmonad.hs index 0c616e5..bc206d3 100644 --- a/lib/xmonad.hs +++ b/lib/xmonad.hs @@ -66,6 +66,9 @@ nixBin = "/home/ben/.nix-profile/bin/" altMask :: KeyMask altMask = mod1Mask +brighter = "brightnessctl s 5%+" +dimmer = "brightnessctl s 5%-" + insKeys :: XConfig l -> [((KeyMask, KeySym), X ())] insKeys conf@(XConfig {modMask = modMask}) = [ ((modMask, xK_y), spawn $ nixBin <> "passmenu") @@ -82,10 +85,10 @@ insKeys conf@(XConfig {modMask = modMask}) = -- media/ function keys -- backlight - , ((0, xK_F5), spawn "xbacklight -dec 5") - , ((0, xK_F6), spawn "xbacklight -inc 5") - , ((0, xF86XK_KbdBrightnessDown), spawn "xbacklight -dec 5") - , ((0, xF86XK_KbdBrightnessUp), spawn "xbacklight -inc 5") + , ((0, xK_F5), spawn dimmer) + , ((0, xK_F6), spawn brighter) + , ((0, xF86XK_KbdBrightnessDown), spawn dimmer) + , ((0, xF86XK_KbdBrightnessUp), spawn brighter) -- volume controls , ((0, xK_F1), amixer "toggle") , ((0, xK_F2), amixer "2%+") @@ -153,7 +156,7 @@ myConf theme = additionalKeys c (insKeys c) , borderWidth = 3 , manageHook = manageDocks <+> manageHook def , layoutHook = myLayout theme - , terminal = "/home/ben/.nix-profile/bin/xterm" + , terminal = "/home/ben/.nix-profile/bin/urxvt" , workspaces = myWorkspaces } |