Saturday, July 20, 2024

devilspie2

how to set window rules so
firefox browser opens and jumps to workspace 2
thunar file manager opens and jump to workspace 3

sudo apt install devilspie2
vim ~/.config/devilspie2/window_rules.lua

if (string.match(get_application_name(), "Firefox")) then
    set_window_workspace(2)
    change_workspace(2)
end

if (string.match(get_application_name(), "Thunar")) then
    set_window_workspace(3)
    change_workspace(3)
end

if (string.match(get_application_name(), "mpv")) then
    undecorate_window();
end

if (get_window_name() == "xfce4-terminal") then
    set_window_geometry(319, 228, 1024, 626);
end

controll centre > session > user desktop session > startup

#start devilspie2
devilspie2 -d &

on antix w icewm

  • Alt + 1 - 4 move to desktop 1 - 4
  • Ctrl + Alt + B browser
  • Ctrl + Alt + F file manager
  • Cmd + left arrow/right arrow move to half of screen
  • Ctrl + Alt + numpad 4/6 move to left/right side of screen
  • Ctrl + Alt + 9 fullscreen
  • Ctrl + Alt + 0 close window

terminal

  • Ctrl + Alt + T open terminal
  • Ctrl + Shift + Q close terminal
  • Ctrl + Shift + N new terminal window
  • Ctrl + Shift + T new terminal tab
  • Ctrl + Shift + W close terminal tab
  • Ctrl + pgup/pgdn next/prev terminal tab

No comments:

Post a Comment