diff --git a/i3/conf/client/x380yoga/header b/i3/conf/client/x380yoga/header index b07284d..72d54bb 100644 --- a/i3/conf/client/x380yoga/header +++ b/i3/conf/client/x380yoga/header @@ -28,8 +28,6 @@ bindsym --release Control+Shift+Print exec flameshot gui 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 }}} diff --git a/i3/conf/client/zahnrad/header b/i3/conf/client/zahnrad/header index a622da5..85d9a8f 100644 --- a/i3/conf/client/zahnrad/header +++ b/i3/conf/client/zahnrad/header @@ -28,8 +28,6 @@ bindsym --release Control+Shift+Print exec flameshot gui bindsym --release Control+Print exec flameshot screen -c - bindsym $mod+b exec ~/.dotfiles/i3/scripts/dmenu_bt.sh - # {{{ VARIABLES }}} set $mod Mod4 @@ -40,12 +38,9 @@ set $gap_inner 10 set $ws1 "1" - # Terminal set $ws2 "2" - # Work set $ws3 "3" set $ws4 "4" - # Mail set $ws5 "5" set $ws6 "6" set $ws7 "7" diff --git a/i3/scripts/dir_dmenu.sh b/i3/scripts/dir_dmenu.sh deleted file mode 100755 index 028b49e..0000000 --- a/i3/scripts/dir_dmenu.sh +++ /dev/null @@ -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/{}" diff --git a/i3/scripts/dmenu_bt.sh b/i3/scripts/dmenu_bt.sh deleted file mode 100755 index 20db598..0000000 --- a/i3/scripts/dmenu_bt.sh +++ /dev/null @@ -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 diff --git a/i3/scripts/dmenu_layouts.sh b/i3/scripts/dmenu_layouts.sh deleted file mode 100755 index 058f9a5..0000000 --- a/i3/scripts/dmenu_layouts.sh +++ /dev/null @@ -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