migrate to rofi

This commit is contained in:
TheK4n 2023-11-19 22:28:49 +03:00
parent 22379f8a23
commit 49b45a2356
3 changed files with 4 additions and 5 deletions

View File

@ -49,8 +49,7 @@ bindsym $mod+Return exec alacritty --working-directory ~
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -theme gruvbox-dark
bindsym $mod+d exec --no-startup-id dmenu_run -i -b -p "Program to run: " -fn xft:FiraCode:size=$font_size
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
bssid="$(bluetoothctl devices | dmenu -b -p "Devices: " -l 20 | cut -d' ' -f2)" bssid="$(bluetoothctl devices | rofi -dmenu -p "Devices: " -l 20 | cut -d' ' -f2)"
exit_counter=0 exit_counter=0
until bluetoothctl connect "$bssid" until bluetoothctl connect "$bssid"

View File

@ -2,6 +2,6 @@
set -eo pipefail set -eo pipefail
bssid="$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | dmenu -b -p "WiFi: " -l 20 | cut -d' ' -f1)" bssid="$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | rofi -dmenu -p "WiFi: " -l 20 | cut -d' ' -f1)"
pass="$(echo "" | dmenu -b -p "Password: ")" pass="$(echo "" | rofi -dmenu -p "Password: ")"
nmcli device wifi connect "$bssid" "password" "$pass" nmcli device wifi connect "$bssid" "password" "$pass"