-- Start a terminal
((modMask, xK_Return), spawn $ XMonad.terminal conf)
-- Launch a program
- , ((modMask, xK_Menu), spawn "exec gmrun")
+ , ((modMask, xK_Menu), spawn "exec rofi -show run -no-disable-history -run-command \"bash -c 'systemd-run --user --unit=app-org.rofi.\\$(systemd-escape \\\"{cmd}\\\")@\\$RANDOM -p CollectMode=inactive-or-failed {cmd}'\"")
-- Browse the filesystem
- , ((modMask, xK_BackSpace), spawn "nautilus")
+ , ((modMask, xK_BackSpace), spawn "systemd-run --user --unit=app-org.rofi.caja@$RANDOM -p CollectMode=inactive-or-failed caja")
-- Lock the screen
, ((0, xK_Pause), spawn "systemctl --user start xss-lock.service; xset s activate dpms force off")
-- Take a full screenshot
- , ((0, xK_Print), spawn "cd ~/img/cap && scrot --quality 42 '%Y-%m-%d_%H-%M-%S.png' && nautilus ~/img/cap")
+ , ((0, xK_Print), spawn "cd ~/img/cap && scrot --quality 42 '%Y-%m-%d_%H-%M-%S.png' && caja ~/img/cap")
-- Take a selective screenshot
, ((modMask, xK_Print), spawn "select-screenshot")
, ((modMask, xK_Escape), kill)
, ((modMask, xK_q), kill)
+ -- Clipboard
+ , ((modMask, xK_c), spawn "clipster --select --primary")
+
-- Temporarily maximize a window
, ((modMask, xK_f), sendMessage $ XMonad.Layout.MultiToggle.Toggle FULL)
-- , ((modMask, xK_f), withFocused (sendMessage . maximizeRestore))
<+> spawn "xset b off"
<+> spawn "xhost local:root"
<+> spawn "setxkbmap -option keypad:pointerkeys"
+ -- Useful for programs launched by rofi
+ <+> spawnOnce "exec systemctl --user import-environment GNUPGHOME PASSWORD_STORE_DIR PATH"
-- <+> spawnOnce "exec arbtt-capture -r 60"
-- <+> spawnOnce "exec parcellite"
- -- <+> spawnOnce "exec urxvtd -o -q"
-- <+> spawnOnce "exec xautolock"
-- <+> spawnOnce "exec redshift-gtk -l -45.7800:1.9700 -t 6500:3700"
<+> spawnOnce "exec nm-applet"
_ -> s
, ppOutput = hPutStrLn xmproc
, ppSep = " "
- , ppTitle = xmobarColor "white" "black" . shorten 100
+ , ppTitle = xmobarColor "white" "black" . shorten 50
, ppUrgent = xmobarColor "yellow" "black"
, ppWsSep = " "
}
, inactiveBorderColor = "#7C7C7C"
, inactiveColor = "#000000"
, inactiveTextColor = "#EEEEEE"
- , fontName = "xft:DejaVu Sans Mono:pixelsize=9:antialias=true"
+ , fontName = "Hack 7"
}
--