Revert "[Linux] Taffybar now managed by xmonad instead of systemd"

This reverts commit 04ae4335f2.
This commit is contained in:
Ivan Malison 2016-10-29 19:03:32 -07:00
parent 4561cfc6ed
commit 9afa4c8e63
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
8 changed files with 19 additions and 4 deletions

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=Dunst Description=Dunst
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=KeePassX Description=KeePassX
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=NM Applet Description=NM Applet
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=Pulse Audio System Tray Description=Pulse Audio System Tray
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=ScreenCloud Description=ScreenCloud
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -0,0 +1,10 @@
[Unit]
Description=taffybar
[Service]
Type=simple
ExecStart=/usr/bin/env taffybar
ExecStop=/usr/bin/pkill taffybar
[Install]
WantedBy=wm.target

View File

@ -1,5 +1,6 @@
[Unit] [Unit]
Description=udiskie Description=udiskie
Requires=taffybar.service
After=taffybar.service After=taffybar.service
[Service] [Service]

View File

@ -65,9 +65,7 @@ virtualClasses = [(hangoutsSelector, "Hangouts")]
-- Startup -- Startup
myStartup = do myStartup = spawn "systemctl --user start wm.target"
spawn "taffybar"
spawn "systemctl --user start wm.target"
-- Manage -- Manage
@ -206,7 +204,8 @@ addKeys conf@XConfig {modMask = modm} =
, ((modm .|. shiftMask, xK_p), spawn "rofi -show run") , ((modm .|. shiftMask, xK_p), spawn "rofi -show run")
, ((modm, xK_g), actionMenu myWindowBringerConfig greedyFocusWindow) , ((modm, xK_g), actionMenu myWindowBringerConfig greedyFocusWindow)
, ((modm, xK_b), bringMenuConfig myWindowBringerConfig) , ((modm, xK_b), bringMenuConfig myWindowBringerConfig)
, ((modm .|. controlMask, xK_t), spawn "restart.sh taffybar") , ((modm .|. controlMask, xK_t), spawn
"systemctl --user restart taffybar.service")
, ((modm, xK_v), spawn "copyq paste") , ((modm, xK_v), spawn "copyq paste")
, ((modm, xK_s), swapNextScreen) , ((modm, xK_s), swapNextScreen)
, ((modm .|. controlMask, xK_space), sendMessage $ JumpToLayout "Full") , ((modm .|. controlMask, xK_space), sendMessage $ JumpToLayout "Full")