Skip to content

Instantly share code, notes, and snippets.

@linguisticmind
Last active June 29, 2025 09:08
Show Gist options
  • Save linguisticmind/b8a9d268a29b7f1a4b0037ecd0a7fe74 to your computer and use it in GitHub Desktop.
Save linguisticmind/b8a9d268a29b7f1a4b0037ecd0a7fe74 to your computer and use it in GitHub Desktop.
awesome_wm_move_systray.lua | "[Setting up Debian #16] Awesome WM: how to move the system tray to a different screen" (https://youtu.be/FfYWVOFUJJU) | Mindful Technology
-- Put this code in the 'Keybindings' section,
-- under 'Layout manipulation' --
-- e.g. after the 'focus the previous screen' shortcut
-- Video tutorial: https://youtu.be/FfYWVOFUJJU
awful.key({modkey, "Control", "Mod1"}, "j",
function()
awful.screen.focus_relative( 1)
wibox.widget.systray():set_screen(awful.screen.focused())
end, {description = "focus the next screen and move system tray", group = "screen"}),
awful.key({modkey, "Control", "Mod1"}, "k",
function()
awful.screen.focus_relative(-1)
wibox.widget.systray():set_screen(awful.screen.focused())
end, {description = "focus the previous screen and move system tray", group = "screen"}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment