mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-24 05:02:29 +00:00
Menu to change (dis)connect to networks
* Only for NetworkManager
This commit is contained in:
parent
2d20791d0d
commit
0a59f73c8f
@ -59,6 +59,8 @@ bindsym $mod+q kill
|
||||
bindsym $mod+space exec --no-startup-id runmenu
|
||||
bindsym $mod+o exec --no-startup-id filemenu $HOME
|
||||
|
||||
#
|
||||
|
||||
# Arandr magic
|
||||
bindsym Mod1+F5 exec --no-startup-id monitors single
|
||||
bindsym Mod1+F6 exec --no-startup-id monitors single HDMI
|
||||
@ -168,6 +170,7 @@ bindsym $mod+Shift+E exec --no-startup-id i3-exit.sh logout
|
||||
bindsym $mod+Mod1+s exec --no-startup-id i3-exit.sh suspend
|
||||
|
||||
bindsym $mod+Shift+p exec passmenu
|
||||
bindsym $mod+Shift+n exec netmenu
|
||||
|
||||
# move with finer grain
|
||||
mode "move" {
|
||||
|
12
scripts/.bin/netmenu
Executable file
12
scripts/.bin/netmenu
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if command -v rofi >/dev/null 2>&1;
|
||||
then
|
||||
launcher="rofi -dmenu -i -mesg '""$input""'"
|
||||
else
|
||||
launcher="dmenu -fn "-*-cure-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#5f5f5f" -sb "#191
|
||||
fi
|
||||
|
||||
# find "$input" -maxdepth 1 ! -path "$input" -print | sh -c "$launcher" | xargs $0
|
||||
conname=$(nmcli -t -f NAME con | sh -c "$launcher")
|
||||
nmcli conn up $conname || nmcli conn down $conname
|
Loading…
Reference in New Issue
Block a user