feat(rofi): switch screen layouts

This commit is contained in:
TheK4n 2023-11-20 10:34:07 +03:00
parent d3eb1b29c2
commit 6fb5909b35
4 changed files with 7 additions and 2 deletions

View File

@ -51,6 +51,7 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons
bindsym $mod+i exec --no-startup-id ~/.local/bin/i3_switch_workspace.sh
bindsym $mod+n exec --no-startup-id ~/.local/bin/slm_rofi.sh
# change focus
bindsym $mod+h focus left

View File

@ -9,7 +9,6 @@ function gen_workspaces()
WORKSPACE=$(gen_workspaces | rofi -dmenu -i -p "Select workspace")
if [ -n "${WORKSPACE}" ]
then
i3-msg workspace "${WORKSPACE}"
fi

View File

@ -27,7 +27,7 @@ die_if_invalid_path() {
cmd_list() {
ls "$LAYOUTS_DIR"
find "$LAYOUTS_DIR" -type f -exec basename -s .sh {} \;
}
cmd_edit() {

View File

@ -0,0 +1,5 @@
CHOOSED_SCREEN_LAYOUT="$(slm ls | rofi -dmenu -i -p "Select screen layout")"
slm load "$CHOOSED_SCREEN_LAYOUT"