From 86296a4b132f559da20f186cd5a11cac8de8de27 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 19 Sep 2016 12:09:58 -0700 Subject: [PATCH] [XMonad] Add taffybar support --- dotfiles/lib/bin/restart_taffybar.sh | 3 +++ dotfiles/xmonad/xmonad.hs | 3 ++- dotfiles/xprofile | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 dotfiles/lib/bin/restart_taffybar.sh create mode 100644 dotfiles/xprofile diff --git a/dotfiles/lib/bin/restart_taffybar.sh b/dotfiles/lib/bin/restart_taffybar.sh new file mode 100755 index 00000000..c13fdea0 --- /dev/null +++ b/dotfiles/lib/bin/restart_taffybar.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +pkill taffybar +taffybar $@ diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 2fe9cfeb..31cd9415 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -32,7 +32,7 @@ addKeys conf@XConfig {modMask = modm} = [ ((modm, xK_p), spawn "rofi -show drun") , ((modm .|. shiftMask, xK_p), spawn "rofi -show run") , ((modm, xK_g), spawn "rofi -show window") - -- , ((modm, xK_s), sequence_ [shiftNextScreen, nextScreen]) + , ((modm .|. controlMask, xK_t), spawn "restart_taffybar.sh") -- TODO: Change this to bringing the window to the current workspace , ((modm, xK_b), bringMenuArgs' "rofi" ["-dmenu"]) , ((modm .|. controlMask, xK_space), sendMessage $ JumpToLayout "Full") @@ -54,6 +54,7 @@ myLayoutHook = avoidStruts . smartSpacing 10 . noBorders . mkToggle (MIRROR ?? EOT) $ layouts myStartup = do + spawn "taffybar" spawn "nm-applet --sm-disable" spawn "xsetroot -solid black" -- TODO: Figure out how to set different backgrounds for different x diff --git a/dotfiles/xprofile b/dotfiles/xprofile new file mode 100644 index 00000000..3d31ac74 --- /dev/null +++ b/dotfiles/xprofile @@ -0,0 +1 @@ +source "$HOME/.lib/shellenv.sh"