mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-13 20:28:35 +10:00
Adding window rules and keybinding for emacs-run-launcher
This commit is contained in:
@@ -179,26 +179,19 @@ myStartupHook = do
|
||||
spawn "killall conky" -- kill current conky on each restart
|
||||
spawn "killall trayer" -- kill current trayer on each restart
|
||||
spawn "killall polybar" -- 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 and trayer processes earlier in the autostart, so now we sleep for 2 seconds and then restart conky and trayer.
|
||||
#+BEGIN_SRC haskell
|
||||
-- We killed any running conky and trayer processes earlier in the autostart,
|
||||
-- so now we sleep for 2 seconds and then restart conky and trayer.
|
||||
spawn ("sleep 2 && conky -c $HOME/.config/conky/xmonad/" ++ colorScheme ++ "-01.conkyrc")
|
||||
spawn ("sleep 2 && trayer --edge top --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 " ++ colorTrayer ++ " --height 22")
|
||||
#+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
|
||||
@@ -572,6 +565,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 )
|
||||
@@ -661,7 +655,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-<Return>", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"])
|
||||
--, ("M-S-<Return>", addName "Run prompt" $ sequence_ [spawn (mySoundPlayer ++ dmenuSound), spawn "~/.local/bin/dm-run"])
|
||||
, ("M-S-<Return>", 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")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user