Skip to content

Commit

Permalink
Wezterm: cannot resist lua, can we..
Browse files Browse the repository at this point in the history
  • Loading branch information
Icy-Thought committed Mar 10, 2024
1 parent 27d1520 commit d2e2f5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions config/xmonad/xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ main =

myConfig =
def { modMask = mod4Mask
, terminal = "kitty"
, terminal = "wezterm"
, manageHook = namedScratchpadManageHook =<< liftX myScratchpads
, layoutHook = myLayoutHook
, borderWidth = 2
Expand Down Expand Up @@ -735,18 +735,14 @@ myScratchpads :: X [NamedScratchpad]
myScratchpads = do
-- | A system monitor to track the madness in our conf
btopLaunch <- getInput $
inTerm >-> setXClass sysMonID
inTerm >-> toInput "start"
>-> setXClass sysMonID
>-> execute "btop"

emacsScratch <- getInput $
inEditor >-> setFrameName emacsScratchID
>-> eval (elispFun "dashboard-refresh-buffer")

-- | E-Mail session managed by Emacs, because why not? :P
mailSession <- getInput $
inEditor >-> setFrameName mailSessionID
>-> eval (elispFun "notmuch")

-- | What matrix-client should've been..
matrixClient <- getInput $
inEditor >-> setFrameName matrixSessionID
Expand All @@ -760,7 +756,6 @@ myScratchpads = do
pure [ NS "Discord" "discordcanary" (className =? "discord") floatCenter
, NS "EasyEffects" "easyeffects" (title =? "Easy Effects") floatCenter
, NS "Emacs" emacsScratch (title ^? emacsScratchID) floatCenter
, NS "Mail" mailSession (title =? mailSessionID) floatCenter
, NS "Matrix" matrixClient (title =? matrixSessionID) floatCenter
, NS "Spotify" "spotify" (className =? "Spotify") floatCenter
, NS "System Monitor" btopLaunch (appName =? sysMonID) floatCenter
Expand All @@ -769,7 +764,6 @@ myScratchpads = do
]
where
emacsScratchID = "Emacs-NSP|"
mailSessionID = "Emacs-NSP: NotMuch"
matrixSessionID = "Emacs-NSP: Ement"
telegramSessionID = "Emacs-NSP: Telega"
sysMonID = "system-monitor"
Expand Down Expand Up @@ -929,7 +923,6 @@ addKeys conf@XConfig { modMask = modm } =
, ((modalt, xK_k), doScratchpad "Matrix")
, ((modalt, xK_e), doScratchpad "Emacs")
, ((modalt, xK_l), doScratchpad "Telegram")
, ((modalt, xK_m), doScratchpad "mailSession")
, ((modalt, xK_s), doScratchpad "Spotify")
, ((modalt, xK_t), doScratchpad "Transmission")
, ((modalt, xK_v), doScratchpad "EasyEffects")
Expand Down
4 changes: 2 additions & 2 deletions hosts/thinkpad-e595/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
desktop = {
xmonad.enable = true;
terminal = {
default = "kitty";
kitty.enable = true;
default = "wezterm";
wezterm.enable = true;
};
editors = {
default = "emacsclient";
Expand Down

0 comments on commit d2e2f5a

Please sign in to comment.