feat(rofi): switch screen layouts
This commit is contained in:
parent
d3eb1b29c2
commit
6fb5909b35
@ -51,6 +51,7 @@ bindsym $mod+Shift+q kill
|
|||||||
|
|
||||||
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons
|
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+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
|
# change focus
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+h focus left
|
||||||
|
|||||||
@ -9,7 +9,6 @@ function gen_workspaces()
|
|||||||
WORKSPACE=$(gen_workspaces | rofi -dmenu -i -p "Select workspace")
|
WORKSPACE=$(gen_workspaces | rofi -dmenu -i -p "Select workspace")
|
||||||
|
|
||||||
if [ -n "${WORKSPACE}" ]
|
if [ -n "${WORKSPACE}" ]
|
||||||
|
|
||||||
then
|
then
|
||||||
i3-msg workspace "${WORKSPACE}"
|
i3-msg workspace "${WORKSPACE}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -27,7 +27,7 @@ die_if_invalid_path() {
|
|||||||
|
|
||||||
|
|
||||||
cmd_list() {
|
cmd_list() {
|
||||||
ls "$LAYOUTS_DIR"
|
find "$LAYOUTS_DIR" -type f -exec basename -s .sh {} \;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_edit() {
|
cmd_edit() {
|
||||||
|
|||||||
5
home/user/.local/bin/slm_rofi.sh
Executable file
5
home/user/.local/bin/slm_rofi.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
CHOOSED_SCREEN_LAYOUT="$(slm ls | rofi -dmenu -i -p "Select screen layout")"
|
||||||
|
|
||||||
|
|
||||||
|
slm load "$CHOOSED_SCREEN_LAYOUT"
|
||||||
Loading…
x
Reference in New Issue
Block a user