diff --git a/.config/xmonad/xmonad-with-polybar.org b/.config/xmonad/xmonad-with-polybar.org index 82d5908..d18d5bd 100644 --- a/.config/xmonad/xmonad-with-polybar.org +++ b/.config/xmonad/xmonad-with-polybar.org @@ -180,27 +180,18 @@ myStartupHook = do spawn "killall conky" -- kill current conky on each restart spawn "killall xmobar" -- adding this in case of switching between xmobar and polybar. spawn "killall trayer" -- adding this in case of switching between xmobar and polybar. -#+END_SRC - -#+BEGIN_SRC haskell spawnOnce "lxsession" spawnOnce "picom" spawnOnce "nm-applet" spawnOnce "volumeicon" spawnOnce "notify-log $HOME/.log/notify.log" spawn "/usr/bin/emacs --daemon" -- emacs daemon for the emacsclient -#+END_SRC - -We killed any running conky processes earlier in the autostart, so now we sleep for 2 seconds and then restart conky. -#+BEGIN_SRC haskell + -- We killed any running conky processes earlier in the autostart, + -- so now we sleep for 2 seconds and then restart conky. spawn "polybar-xmonad" spawnOnce "sleep 2 && xmonad --restart" spawn ("sleep 3 && conky -c $HOME/.config/conky/xmonad/" ++ colorScheme ++ "-01.conkyrc") -#+END_SRC - -Select only =ONE= of the following four ways to set the wallpaper. - -#+BEGIN_SRC haskell + -- Select only =ONE= of the following four ways to set the wallpaper. spawnOnce "xargs xwallpaper --stretch < ~/.cache/wall" -- spawnOnce "~/.fehbg &" -- set last saved feh wallpaper -- spawnOnce "feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/*" -- feh set random wallpaper @@ -560,6 +551,7 @@ myManageHook = composeAll , className =? "Yad" --> doCenterFloat , title =? "Oracle VM VirtualBox Manager" --> doFloat , title =? "Order Chain - Market Snapshots" --> doFloat + , title =? "emacs-run-launcher" --> doFloat , title =? "Mozilla Firefox" --> doShift ( myWorkspaces !! 1 ) , className =? "Brave-browser" --> doShift ( myWorkspaces !! 1 ) , className =? "mpv" --> doShift ( myWorkspaces !! 7 ) @@ -649,7 +641,8 @@ myKeys c = , ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") , ("M-S-c", addName "Kill focused window" $ kill1) , ("M-S-a", addName "Kill all windows on WS" $ killAll) - , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) + -- , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) + , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "emacsclient -cF '((visibility . nil))' -e '(emacs-run-launcher)'"]) , ("M-S-b", addName "Toggle bar show/hide" $ sendMessage ToggleStruts) , ("M-/", addName "DTOS Help" $ spawn "~/.local/bin/dtos-help")] diff --git a/.config/xmonad/xmonad.hs b/.config/xmonad/xmonad.hs index 1913b2b..18e0eba 100644 --- a/.config/xmonad/xmonad.hs +++ b/.config/xmonad/xmonad.hs @@ -1,4 +1,4 @@ - -- Base +-- Base import XMonad import System.Directory import System.IO (hClose, hPutStr, hPutStrLn) @@ -125,18 +125,18 @@ myStartupHook = do spawn "killall conky" -- kill current conky on each restart spawn "killall xmobar" -- adding this in case of switching between xmobar and polybar. spawn "killall trayer" -- adding this in case of switching between xmobar and polybar. - spawnOnce "lxsession" spawnOnce "picom" spawnOnce "nm-applet" spawnOnce "volumeicon" spawnOnce "notify-log $HOME/.log/notify.log" spawn "/usr/bin/emacs --daemon" -- emacs daemon for the emacsclient - + -- We killed any running conky processes earlier in the autostart, + -- so now we sleep for 2 seconds and then restart conky. spawn "polybar-xmonad" spawnOnce "sleep 2 && xmonad --restart" spawn ("sleep 3 && conky -c $HOME/.config/conky/xmonad/" ++ colorScheme ++ "-01.conkyrc") - + -- Select only =ONE= of the following four ways to set the wallpaper. spawnOnce "xargs xwallpaper --stretch < ~/.cache/wall" -- spawnOnce "~/.fehbg &" -- set last saved feh wallpaper -- spawnOnce "feh --randomize --bg-fill /usr/share/backgrounds/dtos-backgrounds/*" -- feh set random wallpaper @@ -463,6 +463,7 @@ myManageHook = composeAll , className =? "Yad" --> doCenterFloat , title =? "Oracle VM VirtualBox Manager" --> doFloat , title =? "Order Chain - Market Snapshots" --> doFloat + , title =? "emacs-run-launcher" --> doFloat , title =? "Mozilla Firefox" --> doShift ( myWorkspaces !! 1 ) , className =? "Brave-browser" --> doShift ( myWorkspaces !! 1 ) , className =? "mpv" --> doShift ( myWorkspaces !! 7 ) @@ -503,7 +504,8 @@ myKeys c = , ("M-S-q", addName "Quit XMonad" $ spawn "dm-logout") , ("M-S-c", addName "Kill focused window" $ kill1) , ("M-S-a", addName "Kill all windows on WS" $ killAll) - , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) + -- , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"]) + , ("M-S-", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "emacsclient -cF '((visibility . nil))' -e '(emacs-run-launcher)'"]) , ("M-S-b", addName "Toggle bar show/hide" $ sendMessage ToggleStruts) , ("M-/", addName "DTOS Help" $ spawn "~/.local/bin/dtos-help")]