diff options
| -rwxr-xr-x | bin/kbd_config | 2 | ||||
| -rwxr-xr-x | herbstluftwm/autostart | 5 | ||||
| -rwxr-xr-x | herbstluftwm/bar | 6 | ||||
| -rwxr-xr-x | herbstluftwm/info | 40 |
4 files changed, 19 insertions, 34 deletions
diff --git a/bin/kbd_config b/bin/kbd_config index 6046181..4a3c8ef 100755 --- a/bin/kbd_config +++ b/bin/kbd_config @@ -6,6 +6,6 @@ XAUTHORITY=$HOME/.Xauthority export DISPLAY XAUTHORITY HOME xset r rate 250 40 -setxkbmap -model abnt2 -layout br -variant abnt2 -option compose:ralt -option ctrl:swapcaps -option altwin:menu_win +setxkbmap -model abnt2 -layout br -variant abnt2 -option compose:ralt -option ctrl:nocaps -option altwin:menu_win xmodmap .Xmodmap pgrep -x xcape || xcape -e 'Control_L=Escape;Hyper_L=Tab;Hyper_R=ccedilla' diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index a1247c1..0a2d4ae 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -69,7 +69,6 @@ hc rule class=Chromium tag=www hc rule class=Steam tag=game floating=on hc rule class=Nsxiv floating=on hc rule class=mpv tag=media -hc rule class=Zathura floating=on hc rule class=Iwgtk floating=on hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on @@ -107,6 +106,8 @@ clear_notifs="dunstctl close-all" clear_clip="$HOME/.local/bin/clearclip" +change_wall="$HOME/.local/bin/wallpaper" + run="$HOME/.local/bin/term_app" file="$TERMINAL -e lf" @@ -225,6 +226,8 @@ hc keybind Mod4+Mod1+space spawn $clear_notifs hc keybind $Mod+c spawn $clear_clip +hc keybind Mod4+w spawn $change_wall + hc keybind Mod4+Shift+1 spawn $run hc keybind Mod4+f spawn $file diff --git a/herbstluftwm/bar b/herbstluftwm/bar index 80e3a4f..d2d1cc1 100755 --- a/herbstluftwm/bar +++ b/herbstluftwm/bar @@ -8,12 +8,14 @@ info="$HOME/.config/herbstluftwm/info" [ -f "$info" ] || echo "$info not found" font_std="Iosevka:style=Regular:size=14" -font_icon="Symbols Nerd Font:style=1000-em:size=15" +font_icon="Symbols Nerd Font:style=1000-em:size=14" bar_height=40 herbstclient pad 0 "$(expr $bar_height + $(expr $bar_height / 2))" -. "$info" | lemonbar -f "$font_std" \ +. "$info" | lemonbar -o 0 \ + -f "$font_std" \ + -o -4 \ -f "$font_icon" \ -u 0 \ -gx"$bar_height" \ diff --git a/herbstluftwm/info b/herbstluftwm/info index c6895de..b835c9f 100755 --- a/herbstluftwm/info +++ b/herbstluftwm/info @@ -9,35 +9,15 @@ show_date() { } show_hlwm() { - tags=( "$(herbstclient tag_status)" ) - - for tag in "${tags[@]}"; do - case ${tag:0:1} in - '#') - echo -n "%{B$red}" - ;; - '+') - echo -n "%{B$blue}" - ;; - ':') - echo -n "%{U$red}" - ;; - '!') - echo -n "%{B$pink}" - ;; - *) - echo -n "%{B$black}%{F$white}" - ;; - esac - done - - echo "$tags" + tags="$(herbstclient tag_status | sed -e 's;#; %{B#e60053};')" + + echo -n "$tags%{B-}" } show_title() { - title="$(xdotool getwindowfocus getwindowname)" + title="$(xdotool getwindowfocus getwindowname | sed -e 's;herbstluftwm;;')" - printf "%.10s" "$title" + printf "%.30s" "$title" } show_cpu() { @@ -51,17 +31,17 @@ show_batt() { batt="$(cat /sys/class/power_supply/BAT0/capacity)" state="$(cat /sys/class/power_supply/BAT0/status)" - icon="" + icon="" [ "$batt" -le 7 ] && icon="" - [ "$batt" -le 10 ] && icon="" + [ "$batt" -le 10 ] && icon="" - [ "$batt" -le 20 ] && [ "$batt" -ge 10 ] && icon="" + [ "$batt" -le 20 ] && [ "$batt" -ge 10 ] && icon="" - [ "$batt" -le 50 ] && icon="" + [ "$batt" -le 50 ] && icon="" - [ "$batt" -ge 90 ] && icon="" + [ "$batt" -ge 90 ] && icon="" [ "$state" = "Charging" ] && icon="" |
