Browse Source

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

master
Riyyi 6 years ago
parent
commit
440b53bd41
  1. 2
      .config/i3/config
  2. 8
      .config/rofi/config
  3. 4
      .config/zsh/.zshrc
  4. 4
      .scripts/panel/lemonbar.sh
  5. 2
      .scripts/wm/hover.sh

2
.config/i3/config

@ -15,7 +15,7 @@ floating_modifier $mod
# Application startup # Application startup
exec_always --no-startup-id "pkill lemonbar.sh; $HOME/.scripts/panel/lemonbar.sh &" exec_always --no-startup-id "pkill lemonbar.sh; $HOME/.scripts/panel/lemonbar.sh &"
exec_always --no-startup-id $HOME/.scripts/wm/wallpaper.sh & exec_always --no-startup-id $HOME/.scripts/wm/wallpaper.sh &
exec --no-startup-id qutebrowser exec --no-startup-id firefox
exec --no-startup-id urxvt exec --no-startup-id urxvt
exec --no-startup-id thunar --daemon exec --no-startup-id thunar --daemon
exec --no-startup-id thunar exec --no-startup-id thunar

8
.config/rofi/config

@ -2,13 +2,13 @@ rofi.color-enabled: true
! bg border separator ! bg border separator
rofi.color-window: #404552, #2e3137, #2e3137 rofi.color-window: #404552, #2e3137, #2e3137
! bg fg bgalt hlbg hlfg ! bg fg bgalt hlbg hlfg
rofi.color-normal: #404552, #d3dae3, #3f4350, #5294e2, #d3dae3 rofi.color-normal: #404552, #d3dae3, #3f4350, #5294e2, #d3dae3
!rofi.color-active: # rofi.color-urgent: #524040, #ffffff, #524040, #ffffff, #707880
!rofi.color-urgent: # !rofi.color-active: #
rofi.font: DejaVu Sans Mono 12 rofi.font: DejaVu Sans Mono 12
rofi.lines: 8 rofi.lines: 8
rofi.width: 30 rofi.width: 50
rofi.bw: 4 rofi.bw: 4
rofi.separator-style: solid rofi.separator-style: solid
rofi.hide-scrollbar: true rofi.hide-scrollbar: true

4
.config/zsh/.zshrc

@ -26,8 +26,12 @@ export LESSHISTFILE=-
## Terminal ## Terminal
# Disable Ctrl+S and Ctrl+Q
stty -ixon stty -ixon
# vi mode
bindkey -v
## ZSH ## ZSH
autoload -Uz promptinit colors vcs_info compinit history-search-end autoload -Uz promptinit colors vcs_info compinit history-search-end

4
.scripts/panel/lemonbar.sh

@ -52,12 +52,12 @@ start() {
# Directory of this script # Directory of this script
DIR="$(dirname "$0")" 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 xprop -root -spy _NET_CURRENT_DESKTOP | while read -r line; do
"$DIR"/workspaces.sh "$DIR"/workspaces.sh
done > "$PIPE" & 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 xprop -root -spy _NET_ACTIVE_WINDOW | while read -r line; do
title "$line" title "$line"
done > "$PIPE" & done > "$PIPE" &

2
.scripts/wm/hover.sh

@ -6,7 +6,7 @@ calc() { awk "BEGIN{print $*}"; }
# Calculate size # Calculate size
MON_WIDTH=$(xdotool getdisplaygeometry | awk '{print $1}') MON_WIDTH=$(xdotool getdisplaygeometry | awk '{print $1}')
MON_HEIGHT=$(xdotool getdisplaygeometry | awk '{print $2}') 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") NEW_HEIGHT=$(calc "$NEW_WIDTH / 16 * 9")
# Calculate position # Calculate position

Loading…
Cancel
Save