i3: Remove old dmenu scripts
This commit is contained in:
parent
a54a5a83f9
commit
9f582e03d4
@ -28,8 +28,6 @@
|
|||||||
bindsym --release Control+Shift+Print exec flameshot gui
|
bindsym --release Control+Shift+Print exec flameshot gui
|
||||||
bindsym --release Control+Print exec flameshot screen -c
|
bindsym --release Control+Print exec flameshot screen -c
|
||||||
|
|
||||||
bindsym $mod+b exec ~/.dotfiles/i3/scripts/dmenu_bt.sh
|
|
||||||
bindsym $mod+Shift+m exec ~/.dotfiles/i3/scripts/dmenu_layouts.sh
|
|
||||||
|
|
||||||
# {{{ VARIABLES }}}
|
# {{{ VARIABLES }}}
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
bindsym --release Control+Shift+Print exec flameshot gui
|
bindsym --release Control+Shift+Print exec flameshot gui
|
||||||
bindsym --release Control+Print exec flameshot screen -c
|
bindsym --release Control+Print exec flameshot screen -c
|
||||||
|
|
||||||
bindsym $mod+b exec ~/.dotfiles/i3/scripts/dmenu_bt.sh
|
|
||||||
|
|
||||||
# {{{ VARIABLES }}}
|
# {{{ VARIABLES }}}
|
||||||
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
@ -40,12 +38,9 @@
|
|||||||
set $gap_inner 10
|
set $gap_inner 10
|
||||||
|
|
||||||
set $ws1 "1"
|
set $ws1 "1"
|
||||||
# Terminal
|
|
||||||
set $ws2 "2"
|
set $ws2 "2"
|
||||||
# Work
|
|
||||||
set $ws3 "3"
|
set $ws3 "3"
|
||||||
set $ws4 "4"
|
set $ws4 "4"
|
||||||
# Mail
|
|
||||||
set $ws5 "5"
|
set $ws5 "5"
|
||||||
set $ws6 "6"
|
set $ws6 "6"
|
||||||
set $ws7 "7"
|
set $ws7 "7"
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [[ $# != 1 ]] || [[ ! -e "$1" ]]; then
|
|
||||||
echo "usage: $0 folder"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f "$1" ]]; then
|
|
||||||
xdg-open "$1" &
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
DIRS=$(find -L "$1" -mindepth 1 -maxdepth 1 -type d | rev | cut -d "/" -f1 | rev)
|
|
||||||
FILES=$(find -L "$1" -mindepth 1 -maxdepth 1 -type f| rev | cut -d "/" -f1 | rev)
|
|
||||||
|
|
||||||
echo -e "$DIRS\n$FILES" | dmenu | xargs -I"{}" $0 "$1/{}"
|
|
@ -1,38 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
declare -a menu
|
|
||||||
declare -A commands
|
|
||||||
export POWERED=0
|
|
||||||
|
|
||||||
if bluetoothctl show | grep "Powered: yes"; then
|
|
||||||
menu+=("power off")
|
|
||||||
commands["power off"]="bluetoothctl power off"
|
|
||||||
# menu+=("Scan for new devices")
|
|
||||||
# commands["Scan for new devices"]="bluetoothctl scan on"
|
|
||||||
POWERED=1
|
|
||||||
else
|
|
||||||
menu+=("power on")
|
|
||||||
commands["power on"]="bluetoothctl power on"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $POWERED -eq 1 ]; then
|
|
||||||
IFS=$'\n'
|
|
||||||
for i in $(bluetoothctl paired-devices); do
|
|
||||||
# echo $i
|
|
||||||
if bluetoothctl info $(echo "$i" | cut -d" " -f2) | grep "Connected: yes"; then
|
|
||||||
TEXT="Disconnect from $(echo "$i" | cut -d" " -f3)"
|
|
||||||
CMD="bluetoothctl disconnect $(echo "$i" | cut -d" " -f2)"
|
|
||||||
else
|
|
||||||
TEXT="Connect to $(echo "$i" | cut -d" " -f3)"
|
|
||||||
CMD="bluetoothctl connect $(echo "$i" | cut -d" " -f2)"
|
|
||||||
fi
|
|
||||||
menu+=("$TEXT")
|
|
||||||
commands["$TEXT"]="$CMD"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
RETVAL=$(for index in "${!menu[@]}"; do echo "${menu[$index]}"; done | dmenu -l 5 -p "Bluetooth")
|
|
||||||
if [ ! -z "$RETVAL" ]; then
|
|
||||||
RETCMD=${commands["$RETVAL"]}
|
|
||||||
echo $RETCMD | bash
|
|
||||||
fi
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
declare -a menu
|
|
||||||
declare -A commands
|
|
||||||
|
|
||||||
RETVAL=$(find ~/.dotfiles/i3/layouts -type f -exec basename {} \; | dmenu -l 5 -p "Layout")
|
|
||||||
if [ ! -z "$RETVAL" ]; then
|
|
||||||
# RETCMD=${commands["$RETVAL"]}
|
|
||||||
i3-msg append_layout "~/.dotfiles/i3/layouts/$RETVAL"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user