feat(rofi): switch i3 workspaces
This commit is contained in:
parent
49b45a2356
commit
d3eb1b29c2
@ -49,7 +49,8 @@ bindsym $mod+Return exec alacritty --working-directory ~
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -theme gruvbox-dark
|
||||
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
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
|
||||
1
home/user/.config/rofi/config.rasi
Normal file
1
home/user/.config/rofi/config.rasi
Normal file
@ -0,0 +1 @@
|
||||
@theme "Arc-Dark"
|
||||
15
home/user/.local/bin/i3_switch_workspace.sh
Executable file
15
home/user/.local/bin/i3_switch_workspace.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
function gen_workspaces()
|
||||
{
|
||||
i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g'
|
||||
}
|
||||
|
||||
|
||||
WORKSPACE=$(gen_workspaces | rofi -dmenu -i -p "Select workspace")
|
||||
|
||||
if [ -n "${WORKSPACE}" ]
|
||||
|
||||
then
|
||||
i3-msg workspace "${WORKSPACE}"
|
||||
fi
|
||||
2
install
2
install
@ -20,7 +20,7 @@ declare -A TARGETS=(
|
||||
["git"]=".config/git"
|
||||
["ranger"]=".config/ranger"
|
||||
["gpg"]=""
|
||||
["i3"]=".xinitrc .xprofile .Xresources .config/i3 .config/i3status .local/bin/i3status_wrapper .config/picom .local/bin/slm .local/bin/wifi .local/bin/bluetooth"
|
||||
["i3"]=".xinitrc .xprofile .Xresources .config/i3 .config/i3status .local/bin/i3status_wrapper .config/rofi .config/picom .local/bin/slm .local/bin/wifi .local/bin/bluetooth .local/bin/i3_switch_workspace.sh"
|
||||
["bat"]=".config/bat"
|
||||
["font"]=""
|
||||
["termux"]=""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user