Change startup browser, rofi width, add rofi color, enable zsh vi mode

This commit is contained in:
Riyyi
2019-05-02 17:31:50 +02:00
parent 47f6733549
commit 440b53bd41
5 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -52,12 +52,12 @@ start() {
# Directory of this script
DIR="$(dirname "$0")"
# Setup workspaces with xprop events
# Setup workspaces block with xprop events
xprop -root -spy _NET_CURRENT_DESKTOP | while read -r line; do
"$DIR"/workspaces.sh
done > "$PIPE" &
# Setup window title with xprop events
# Setup window title block with xprop events
xprop -root -spy _NET_ACTIVE_WINDOW | while read -r line; do
title "$line"
done > "$PIPE" &
+1 -1
View File
@@ -6,7 +6,7 @@ calc() { awk "BEGIN{print $*}"; }
# Calculate size
MON_WIDTH=$(xdotool getdisplaygeometry | awk '{print $1}')
MON_HEIGHT=$(xdotool getdisplaygeometry | awk '{print $2}')
NEW_WIDTH=$(calc "$MON_WIDTH * 0.25")
NEW_WIDTH=$(calc "$MON_WIDTH * 0.2")
NEW_HEIGHT=$(calc "$NEW_WIDTH / 16 * 9")
# Calculate position