diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-05-14 18:57:09 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-05-14 18:57:09 -0700 |
commit | 402aa8879c1183519b3ccc836345b3b0e10e6134 (patch) | |
tree | bfe22d1fa7ec0f333cdd92b37d144f78731e0b80 /home | |
parent | 5dddaa503dae4bce9c8de59b3c469f1e7ba0619a (diff) | |
download | dotfiles-402aa8879c1183519b3ccc836345b3b0e10e6134.tar.gz dotfiles-402aa8879c1183519b3ccc836345b3b0e10e6134.tar.bz2 dotfiles-402aa8879c1183519b3ccc836345b3b0e10e6134.zip |
Adapt config to x260
Diffstat (limited to 'home')
-rw-r--r-- | home/.bashrc | 2 | ||||
-rw-r--r-- | home/.config/dunst/dunstrc | 2 | ||||
-rw-r--r-- | home/.config/i3/config | 7 | ||||
-rw-r--r-- | home/.config/i3/i3blocks.conf | 13 | ||||
-rwxr-xr-x | home/bin/backlight | 27 |
5 files changed, 43 insertions, 8 deletions
diff --git a/home/.bashrc b/home/.bashrc index dc97397..a619ec6 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -113,7 +113,7 @@ if ! shopt -oq posix; then fi if [ -d "$HOME/.bashrc.d" ]; then - for script in "$HOME/.bashrc.d/"*; do + for script in $(find "$HOME/.bashrc.d/" -name *.sh); do . "$script" done fi diff --git a/home/.config/dunst/dunstrc b/home/.config/dunst/dunstrc index 1cd5912..8fb7830 100644 --- a/home/.config/dunst/dunstrc +++ b/home/.config/dunst/dunstrc @@ -1,5 +1,5 @@ [global] - font = Ubuntu 19 + font = Ubuntu 11 # Allow a small subset of html markup: # <b>bold</b> diff --git a/home/.config/i3/config b/home/.config/i3/config index e256fc5..8ffa00d 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -140,7 +140,8 @@ mode "common" { bindsym e exec emacsclient --alternate-editor='' --create-frame --no-wait , mode "default" bindsym f exec firefox, mode "default" bindsym p exec open-project, mode "default" - bindsym y exec passmenu, mode "default" + bindsym y exec ~/bin/passmenu --type, mode "default" + bindsym Shift+y exec ~/bin/passmenu, mode "default" bindsym Return mode "default" bindsym Escape mode "default" } @@ -164,8 +165,8 @@ bindsym XF86AudioNext exec --no-startup-id dbus-send --print-reply --dest=org.mp bindsym XF86AudioPrev exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous, exec pkill -SIGRTMIN+10 i3blocks # lighting -bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -steps 1 -time 0 -dec 2, exec pkill -SIGRTMIN+10 i3blocks -bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -steps 1 -time 0 -inc 2, exec pkill -SIGRTMIN+10 i3blocks +bindsym XF86MonBrightnessDown exec --no-startup-id ~/bin/backlight dec, exec pkill -SIGRTMIN+10 i3blocks +bindsym XF86MonBrightnessUp exec --no-startup-id ~/bin/backlight inc, exec pkill -SIGRTMIN+10 i3blocks # GNOME desktop settings such as font sizes and touchpad settings exec --no-startup-id gnome-shell diff --git a/home/.config/i3/i3blocks.conf b/home/.config/i3/i3blocks.conf index a37b35b..dbb7fd4 100644 --- a/home/.config/i3/i3blocks.conf +++ b/home/.config/i3/i3blocks.conf @@ -55,17 +55,17 @@ separator=false label= interval=2 signal=10 -instance=leds/smc::kbd_backlight +instance=leds/tpacpi::kbd_backlight command=~/.config/i3/status/brightness [disk] label= -separator=false interval=30 +separator=false [memory] label= -separator=false interval=10 +separator=false [load] command=~/.config/i3/status/load label= @@ -73,6 +73,13 @@ interval=10 [battery] command=~/.config/i3/status/battery +instance=0 +label=⚡ +interval=30 +separator=false +[battery] +command=~/.config/i3/status/battery +instance=1 label=⚡ interval=30 diff --git a/home/bin/backlight b/home/bin/backlight new file mode 100755 index 0000000..d18e58c --- /dev/null +++ b/home/bin/backlight @@ -0,0 +1,27 @@ +#!/bin/bash + +device=$(find /sys/class/backlight/* -maxdepth 1 | head -n 1) + +max=$(cat "$device/max_brightness") +current=$(cat "$device/brightness") +step=20 + +case "$1" in + get) + echo "$current" + ;; + dec) + if [[ "$current" -gt 0 ]]; then + echo $(( $current - $step )) > "$device/brightness" + fi + ;; + inc) + if [[ "$current" -lt "$max" ]]; then + echo $(( $current + $step )) > "$device/brightness" + fi + ;; + *) + echo "Unknown argument $1" >&2 + exit 1 + ;; +esac |