Improvements for laptop use
8c4094d16749d377f40659c3eab2344192fb758c
1 parent
ae0833b9
.conkyrc
deleted
+0 -12
| 1 | - | conky.config = { |
|
| 2 | - | out_to_x = false, |
|
| 3 | - | out_to_console = true, |
|
| 4 | - | update_interval = 1.0, |
|
| 5 | - | total_run_times = 0, |
|
| 6 | - | short_units = true, |
|
| 7 | - | pad_percents = 2, |
|
| 8 | - | use_spacer = "left" |
|
| 9 | - | } |
|
| 10 | - | conky.text = [[ |
|
| 11 | - | +@fn=1;${execi 60 conky-sync-status}+@fn=0; +@fg=1;/+@fg=0; ${fs_free /} +@fg=1;/home+@fg=0; ${fs_free /home} +@fg=1;RAM+@fg=0; $memavail +@fg=1;CPU+@fg=0; ${cpu}% +@fg=1;↓+@fg=0; ${downspeed eno1} |
|
| 12 | - | ]] |
.conkyrc.desktop
added
+20 -0
| 1 | + | # vim: filetype=conky |
|
| 2 | + | ||
| 3 | + | conky.config = { |
|
| 4 | + | out_to_x = false, |
|
| 5 | + | out_to_console = true, |
|
| 6 | + | update_interval = 1.0, |
|
| 7 | + | total_run_times = 0, |
|
| 8 | + | short_units = true, |
|
| 9 | + | pad_percents = 2, |
|
| 10 | + | use_spacer = "left" |
|
| 11 | + | } |
|
| 12 | + | ||
| 13 | + | conky.text = [[ |
|
| 14 | + | +@fn=1;${execi 60 conky-sync-status}+@fn=0; \ |
|
| 15 | + | +@fg=1;/+@fg=0; ${fs_free /} \ |
|
| 16 | + | +@fg=1;/home+@fg=0; ${fs_free /home} \ |
|
| 17 | + | +@fg=1;RAM+@fg=0; $memavail \ |
|
| 18 | + | +@fg=1;CPU+@fg=0; ${cpu}% \ |
|
| 19 | + | +@fg=1;↓+@fg=0; ${downspeed eno1} |
|
| 20 | + | ]] |
.conkyrc.laptop
added
+17 -0
| 1 | + | conky.config = { |
|
| 2 | + | out_to_x = false, |
|
| 3 | + | out_to_console = true, |
|
| 4 | + | update_interval = 1.0, |
|
| 5 | + | total_run_times = 0, |
|
| 6 | + | short_units = true, |
|
| 7 | + | pad_percents = 2, |
|
| 8 | + | use_spacer = "left" |
|
| 9 | + | } |
|
| 10 | + | conky.text = [[ |
|
| 11 | + | +@fn=1;${execi 60 conky-sync-status}+@fn=0; \ |
|
| 12 | + | +@fg=1;✳+@fg=0; ${wireless_essid wlan0}${wireless_link_qual_perc wlan0}% \ |
|
| 13 | + | +@fg=1;/+@fg=0;${fs_free /} \ |
|
| 14 | + | +@fg=1;RAM+@fg=0; $memavail \ |
|
| 15 | + | +@fg=1;CPU+@fg=0; ${cpu}% \ |
|
| 16 | + | +@fg=1;⏻+@fg=0; ${battery_percent BAT0}% |
|
| 17 | + | ]] |
.profile
+0 -5
| 15 | 15 | export NNN_FIFO=/tmp/nnn.fifo |
|
| 16 | 16 | export CARGO_BUILD_JOBS=12 |
|
| 17 | 17 | ||
| 18 | 18 | systemctl --user start share-sync |
|
| 19 | 19 | ||
| 20 | - | if command -v xinput >/dev/null; then |
|
| 21 | - | prop="$(xinput | rg Touchpad | rg -o 'id=[0-9]+' | sed 's/id=//')" |
|
| 22 | - | xinput --set-prop "$prop" "libinput Disable While Typing Enabled" 0 |
|
| 23 | - | fi |
|
| 24 | - | ||
| 25 | 20 | if [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then |
|
| 26 | 21 | . ~/.nix-profile/etc/profile.d/nix.sh; |
|
| 27 | 22 | fi # added by Nix installer |
.spectrwm.conf
+2 -2
| 1 | 1 | # |
|
| 2 | 2 | # spectrwm configuration file |
|
| 3 | 3 | # |
|
| 4 | 4 | ||
| 5 | - | color_focus = medium aquamarine |
|
| 5 | + | color_focus = rgb:66/ff/cc |
|
| 6 | 6 | color_focus_maximized = rgb:00/00/00 |
|
| 7 | 7 | color_unfocus = rgb:33/33/33 |
|
| 8 | 8 | ||
| 9 | 9 | # BAR |
|
| 10 | 10 | ||
| 11 | 11 | bar_border_width = 8 |
|
| 12 | 12 | bar_border[1] = rgb:00/00/00 |
|
| 13 | - | bar_font_color[1] = rgb:bb/bb/bb, rgb:66/66/66, rgb:33/33/33, maroon, aquamarine |
|
| 13 | + | bar_font_color[1] = rgb:bb/bb/bb, rgb:66/66/66, rgb:33/33/33, rgb:b0/30/60, rgb:66/ff/cc |
|
| 14 | 14 | bar_font = monospace:size=10,fallback:size=10 |
|
| 15 | 15 | bar_action = spectrwm-status |
|
| 16 | 16 | bar_delay = 1 |
|
| 17 | 17 | bar_action_expand = 1 |
|
| 18 | 18 | bar_justify = left |
.xinitrc
+13 -0
| 25 | 25 | fi |
|
| 26 | 26 | ||
| 27 | 27 | [ -f ~/.fehbg ] && . ~/.fehbg |
|
| 28 | 28 | [ -f ~/.wacom ] && . ~/.wacom |
|
| 29 | 29 | ||
| 30 | + | if xset q &>/dev/null; then |
|
| 31 | + | xset r rate 180 40 # Sane repeat rate |
|
| 32 | + | xset -b # No bell |
|
| 33 | + | xset -dpms # Keep screen on at all times |
|
| 34 | + | xset s off # |
|
| 35 | + | xset m 7/5 0 # Pointer settings |
|
| 36 | + | setxkbmap us -variant altgr-intl |
|
| 37 | + | fi |
|
| 38 | + | ||
| 39 | + | if command -v xbindkeys >/dev/null 2>&1; then |
|
| 40 | + | xbindkeys |
|
| 41 | + | fi |
|
| 42 | + | ||
| 30 | 43 | # `dbus-launch` is required for flameshot. |
|
| 31 | 44 | exec dbus-launch spectrwm |
.zshenv
+0 -1
| 14 | 14 | export EDITOR=nvim |
|
| 15 | 15 | else |
|
| 16 | 16 | export VISUAL=vim |
|
| 17 | 17 | export EDITOR=vim |
|
| 18 | 18 | fi |
|
| 19 | - |
.zshrc
+0 -9
| 1 | 1 | ## |
|
| 2 | 2 | # cloudhead - .zshrc |
|
| 3 | 3 | # |
|
| 4 | 4 | ||
| 5 | - | if xset q &>/dev/null; then |
|
| 6 | - | xset r rate 180 40 # Sane repeat rate |
|
| 7 | - | xset -b # No bell |
|
| 8 | - | xset -dpms # Keep screen on at all times |
|
| 9 | - | xset s off # |
|
| 10 | - | xset m 7/5 0 # Pointer settings |
|
| 11 | - | setxkbmap us -variant altgr-intl |
|
| 12 | - | fi |
|
| 13 | - | ||
| 14 | 5 | if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then |
|
| 15 | 6 | export TERM=xterm |
|
| 16 | 7 | fi |
|
| 17 | 8 | ||
| 18 | 9 | export GPG_TTY=$(tty) |
etc/X11/xorg.conf.d/30-touchpad.conf
+12 -10
| 1 | 1 | Section "InputClass" |
|
| 2 | - | Identifier "libinput touchpad catchall" |
|
| 3 | - | Driver "libinput" |
|
| 4 | - | Option "NaturalScrolling" "on" |
|
| 5 | - | Option "ScrollMethod" "twofinger" |
|
| 6 | - | Option "Tapping" "on" |
|
| 7 | - | Option "ClickMethod" "clickfinger" |
|
| 8 | - | Option "TappingDrag" "off" |
|
| 9 | - | Option "PalmDetect" "0" |
|
| 10 | - | MatchIsTouchpad "on" |
|
| 11 | - | MatchDevicePath "/dev/input/event*" |
|
| 2 | + | Identifier "libinput touchpad catchall" |
|
| 3 | + | Driver "libinput" |
|
| 4 | + | Option "NaturalScrolling" "on" |
|
| 5 | + | Option "ScrollMethod" "twofinger" |
|
| 6 | + | Option "Tapping" "on" |
|
| 7 | + | Option "TappingButtonMap" "lr" |
|
| 8 | + | Option "ClickMethod" "clickfinger" |
|
| 9 | + | Option "TappingDrag" "off" |
|
| 10 | + | Option "PalmDetect" "0" |
|
| 11 | + | Option "ButtonMapping" "1 1 3" |
|
| 12 | + | MatchIsTouchpad "on" |
|
| 13 | + | MatchDevicePath "/dev/input/event*" |
|
| 12 | 14 | EndSection |
etc/udev/rules.d/backlight.rules
deleted
+0 -3
| 1 | - | # Allows users in the 'video' group to change the backlight |
|
| 2 | - | ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness" |
|
| 3 | - | ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness" |
settings/actual-brightness
deleted
+0 -1
| 1 | - | /sys/class/backlight/intel_backlight/actual_brightness |
settings/brightness
deleted
+0 -1
| 1 | - | /sys/class/backlight/intel_backlight/brightness |
settings/max-brightness
deleted
+0 -1
| 1 | - | /sys/class/backlight/intel_backlight/max_brightness |