diff --git a/dotfiles/config/hypr/hyprland/binds.lua b/dotfiles/config/hypr/hyprland/binds.lua index 7255e852..b076b011 100644 --- a/dotfiles/config/hypr/hyprland/binds.lua +++ b/dotfiles/config/hypr/hyprland/binds.lua @@ -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")) diff --git a/dotfiles/config/hypr/hyprland/scratchpads.lua b/dotfiles/config/hypr/hyprland/scratchpads.lua index a3bd11da..2cea90a8 100644 --- a/dotfiles/config/hypr/hyprland/scratchpads.lua +++ b/dotfiles/config/hypr/hyprland/scratchpads.lua @@ -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", diff --git a/dotfiles/config/xmonad/xmonad.hs b/dotfiles/config/xmonad/xmonad.hs index 4670d04a..29c0d562 100644 --- a/dotfiles/config/xmonad/xmonad.hs +++ b/dotfiles/config/xmonad/xmonad.hs @@ -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")