From 3a673f819e543d45ad715e7cfdd35b8f141d79a7 Mon Sep 17 00:00:00 2001 From: trey Date: Fri, 10 Aug 2018 22:27:59 -0400 Subject: [PATCH] Organized some dmenu code, went back to Xfce4-dict for dictionary app. --- xmonad.hs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/xmonad.hs b/xmonad.hs index 0223f9f..0c83b52 100755 --- a/xmonad.hs +++ b/xmonad.hs @@ -104,7 +104,15 @@ toggleHomeScreens = do else if sc == 3 then do spawn "xrandr --output eDP-1-1 --primary --auto --output DVI-I-2-1 --auto --left-of eDP-1-1 --output DVI-I-3-2 --auto --right-of eDP-1-1" - spawn "while true; do ~/bin/battery; echo -n ' '; echo -n $(cat /tmp/temp); echo -n ' '; date '+%a, %b %d %T'; cal; sleep 1; done | dzen2 -dock -p -x 1680 -w 235 -e 'onstart:uncollapse;button1=togglecollapse;button2=togglehide' -h 24 -ta l -fg #aaaaaa -bg #000000 -fn Terminus-10 -xs 1 -l 8 &" + spawn "while true; do \n\ + \~/bin/battery; \n\ + \echo -n ' '; \n\ + \echo -n $(cat /tmp/temp); \n\ + \echo -n ' '; \n\ + \date '+%a, %b %d %T'; \n\ + \cal; sleep 1; \n\ + \done | dzen2 -dock -p -x 1680 -w 235 -e 'onstart:uncollapse;button1=togglecollapse;button2=togglehide' \n\ + \-h 24 -ta l -fg #aaaaaa -bg #000000 -fn Terminus-10 -xs 1 -l 8 &" spawn "while true; do ~/bin/battery; echo -n ' '; echo -n $(cat /tmp/temp); echo -n ' '; date '+%a, %b %d %T'; cal; sleep 1; done | dzen2 -dock -p -x 3600 -w 235 -e 'onstart:uncollapse;button2=togglehide' -h 24 -ta l -fg #aaaaaa -bg #000000 -fn Terminus-10 -xs 1 -l 8 &" spawn "while true; do ~/bin/battery; echo -n ' '; echo -n $(cat /tmp/temp); echo -n ' '; date '+%a, %b %d %T'; cal; sleep 1; done | dzen2 -dock -p -x 5520 -w 235 -e 'onstart:uncollapse;button2=togglehide' -h 24 -ta l -fg #aaaaaa -bg #000000 -fn Terminus-10 -xs 1 -l 8 &" {- spawn "while true; do echo -n $(cat /tmp/temp); echo -n ' '; date '+%a, %b %d %T'; sleep 1; done | dzen2 -dock -p -x 1710 -w 210 -e 'onstart:lower;button2=togglehide' -h 24 -ta l -fg #aaaaaa -bg #000000 -fn Terminus-10 -xs 1 &" @@ -224,7 +232,7 @@ myStartup :: X () myStartup = do setWMName "LG3D" toggleHomeScreens - spawn "trayer --edge top --align right --widthtype request --margin 243 --expand true --align right --SetDockType true --SetPartialStrut false --tint 0x000000 --transparent true --alpha 0 --height 24 --monitor 'primary'" + spawn "trayer --edge top --align right --widthtype request --margin 255 --expand true --align right --SetDockType true --SetPartialStrut false --tint 0x000000 --transparent true --alpha 0 --height 24 --monitor 'primary'" --spawn "gnome-gmail-notifier" spawn "xset dpms 600" spawn "xautolock -secure -time 10 -locker 'i3lock -c 000000'" @@ -348,8 +356,8 @@ myKeys = [ --, ((winKey , xK_i), spawnHere "iceweasel") --, ((winKey , xK_i), spawnHere "clementine") , ((winKey , xK_i), ifWindows (className =? "Clementine") (mapM_ killWindow) (spawnHere "clementine")) - --, ((winKey , xK_d), spawnHere "xfce4-dict") - , ((winKey , xK_d), ifWindows (className =? "Gnome-dictionary") (mapM_ killWindow) (spawnHere "gnome-dictionary")) + , ((winKey , xK_d), ifWindows (className =? "Xfce4-dict") (mapM_ killWindow) (spawnHere "xfce4-dict")) + --, ((winKey , xK_d), ifWindows (className =? "Gnome-dictionary") (mapM_ killWindow) (spawnHere "gnome-dictionary")) , ((winKey , xK_f), spawnHere (myTerminal ++ " -e vifm . ~")) --, ((winKey , xK_f), spawnHere ("export SHELL=/bin/bash && " ++ myTerminal ++ " -e mc")) --, ((winKey , xK_e), spawnHere ("export SHELL=/bin/bash && " ++ myTerminal ++ " -e mc")) -- key stroke matches Win+E (from Win7)