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