mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 16:26:10 +01:00
Deprecate WindowSelector in favor of native rofi window submenu
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Script copied from AUR package dswitcher, and modified for theming and placement and removed unnecessary functions.
|
|
||||||
if ! [ -f "$HOME/.dmenurc" ]; then
|
|
||||||
cp /usr/share/dmenu/dmenurc $HOME/.dmenurc
|
|
||||||
fi
|
|
||||||
. $HOME/.dmenurc
|
|
||||||
|
|
||||||
width=$(wattr w $(lsw -r))
|
|
||||||
height=$(wattr h $(lsw -r))
|
|
||||||
bar_width=$(( $width / 3 ))
|
|
||||||
left_shift=$(( ($width - $bar_width) / 2 ))
|
|
||||||
top_shift=$PANEL_HEIGHT
|
|
||||||
|
|
||||||
num=$(wmctrl -l | sed 's/ / /' | cut -d " " -f 4- | nl -w 3 -n rn | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' | dmenu -i -l 10 -x $left_shift -y $top_shift -w $bar_width -fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB | cut -d '-' -f -1)
|
|
||||||
[[ -z "$num" ]] && exit
|
|
||||||
wmctrl -l | sed -n "$num p" | cut -c -10 | xargs wmctrl -i -a
|
|
||||||
@@ -135,7 +135,7 @@ alt + {_,shift + }Tab
|
|||||||
|
|
||||||
# Go to specific window
|
# Go to specific window
|
||||||
super + Tab
|
super + Tab
|
||||||
WindowSelector
|
rofi -modi window -show window
|
||||||
|
|
||||||
#Focus windows by direction, works with multihead
|
#Focus windows by direction, works with multihead
|
||||||
super + {a,s,w,d}
|
super + {a,s,w,d}
|
||||||
|
|||||||
Reference in New Issue
Block a user