aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2021-11-02 20:15:32 -0600
committerJosh Rahm <rahm@google.com>2021-11-02 20:16:45 -0600
commit791ea7971b097a8146e993ed5ba490ccf0b2c72c (patch)
tree35513423208a35a7f45048954f005f91fd94885a /src
parentbc641331a060a8bd4941b1854a08a97b3700fe6c (diff)
downloadrde-791ea7971b097a8146e993ed5ba490ccf0b2c72c.tar.gz
rde-791ea7971b097a8146e993ed5ba490ccf0b2c72c.tar.bz2
rde-791ea7971b097a8146e993ed5ba490ccf0b2c72c.zip
More XMobar sexiness.
Revamped the install script to make it easier to handle the install process.
Diffstat (limited to 'src')
-rw-r--r--src/Internal/Keys.hs6
-rw-r--r--src/Main.hs2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs
index c97736f..3dff864 100644
--- a/src/Internal/Keys.hs
+++ b/src/Internal/Keys.hs
@@ -85,7 +85,8 @@ newKeys markContext =
, ((modm .|. mod1Mask, xK_s), (void $ spawn "sudo systemctl suspend && xsecurelock"))
, ((modm .|. shiftMask, xK_c), kill)
, ((modm .|. shiftMask, xK_t), withFocused $ windows . W.sink)
- , ((mod4Mask, xK_Escape), (void $ spawn "xterm"))
+ , ((mod4Mask, xK_BackSpace), (void $ spawn "xterm"))
+ , ((mod3Mask, xK_BackSpace), (void $ spawn "pkill -SIGUSR1 xmobar"))
, ((mod3Mask, xK_t), (void $ spawn (terminal config)))
, ((modm, xK_m), (submap $ mapAlpha modm (markCurrentWindow markContext)))
, ((modm, xK_w), runXPlus markContext config windowJump)
@@ -122,6 +123,9 @@ newKeys markContext =
, ((modm, xK_q), spawn "xmonad --recompile && xmonad --restart")
, ((modm, xK_z), sendMessage ToggleZoom)
+ , ((modm, xK_x), spawn "bluetooth-select.sh")
+ , ((modm .|. shiftMask, xK_x), spawn "bluetoothctl -- disconnect")
+
, ((modm, xK_Tab), windows W.focusDown)
, ((modm .|. shiftMask, xK_Tab), windows W.focusUp)
diff --git a/src/Main.hs b/src/Main.hs
index 195c151..85d18c7 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -58,7 +58,7 @@ main = do
"xmobar"
xmobarPP {
ppCurrent = xmobarColor "#ff8888" "red" . printf "<fn=1>%s</fn>"
- , ppVisible = xmobarColor "#8888ff" "" . printf "<fn=0>%s</fn>"
+ , ppVisible = xmobarColor "#8888ff" "" . printf "<fn=6>%s</fn>"
, ppHidden = xmobarColor "#888888" "" . printf "<fn=2>%s</fn>"
, ppWsSep = "<fn=1><fc=#808080> </fc></fn>"
, ppTitle =