diff options
author | Ben Sima <ben@bsima.me> | 2019-03-22 16:32:24 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-03-22 16:32:24 -0700 |
commit | d1443586e94b89ee21b4609f6aa4d4077e5a4cbf (patch) | |
tree | f341f1eee4b75bc2da5ea0f7484f1826557ff6b6 | |
parent | 02916834d1d6a829ef1f72567f487465e841b0af (diff) |
Trying to get rofi to work, still doesn't work with xmonad
I can launch rofi from the terminal but the xmonad keys don't work, and I have
no idea why.
-rw-r--r-- | common.nix | 8 | ||||
-rw-r--r-- | linux.nix | 5 | ||||
-rw-r--r-- | packages.nix | 2 | ||||
-rw-r--r-- | xmonad.hs | 15 |
4 files changed, 22 insertions, 8 deletions
@@ -2,17 +2,21 @@ let homedir = builtins.getEnv "HOME"; + locale = "en_US.UTF-8"; in { home = { packages = import ./packages.nix { inherit pkgs; }; sessionVariables = { EDITOR = "emacsclient"; - LANG = "en_US.UTF-8"; + LANG = locale; + LANGUAGE = locale; + #LC_ALL = locale; PATH = "${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH"; PAGER = "less"; LEDGER_FILE = "${homedir}/.hledger.journal"; - XTERM_LOCALE = "en_US.UTF-8"; + XTERM_LOCALE = locale; + LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive"; }; keyboard.options = [ "caps:ctrl_modifier" ]; file = { @@ -120,8 +120,13 @@ in }; programs = { + firefox = { enable = true; }; + + rofi = { + enable = true; + }; }; } diff --git a/packages.nix b/packages.nix index 6804a72..014e3fe 100644 --- a/packages.nix +++ b/packages.nix @@ -6,12 +6,14 @@ with pkgs; ag cloc dict +dmenu entr exercism expect fasd feh file +glibcLocales # rofi locale fix -- https://github.com/rycee/home-manager/issues/354#issuecomment-415914278 gnumake hledger hledger-ui @@ -22,15 +22,18 @@ import XMonad.Actions.CopyWindow import XMonad.Util.EZConfig (additionalKeys) import Graphics.X11.ExtraTypes.XF86 -delKeys conf@(XConfig {modMask = modMask}) = [(modMask, xK_p)] +delKeys conf@(XConfig {modMask = modMask}) = [] + +nixBin = "/home/ben/.nix-profile/bin/" insKeys :: XConfig l -> [((KeyMask, KeySym), X ())] insKeys conf@(XConfig {modMask = modMask}) = - [ -- run dmenu with M-o - ((modMask, xK_o), spawn "dmenu_run") - -- passmenu doesn't work :( - , ((modMask, xK_p), spawn "${SHELL:-\"/bin/sh\"} -c passmenu &") - , ((modMask, xK_y), spawn "passmenu &") + [ ((modMask, xK_y), spawn $ nixBin <> "passmenu") + -- neither of these work: + , ((modMask, xK_u), spawn $ nixBin <> "rofi -sidebar-mode -show window") + , ((modMask, xK_i), spawn $ "rofi -sidebar-mode -show run") + + , ((modMask, xK_o), spawn $ nixBin <> "dmenu_run") -- sticky windows , ((modMask, xK_a ), windows copyToAll) -- @@ Make focused window always visible , ((modMask .|. shiftMask, xK_a ), killAllOtherCopies) -- @@ Toggle window state back |