From a6d1175a5aa4e75dc577a195ef0bfd0ada6d116e Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 16 May 2021 14:13:11 -0400 Subject: [PATCH] Fix Spacing, Rofi Keybindings, & Use ~/.scripts - Fix spacing around and between windows - Add keybindings for rofi-rbw & control center - Replace keybindings for actions with rofi menu - Move system restore processes to the end of startup hook - Use scripts in ~/.scripts with command line arguments where possible - Remove unnecessary shebangs at the start of scripts - Replace polybar powermenu with clickable icon that launches rofi --- README.org | 161 ++++++------------- polybar/config.ini | 97 +++-------- polybar/launch.sh | 2 - polybar/scripts/dunst-notification-status.sh | 2 - polybar/scripts/get-media-playing.sh | 2 - polybar/scripts/updates-pacman-aurhelper.sh | 2 - xmonad.hs | 56 +++---- 7 files changed, 100 insertions(+), 222 deletions(-) diff --git a/README.org b/README.org index 2ac5e01..2bea6c7 100644 --- a/README.org +++ b/README.org @@ -42,7 +42,7 @@ -- layout import XMonad.Layout.NoBorders - import XMonad.Layout.Spacing (spacing) + import XMonad.Layout.Spacing (spacingRaw, Border(Border)) import XMonad.Layout.GridVariants (Grid(Grid)) import XMonad.Layout.ResizableTile #+end_src @@ -263,7 +263,9 @@ These default keybindings are left for reference, but are not actually used in m -- launch rofi , ("M-p", spawn "rofi -show combi") + , ("M-S-p", spawn "/home/sravan/.scripts/control-center.sh --rofi") , ("M-c", spawn "rofi -show clipboard") + , ("M-b", spawn "rofi-rbw") -- volume control , ("", spawn "pactl set-sink-volume @DEFAULT_SINK@ +1%") -- increase volume @@ -271,29 +273,21 @@ These default keybindings are left for reference, but are not actually used in m , ("", spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") -- mute volume -- media control - , ("", spawn "playerctl --player=playerctld play-pause") -- play / pause - , ("C-", spawn "playerctl --player=playerctld next") -- next - , ("C-S-", spawn "playerctl --player=playerctld previous") -- previous - , ("S-", spawn "playerctld shift") -- change player + , ("", spawn "/home/sravan/.scripts/playerctl.sh --play-pause") -- play / pause + , ("M-m", spawn "/home/sravan/.scripts/playerctl.sh --rofi") -- rofi menu -- notification control - , ("M-n", spawn "dunstctl context") -- notification context menu - , ("M-C-n", spawn "dunstctl close") -- close notification - , ("M-S-n", spawn "dunstctl history-pop") -- pop history - , ("M-C-S-n", spawn "dunstctl set-paused toggle") -- toggle do not disturb + , ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu - -- system control - , ("M-q", spawn "xmonad --recompile; xmonad --restart") -- recompile and restart xmonad - , ("M-C-S-q", io (exitWith ExitSuccess)) -- quit xmonad - , ("M-C-S-l", spawn "light-locker-command --lock") -- lock - , ("M-C-S-s", spawn "systemctl suspend") -- suspend + -- session control + , ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu -- close focused window , ("M-S-c", kill) -- regular kill , ("M-C-S-c", spawn "xkill") -- force kill - -- toggle compositor - , ("M-", spawn "/home/sravan/.config/picom/toggle_picom.sh") + -- compositor control + , ("M-", spawn "/home/sravan/.scripts/picom.sh --rofi") -- screenshot , ("", spawn "flameshot gui") @@ -336,17 +330,25 @@ which denotes layout choice. myLayout = avoidStruts ( tiled ||| grid ||| monocle ) where + -- Gaps around and between windows + -- Changes only seem to apply if I log out then in again + -- Dimensions are given as (Border top bottom right left) + mySpacing = spacingRaw False -- Only for >1 window + -- The bottom edge seems to look narrower than it is + (Border 10 15 15 15) -- Size of screen edge gaps + True -- Enable screen edge gaps + (Border 10 10 10 10) -- Size of window gaps + True -- Enable window gaps + -- default tiling algorithm partitions the screen into two panes nmaster = 1 delta = 3/100 tiled_ratio = 1/2 - tiled_spacing = 10 - tiled = spacing tiled_spacing $ ResizableTall nmaster delta tiled_ratio [] + tiled = mySpacing $ ResizableTall nmaster delta tiled_ratio [] -- grid grid_ratio = 16/9 - grid_spacing = 10 - grid = spacing grid_spacing $ Grid grid_ratio + grid = mySpacing $ Grid grid_ratio -- monocle -- monocle = smartBorders (Full) @@ -417,11 +419,6 @@ See the ~XMonad.Hooks.DynamicLog~ extension for examples. #+begin_src haskell :tangle xmonad.hs myStartupHook = do - -- System Restore Processes - spawnOnce "/home/sravan/.screenlayout/default.sh &" -- restore default screen layout - spawnOnce "nitrogen --restore &" -- restore wallpaper - spawnOnce "numlockx on &" -- enable numlock - -- System Tray Applications spawnOnce "nyrna &" -- Nyrna Application Suspend spawnOnce "blueman-applet &" -- Blueman Bluetooth Manager @@ -431,13 +428,18 @@ See the ~XMonad.Hooks.DynamicLog~ extension for examples. spawnOnce "xfce4-power-manager &" -- XFCE4 Power Manager -- Background Processes - spawnOnce "/home/sravan/.config/picom/toggle_picom.sh &" -- Picom Compositor - spawnOnce "/home/sravan/.config/dunst/launch_dunst.sh &" -- Dunst Notification Daemon + spawnOnce "/home/sravan/.scripts/picom.sh --on &" -- Picom Compositor + spawnOnce "/home/sravan/.scripts/dunst.sh --on &" -- Dunst Notification Daemon spawnOnce "greenclip daemon &" -- Greenclip Clipboard Manager spawnOnce "redshift -x &" -- Reset redshift display gamma spawnOnce "redshift-gtk &" -- Redshift Blue Light Filter spawnOnce "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &" -- GNOME Polkit Authentication Agent spawnOnce "light-locker --lock-on-suspend --lock-on-lid &" -- screen lock for lightdm + + -- System Restore Processes + spawnOnce "/home/sravan/.screenlayout/default.sh &" -- restore default screen layout + spawnOnce "nitrogen --restore &" -- restore wallpaper + spawnOnce "numlockx on &" -- enable numlock #+end_src ** Main @@ -1516,8 +1518,6 @@ Define module update intervals in seconds. ***** Script #+begin_src shell :shebang #!/bin/bash :tangle polybar/scripts/updates-pacman-aurhelper.sh - #!/bin/sh - if ! num_updates=$(paru -Qu 2>/dev/null | wc -l); then # if ! updates_aur=$(yay -Qum 2>/dev/null | wc -l); then # if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then @@ -1576,9 +1576,9 @@ Define module update intervals in seconds. ; %pid% ; ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" - click-left = playerctl --player=playerctld play-pause & + click-left = "/home/sravan/.scripts/playerctl.sh --play-pause" ; click-middle = echo middle %counter% - click-right = playerctld shift & + click-right = "/home/sravan/.scripts/playerctl.sh --change" ; double-click-left = echo double left %counter% ; double-click-middle = echo double middle %counter% ; double-click-right = echo double right %counter% @@ -1588,15 +1588,13 @@ Define module update intervals in seconds. ; %pid% ; ; "scroll-(up|down)" will be executed using "/bin/sh -c [command]" - scroll-up = "playerctl --player=playerctld next" - scroll-down = "playerctl --player=playerctld previous" + scroll-up = "/home/sravan/.scripts/playerctl.sh --next" + scroll-down = "/home/sravan/.scripts/playerctl.sh --prev" #+end_src ***** Script #+begin_src shell :shebang #!/bin/bash :tangle polybar/scripts/get-media-playing.sh - #!/usr/bin/bash - mediaStatus=$(playerctl --player=playerctld metadata 2>&1) if [[ "$mediaStatus" == "No player could handle this command" ]]; then @@ -1662,9 +1660,9 @@ Define module update intervals in seconds. ; %pid% ; ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" - click-left = "dunstctl set-paused toggle &" + click-left = "/home/sravan/.scripts/dunst.sh --dnd" ; click-middle = echo middle %counter% - click-right = "dunstctl history-pop &" + click-right = "/home/sravan/.scripts/dunst.sh --history" ; double-click-left = echo double left %counter% ; double-click-middle = echo double middle %counter% ; double-click-right = echo double right %counter% @@ -1681,8 +1679,6 @@ Define module update intervals in seconds. ***** Script #+begin_src shell :shebang #!/bin/bash :tangle polybar/scripts/dunst-notification-status.sh - #!/bin/bash - # Check if dunst is running if pgrep -x "dunst" > /dev/null then @@ -1704,79 +1700,24 @@ Define module update intervals in seconds. #+begin_src conf :tangle polybar/config.ini [module/powermenu] - type = custom/menu + type = custom/text + content = " " - expand-right = true + ; "content" has the same properties as "format-NAME" + ; content-background = #000 + content-foreground = ${colors.powermenu} + content-padding = ${bar/mybar.module-margin} - format-spacing = ${bar/mybar.module-margin} + ; "click-(left|middle|right)" will be executed using "/bin/sh -c $COMMAND" + ; click-left = notify-send left + ; click-middle = notify-send middle + ; click-right = notify-send right + click-left = "rofi -show combi" + click-right = "/home/sravan/.scripts/control-center.sh --rofi" - label-open = " " - label-open-foreground = ${colors.powermenu} - label-close = "  close" - label-close-foreground = ${colors.powermenu-close} - label-separator = ${bar/mybar.separator} - label-separator-foreground = ${colors.foreground} - - menu-0-0 = " logout" - menu-0-0-exec = menu-open-1 - menu-0-0-foreground = ${colors.powermenu-logout} - menu-0-1 = " lock" - menu-0-1-exec = menu-open-2 - menu-0-1-foreground = ${colors.powermenu-lock} - menu-0-2 = "⏾ sleep" - menu-0-2-exec = menu-open-3 - menu-0-2-foreground = ${colors.powermenu-sleep} - menu-0-3 = "ﰇ reboot" - menu-0-3-exec = menu-open-4 - menu-0-3-foreground = ${colors.powermenu-reboot} - menu-0-4 = " power off" - menu-0-4-exec = menu-open-5 - menu-0-4-foreground = ${colors.powermenu-power-off} - menu-0-5 = "鈴 hibernate" - menu-0-5-exec = menu-open-6 - menu-0-5-foreground = ${colors.powermenu-hibernate} - - menu-1-0 = " logout" - menu-1-0-exec = "pkill xmonad" - menu-1-0-foreground = ${colors.powermenu-logout} - menu-1-1 = "ﰸ cancel" - menu-1-1-exec = menu-open-0 - menu-1-1-foreground = ${colors.powermenu-cancel} - - menu-2-0 = " lock" - menu-2-0-exec = "light-locker-command --lock" - menu-2-0-foreground = ${colors.powermenu-lock} - menu-2-1 = "ﰸ cancel" - menu-2-1-exec = menu-open-0 - menu-2-1-foreground = ${colors.powermenu-cancel} - - menu-3-0 = "⏾ sleep" - menu-3-0-exec = "systemctl suspend" - menu-3-0-foreground = ${colors.powermenu-sleep} - menu-3-1 = "ﰸ cancel" - menu-3-1-exec = menu-open-0 - menu-3-1-foreground = ${colors.powermenu-cancel} - - menu-4-0 = "ﰇ reboot" - menu-4-0-exec = "reboot" - menu-4-0-foreground = ${colors.powermenu-reboot} - menu-4-1 = "ﰸ cancel" - menu-4-1-exec = menu-open-0 - menu-4-1-foreground = ${colors.powermenu-cancel} - - menu-5-0 = " power off" - menu-5-0-exec = "poweroff" - menu-5-0-foreground = ${colors.powermenu-power-off} - menu-5-1 = "ﰸ cancel" - menu-5-1-exec = menu-open-0 - menu-5-1-foreground = ${colors.powermenu-cancel} - - menu-6-0 = "鈴 hibernate" - menu-6-0-exec = "systemctl hibernate" - menu-6-0-foreground = ${colors.powermenu-hibernate} - menu-6-1 = "ﰸ cancel" - menu-6-1-exec = menu-open-0 - menu-6-1-foreground = ${colors.powermenu-cancel} + ; "scroll-(up|down)" will be executed using "/bin/sh -c $COMMAND" + ; scroll-up = notify-send scroll up + ; scroll-down = notify-send scroll down #+end_src **** User / Kernel @@ -1818,8 +1759,6 @@ Define module update intervals in seconds. *** Launch Script #+begin_src shell :shebang #!/bin/bash :tangle polybar/launch.sh - #!/bin/bash - BAR="mybar" CONFIG="~/.xmonad/polybar/config.ini" NUM_MONITORS=0 diff --git a/polybar/config.ini b/polybar/config.ini index 8cf50fb..1ca5387 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -913,9 +913,9 @@ label-maxlen = ${sizes.maxlen} ; %pid% ; ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" -click-left = playerctl --player=playerctld play-pause & +click-left = "/home/sravan/.scripts/playerctl.sh --play-pause" ; click-middle = echo middle %counter% -click-right = playerctld shift & +click-right = "/home/sravan/.scripts/playerctl.sh --change" ; double-click-left = echo double left %counter% ; double-click-middle = echo double middle %counter% ; double-click-right = echo double right %counter% @@ -925,8 +925,8 @@ click-right = playerctld shift & ; %pid% ; ; "scroll-(up|down)" will be executed using "/bin/sh -c [command]" -scroll-up = "playerctl --player=playerctld next" -scroll-down = "playerctl --player=playerctld previous" +scroll-up = "/home/sravan/.scripts/playerctl.sh --next" +scroll-down = "/home/sravan/.scripts/playerctl.sh --prev" [module/dunst-notification-status] type = custom/script @@ -969,9 +969,9 @@ label-foreground = ${colors.dunst-notification-status} ; %pid% ; ; "click-(left|middle|right)" will be executed using "/bin/sh -c [command]" -click-left = "dunstctl set-paused toggle &" +click-left = "/home/sravan/.scripts/dunst.sh --dnd" ; click-middle = echo middle %counter% -click-right = "dunstctl history-pop &" +click-right = "/home/sravan/.scripts/dunst.sh --history" ; double-click-left = echo double left %counter% ; double-click-middle = echo double middle %counter% ; double-click-right = echo double right %counter% @@ -985,79 +985,24 @@ click-right = "dunstctl history-pop &" ; scroll-down = [module/powermenu] -type = custom/menu +type = custom/text +content = " " -expand-right = true +; "content" has the same properties as "format-NAME" +; content-background = #000 +content-foreground = ${colors.powermenu} +content-padding = ${bar/mybar.module-margin} -format-spacing = ${bar/mybar.module-margin} +; "click-(left|middle|right)" will be executed using "/bin/sh -c $COMMAND" +; click-left = notify-send left +; click-middle = notify-send middle +; click-right = notify-send right +click-left = "rofi -show combi" +click-right = "/home/sravan/.scripts/control-center.sh --rofi" -label-open = " " -label-open-foreground = ${colors.powermenu} -label-close = "  close" -label-close-foreground = ${colors.powermenu-close} -label-separator = ${bar/mybar.separator} -label-separator-foreground = ${colors.foreground} - -menu-0-0 = " logout" -menu-0-0-exec = menu-open-1 -menu-0-0-foreground = ${colors.powermenu-logout} -menu-0-1 = " lock" -menu-0-1-exec = menu-open-2 -menu-0-1-foreground = ${colors.powermenu-lock} -menu-0-2 = "⏾ sleep" -menu-0-2-exec = menu-open-3 -menu-0-2-foreground = ${colors.powermenu-sleep} -menu-0-3 = "ﰇ reboot" -menu-0-3-exec = menu-open-4 -menu-0-3-foreground = ${colors.powermenu-reboot} -menu-0-4 = " power off" -menu-0-4-exec = menu-open-5 -menu-0-4-foreground = ${colors.powermenu-power-off} -menu-0-5 = "鈴 hibernate" -menu-0-5-exec = menu-open-6 -menu-0-5-foreground = ${colors.powermenu-hibernate} - -menu-1-0 = " logout" -menu-1-0-exec = "pkill xmonad" -menu-1-0-foreground = ${colors.powermenu-logout} -menu-1-1 = "ﰸ cancel" -menu-1-1-exec = menu-open-0 -menu-1-1-foreground = ${colors.powermenu-cancel} - -menu-2-0 = " lock" -menu-2-0-exec = "light-locker-command --lock" -menu-2-0-foreground = ${colors.powermenu-lock} -menu-2-1 = "ﰸ cancel" -menu-2-1-exec = menu-open-0 -menu-2-1-foreground = ${colors.powermenu-cancel} - -menu-3-0 = "⏾ sleep" -menu-3-0-exec = "systemctl suspend" -menu-3-0-foreground = ${colors.powermenu-sleep} -menu-3-1 = "ﰸ cancel" -menu-3-1-exec = menu-open-0 -menu-3-1-foreground = ${colors.powermenu-cancel} - -menu-4-0 = "ﰇ reboot" -menu-4-0-exec = "reboot" -menu-4-0-foreground = ${colors.powermenu-reboot} -menu-4-1 = "ﰸ cancel" -menu-4-1-exec = menu-open-0 -menu-4-1-foreground = ${colors.powermenu-cancel} - -menu-5-0 = " power off" -menu-5-0-exec = "poweroff" -menu-5-0-foreground = ${colors.powermenu-power-off} -menu-5-1 = "ﰸ cancel" -menu-5-1-exec = menu-open-0 -menu-5-1-foreground = ${colors.powermenu-cancel} - -menu-6-0 = "鈴 hibernate" -menu-6-0-exec = "systemctl hibernate" -menu-6-0-foreground = ${colors.powermenu-hibernate} -menu-6-1 = "ﰸ cancel" -menu-6-1-exec = menu-open-0 -menu-6-1-foreground = ${colors.powermenu-cancel} +; "scroll-(up|down)" will be executed using "/bin/sh -c $COMMAND" +; scroll-up = notify-send scroll up +; scroll-down = notify-send scroll down [module/user-kernel] type = custom/ipc diff --git a/polybar/launch.sh b/polybar/launch.sh index afcc4a3..b04110a 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -1,6 +1,4 @@ #!/bin/bash -#!/bin/bash - BAR="mybar" CONFIG="~/.xmonad/polybar/config.ini" NUM_MONITORS=0 diff --git a/polybar/scripts/dunst-notification-status.sh b/polybar/scripts/dunst-notification-status.sh index 5a4f445..244a0a2 100755 --- a/polybar/scripts/dunst-notification-status.sh +++ b/polybar/scripts/dunst-notification-status.sh @@ -1,6 +1,4 @@ #!/bin/bash -#!/bin/bash - # Check if dunst is running if pgrep -x "dunst" > /dev/null then diff --git a/polybar/scripts/get-media-playing.sh b/polybar/scripts/get-media-playing.sh index e9d81d7..756686b 100755 --- a/polybar/scripts/get-media-playing.sh +++ b/polybar/scripts/get-media-playing.sh @@ -1,6 +1,4 @@ #!/bin/bash -#!/usr/bin/bash - mediaStatus=$(playerctl --player=playerctld metadata 2>&1) if [[ "$mediaStatus" == "No player could handle this command" ]]; then diff --git a/polybar/scripts/updates-pacman-aurhelper.sh b/polybar/scripts/updates-pacman-aurhelper.sh index 7e010cd..90d96bf 100755 --- a/polybar/scripts/updates-pacman-aurhelper.sh +++ b/polybar/scripts/updates-pacman-aurhelper.sh @@ -1,6 +1,4 @@ #!/bin/bash -#!/bin/sh - if ! num_updates=$(paru -Qu 2>/dev/null | wc -l); then # if ! updates_aur=$(yay -Qum 2>/dev/null | wc -l); then # if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then diff --git a/xmonad.hs b/xmonad.hs index 3f80d8a..25a0e32 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -24,7 +24,7 @@ import XMonad.Actions.CycleWS -- layout import XMonad.Layout.NoBorders -import XMonad.Layout.Spacing (spacing) +import XMonad.Layout.Spacing (spacingRaw, Border(Border)) import XMonad.Layout.GridVariants (Grid(Grid)) import XMonad.Layout.ResizableTile @@ -92,7 +92,9 @@ myKeys = -- launch rofi , ("M-p", spawn "rofi -show combi") + , ("M-S-p", spawn "/home/sravan/.scripts/control-center.sh --rofi") , ("M-c", spawn "rofi -show clipboard") + , ("M-b", spawn "rofi-rbw") -- volume control , ("", spawn "pactl set-sink-volume @DEFAULT_SINK@ +1%") -- increase volume @@ -100,29 +102,21 @@ myKeys = , ("", spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") -- mute volume -- media control - , ("", spawn "playerctl --player=playerctld play-pause") -- play / pause - , ("C-", spawn "playerctl --player=playerctld next") -- next - , ("C-S-", spawn "playerctl --player=playerctld previous") -- previous - , ("S-", spawn "playerctld shift") -- change player + , ("", spawn "/home/sravan/.scripts/playerctl.sh --play-pause") -- play / pause + , ("M-m", spawn "/home/sravan/.scripts/playerctl.sh --rofi") -- rofi menu -- notification control - , ("M-n", spawn "dunstctl context") -- notification context menu - , ("M-C-n", spawn "dunstctl close") -- close notification - , ("M-S-n", spawn "dunstctl history-pop") -- pop history - , ("M-C-S-n", spawn "dunstctl set-paused toggle") -- toggle do not disturb + , ("M-n", spawn "/home/sravan/.scripts/dunst.sh --rofi") -- rofi menu - -- system control - , ("M-q", spawn "xmonad --recompile; xmonad --restart") -- recompile and restart xmonad - , ("M-C-S-q", io (exitWith ExitSuccess)) -- quit xmonad - , ("M-C-S-l", spawn "light-locker-command --lock") -- lock - , ("M-C-S-s", spawn "systemctl suspend") -- suspend + -- session control + , ("M-q", spawn "/home/sravan/.scripts/session.sh --rofi") -- rofi menu -- close focused window , ("M-S-c", kill) -- regular kill , ("M-C-S-c", spawn "xkill") -- force kill - -- toggle compositor - , ("M-", spawn "/home/sravan/.config/picom/toggle_picom.sh") + -- compositor control + , ("M-", spawn "/home/sravan/.scripts/picom.sh --rofi") -- screenshot , ("", spawn "flameshot gui") @@ -147,17 +141,25 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = M.fromList $ myLayout = avoidStruts ( tiled ||| grid ||| monocle ) where + -- Gaps around and between windows + -- Changes only seem to apply if I log out then in again + -- Dimensions are given as (Border top bottom right left) + mySpacing = spacingRaw False -- Only for >1 window + -- The bottom edge seems to look narrower than it is + (Border 10 15 15 15) -- Size of screen edge gaps + True -- Enable screen edge gaps + (Border 10 10 10 10) -- Size of window gaps + True -- Enable window gaps + -- default tiling algorithm partitions the screen into two panes nmaster = 1 delta = 3/100 tiled_ratio = 1/2 - tiled_spacing = 10 - tiled = spacing tiled_spacing $ ResizableTall nmaster delta tiled_ratio [] + tiled = mySpacing $ ResizableTall nmaster delta tiled_ratio [] -- grid grid_ratio = 16/9 - grid_spacing = 10 - grid = spacing grid_spacing $ Grid grid_ratio + grid = mySpacing $ Grid grid_ratio -- monocle -- monocle = smartBorders (Full) @@ -176,11 +178,6 @@ myPlacement = withGaps (16,0,16,0) (smart (0.5,0.5)) myEventHook = ewmhDesktopsEventHook myStartupHook = do - -- System Restore Processes - spawnOnce "/home/sravan/.screenlayout/default.sh &" -- restore default screen layout - spawnOnce "nitrogen --restore &" -- restore wallpaper - spawnOnce "numlockx on &" -- enable numlock - -- System Tray Applications spawnOnce "nyrna &" -- Nyrna Application Suspend spawnOnce "blueman-applet &" -- Blueman Bluetooth Manager @@ -190,14 +187,19 @@ myStartupHook = do spawnOnce "xfce4-power-manager &" -- XFCE4 Power Manager -- Background Processes - spawnOnce "/home/sravan/.config/picom/toggle_picom.sh &" -- Picom Compositor - spawnOnce "/home/sravan/.config/dunst/launch_dunst.sh &" -- Dunst Notification Daemon + spawnOnce "/home/sravan/.scripts/picom.sh --on &" -- Picom Compositor + spawnOnce "/home/sravan/.scripts/dunst.sh --on &" -- Dunst Notification Daemon spawnOnce "greenclip daemon &" -- Greenclip Clipboard Manager spawnOnce "redshift -x &" -- Reset redshift display gamma spawnOnce "redshift-gtk &" -- Redshift Blue Light Filter spawnOnce "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &" -- GNOME Polkit Authentication Agent spawnOnce "light-locker --lock-on-suspend --lock-on-lid &" -- screen lock for lightdm + -- System Restore Processes + spawnOnce "/home/sravan/.screenlayout/default.sh &" -- restore default screen layout + spawnOnce "nitrogen --restore &" -- restore wallpaper + spawnOnce "numlockx on &" -- enable numlock + main = do -- launches polybar spawn "/home/sravan/.xmonad/polybar/launch.sh &"