Compare commits
2 commits
0e2a329f9c
...
4069fb8ed8
Author | SHA1 | Date | |
---|---|---|---|
4069fb8ed8 | |||
b67066cf83 |
2 changed files with 17 additions and 32 deletions
|
@ -45,7 +45,8 @@ set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
#THIS IS ALSO GOD MOD FOR TMUX
|
#THIS IS ALSO GOD MOD FOR TMUX
|
||||||
#THIS HAS TO BE LAST IN THE LIST OF PLUGINS
|
#THIS HAS TO BE LAST IN THE LIST OF PLUGINS
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
|
set -g @continuum-save-interval '10'
|
||||||
set -g @continuum-boot 'on'
|
set -g @continuum-boot 'on'
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
|
@ -19,7 +19,6 @@ import XMonad.Util.EZConfig (additionalKeysP,removeKeysP)
|
||||||
import XMonad.Util.Loggers (logLayoutOnScreen, logTitleOnScreen, shortenL, wrapL, xmobarColorL)
|
import XMonad.Util.Loggers (logLayoutOnScreen, logTitleOnScreen, shortenL, wrapL, xmobarColorL)
|
||||||
import XMonad.Util.Run
|
import XMonad.Util.Run
|
||||||
import XMonad.Util.SpawnOnce
|
import XMonad.Util.SpawnOnce
|
||||||
import XMonad.Util.NamedScratchpad as NS
|
|
||||||
|
|
||||||
--Hooks
|
--Hooks
|
||||||
import XMonad.Hooks.DynamicLog
|
import XMonad.Hooks.DynamicLog
|
||||||
|
@ -59,6 +58,7 @@ import Colors.Teal
|
||||||
@code haskell
|
@code haskell
|
||||||
|
|
||||||
myTerminal = "alacritty"
|
myTerminal = "alacritty"
|
||||||
|
myTerminalTmux = myTerminal ++ " -e tmux a"
|
||||||
myTextEditor = "nvim"
|
myTextEditor = "nvim"
|
||||||
myWebBrowser = "firefox"
|
myWebBrowser = "firefox"
|
||||||
myModMask = mod4Mask
|
myModMask = mod4Mask
|
||||||
|
@ -81,27 +81,12 @@ myWorkspaces = ["main","web","text","code","social","monitoring"]
|
||||||
myWorkspaceIndices = zip myWorkspaces [1..]
|
myWorkspaceIndices = zip myWorkspaces [1..]
|
||||||
|
|
||||||
@end
|
@end
|
||||||
* ScratchPads
|
|
||||||
@code haskell
|
|
||||||
myScratchPads :: [NamedScratchpad]
|
|
||||||
myScratchPads = [NS "terminal" spawnTerm findTerm manageTerm]
|
|
||||||
where
|
|
||||||
spawnTerm = myTerminal ++ " -t scratchpad"
|
|
||||||
findTerm = title =? "scratchpad"
|
|
||||||
manageTerm = customFloating $ W.RationalRect l t w h
|
|
||||||
where
|
|
||||||
h = 0.6
|
|
||||||
w = 0.6
|
|
||||||
t = 0.7 -h
|
|
||||||
l = 0.8 -w
|
|
||||||
|
|
||||||
@end
|
|
||||||
* Keybinds
|
* Keybinds
|
||||||
@code haskell
|
@code haskell
|
||||||
myKeys :: [(String, X ())]
|
myKeys :: [(String, X ())]
|
||||||
myKeys =
|
myKeys =
|
||||||
[ ("M-x" ,spawn myTerminal )
|
[ ("M-x" ,spawn myTerminalTmux )
|
||||||
, ("M-S-x", namedScratchpadAction myScratchPads "terminal")
|
|
||||||
, ("M-p", spawn "rofi -show drun -show-icons")
|
, ("M-p", spawn "rofi -show drun -show-icons")
|
||||||
, ("M-S-p", spawn "rofi -show p -modi p:rofi-power-menu")
|
, ("M-S-p", spawn "rofi -show p -modi p:rofi-power-menu")
|
||||||
, ("M-s", spawn "selected=$(ls ~/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
, ("M-s", spawn "selected=$(ls ~/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected")
|
||||||
|
@ -169,26 +154,25 @@ myManageHook = composeAll
|
||||||
, className =? "Xmessage" --> doFloat
|
, className =? "Xmessage" --> doFloat
|
||||||
, title =? "Steam - News" --> doFloat
|
, title =? "Steam - News" --> doFloat
|
||||||
, title =? "Friends List" --> doFloat
|
, title =? "Friends List" --> doFloat
|
||||||
, title =? "scratchpad" --> doFloat
|
|
||||||
, isFullscreen --> doFullFloat]
|
, isFullscreen --> doFullFloat]
|
||||||
|
|
||||||
|
|
||||||
myEventHook = ewmhDesktopsEventHook
|
myEventHook = ewmhDesktopsEventHook
|
||||||
|
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
spawnOnce "pasystray"
|
spawnOnce "pasystray"
|
||||||
spawnOnce "nitrogen --restore &"
|
spawnOnce "nitrogen --restore &"
|
||||||
spawnOnce "playerctld"
|
spawnOnce "playerctld"
|
||||||
spawnOnce "picom &"
|
spawnOnce "picom &"
|
||||||
spawnOnce "optimus-manager-qt"
|
spawnOnce "optimus-manager-qt"
|
||||||
setWMName "LG3D"
|
setWMName "LG3D"
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
spawnOnce "mailspring"
|
spawnOnce "mailspring"
|
||||||
spawnOnce("xsetroot -cursor_name left_ptr")
|
spawnOnce("xsetroot -cursor_name left_ptr")
|
||||||
spawn ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --widthtype request --padding 7 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 26 --distance 5 &")
|
spawn ("killall trayer ;sleep 1 && trayer --monitor 0 --edge top --align right --widthtype request --padding 7 --iconspacing 12 --SetDockType true --SetPartialStrut true --expand true --transparent true --alpha 0 --tint 0x2B2E37 --height 26 --distance 5 &")
|
||||||
spawnOn "web" myWebBrowser
|
spawnOn "web" myWebBrowser
|
||||||
spawnOn "main" myTerminal
|
spawnOn "main" myTerminalTmux
|
||||||
spawnOn "monitoring" ("alacritty -e btop")
|
spawnOn "monitoring" ("alacritty -e btop")
|
||||||
@end
|
@end
|
||||||
* XMobar Config
|
* XMobar Config
|
||||||
@code haskell
|
@code haskell
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue