i3: disable rofi to follow mouse

This commit is contained in:
thek4n 2024-01-31 08:39:53 +03:00
parent 49c3aad776
commit 27d4f0a45a
5 changed files with 7 additions and 8 deletions

View File

@ -65,7 +65,7 @@ bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $mod+d exec --no-startup-id rofi -show drun -m -4
bindsym $mod+i exec --no-startup-id i3_switch_workspace.sh
bindsym $mod+o exec --no-startup-id slm_rofi.sh
bindsym $mod+p exec --no-startup-id power_rofi.sh

View File

@ -33,7 +33,7 @@ local function setup_cmp()
['<S-Tab>'] = cmp.mapping.select_prev_item(),
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-e>'] = cmp.mapping.close(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = false,

View File

@ -5,9 +5,9 @@ gen_workspaces()
i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g'
}
choosed_workspace=$(gen_workspaces | rofi -dmenu -i -p "Select workspace")
choosed_workspace=$(gen_workspaces | rofi -dmenu -m -4 -i -p "Select workspace")
if [ -n "${choosed_workspace}" ]
then
i3-msg workspace "${choosed_workspace}"
fi
fi

View File

@ -6,6 +6,5 @@ reboot
shutdown -h now
systemctl suspend
i3lock -enf -c 1e1e1e
convert canvas:none PNG:- | feh -YF -" | rofi -dmenu -i -p "Power")"
convert canvas:none PNG:- | feh -YF -" | rofi -dmenu -m -4 -i -p "Power")"

View File

@ -1,4 +1,4 @@
#!/bin/bash
choosed_screen_layout="$(slm ls | rofi -dmenu -i -p "Select screen layout")"
slm load "$choosed_screen_layout"
choosed_screen_layout="$(slm ls | rofi -dmenu -m -4 -i -p "Select screen layout")"
slm load "$choosed_screen_layout"