feat: add discord scratchpads
This commit is contained in:
@@ -252,6 +252,9 @@ function M.setup(ctx)
|
||||
bind(mod_alt .. " + C", function()
|
||||
toggle_scratchpad("codex")
|
||||
end, desc("Toggle Codex scratchpad"))
|
||||
bind(mod_alt .. " + D", function()
|
||||
toggle_scratchpad("discord")
|
||||
end, desc("Toggle Discord scratchpad"))
|
||||
bind(mod_alt .. " + E", function()
|
||||
toggle_scratchpad("element")
|
||||
end, desc("Toggle Element scratchpad"))
|
||||
|
||||
@@ -21,6 +21,10 @@ function M.setup(ctx)
|
||||
command = "alacritty --class htop-scratch --title htop -e htop",
|
||||
class = "htop-scratch",
|
||||
},
|
||||
discord = {
|
||||
command = "discord",
|
||||
class = "discord",
|
||||
},
|
||||
volume = {
|
||||
command = "pavucontrol",
|
||||
class = "org.pulseaudio.pavucontrol",
|
||||
|
||||
@@ -237,6 +237,7 @@ chromeSelectorBase = isChromeClass <$> className
|
||||
|
||||
chromeSelector = chromeSelectorBase
|
||||
codexSelector = className =? "codex-desktop"
|
||||
discordSelector = className =? "Discord" <||> className =? "discord"
|
||||
elementSelector = className =? "Element"
|
||||
emacsSelector = className =? "Emacs"
|
||||
slackSelector = className =? "Slack"
|
||||
@@ -252,6 +253,7 @@ virtualClasses =
|
||||
-- Commands
|
||||
|
||||
codexCommand = "codex_desktop_scratchpad"
|
||||
discordCommand = "discord"
|
||||
elementCommand = "element-desktop"
|
||||
emacsCommand = "emacsclient -c"
|
||||
htopCommand = "ghostty --title=htop -e htop"
|
||||
@@ -802,6 +804,7 @@ nearFullFloat = customFloating $ W.RationalRect l t w h
|
||||
|
||||
scratchpads =
|
||||
[ NS "codex" codexCommand codexSelector nearFullFloat
|
||||
, NS "discord" discordCommand discordSelector nearFullFloat
|
||||
, NS "element" elementCommand elementSelector nearFullFloat
|
||||
, NS "htop" htopCommand (title =? "htop") nearFullFloat
|
||||
, NS "slack" slackCommand slackSelector nearFullFloat
|
||||
@@ -1008,6 +1011,7 @@ addKeys conf@XConfig { modMask = modm } =
|
||||
|
||||
-- ScratchPads
|
||||
[ ((modalt, xK_c), doScratchpad "codex")
|
||||
, ((modalt, xK_d), doScratchpad "discord")
|
||||
, ((modalt, xK_e), doScratchpad "element")
|
||||
, ((modalt, xK_h), doScratchpad "htop")
|
||||
, ((modalt, xK_k), doScratchpad "slack")
|
||||
|
||||
Reference in New Issue
Block a user