From 246f4416bc57abaa8653e43b319cc34036272166 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 16 Nov 2019 16:06:59 +0000 Subject: Add tentative lsp configuration --- i3/.config/i3/config | 3 +++ 1 file changed, 3 insertions(+) (limited to 'i3/.config') diff --git a/i3/.config/i3/config b/i3/.config/i3/config index dc439fc..28fd656 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -215,4 +215,7 @@ gaps outer 5 # Launch compositor exec compton +# Kill xcape if bug +bindsym $mod+F3 exec --no-startup-id killall -9 xcape + # vim:filetype=i3 -- cgit v1.2.3 From db6b64e8a0429d1cdc15c0ccb56fa6d3b01be001 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 16 Nov 2019 16:35:33 +0000 Subject: Update i3blocks --- i3/.config/i3blocks/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'i3/.config') diff --git a/i3/.config/i3blocks/config b/i3/.config/i3blocks/config index e736e7e..0f0c207 100644 --- a/i3/.config/i3blocks/config +++ b/i3/.config/i3blocks/config @@ -73,15 +73,16 @@ label= command=echo $(free | grep '^Mem' | awk '{ printf "%3.0f%\n", 100*$3/$2 }') interval=30 +# Requires i3blocks-contrib (AUR) [diskhome] label= -command=/usr/lib/i3blocks/disk +command=/usr/lib/i3blocks/disk/disk instance=/home/urbain interval=300 [diskroot] label= -command=/usr/lib/i3blocks/disk +command=/usr/lib/i3blocks/disk/disk instance=/ interval=300 -- cgit v1.2.3 From c4e82f7325a6ef5b6d1127d16afe2f0b0e3e7c36 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 12 Feb 2020 20:05:57 +0000 Subject: Fix battery script for new laptop --- i3/.config/i3blocks/bin/battery | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'i3/.config') diff --git a/i3/.config/i3blocks/bin/battery b/i3/.config/i3blocks/bin/battery index 378ee3f..0286809 100755 --- a/i3/.config/i3blocks/bin/battery +++ b/i3/.config/i3blocks/bin/battery @@ -5,7 +5,6 @@ if [ ! -d /sys/class/power_supply/BAT0 ]; then exit fi -current_now=$(cat /sys/class/power_supply/BAT0/current_now) charge_now=$(cat /sys/class/power_supply/BAT0/charge_now) charge_full=$(cat /sys/class/power_supply/BAT0/charge_full) bat_status=$(cat /sys/class/power_supply/BAT0/status) @@ -16,7 +15,7 @@ if [ "$bat_status" = "Full" ]; then fi if [ "$bat_status" = "Discharging" ]; then - tot_minutes_remaining=$(( charge_now*60/current_now )) + # tot_minutes_remaining=$(( charge_now*60/current_now )) if [[ $charge_percent -lt 20 ]]; then icon="" @@ -36,14 +35,16 @@ if [ "$bat_status" = "Discharging" ]; then fi elif [ "$bat_status" = "Charging" ]; then - tot_minutes_remaining=$(( (charge_full-charge_now)*60/current_now )) + # current_now=$(cat /sys/class/power_supply/BAT0/current_now) + # tot_minutes_remaining=$(( (charge_full-charge_now)*60/current_now )) icon= color="lightblue" fi -time_remaining=$(printf "%02d:%02d" \ - $(( tot_minutes_remaining/60 )) \ - $(( tot_minutes_remaining - (tot_minutes_remaining/60)*60 ))) +# time_remaining=$(printf "%02d:%02d" \ +# $(( tot_minutes_remaining/60 )) \ +# $(( tot_minutes_remaining - (tot_minutes_remaining/60)*60 ))) -echo "$icon $charge_percent% ($time_remaining)" +# echo "$icon $charge_percent% ($time_remaining)" +echo "$icon $charge_percent%" -- cgit v1.2.3 From 3c4b0332f59b016ad20f4dee4dea43369b0ab2f8 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 13 Feb 2020 10:32:16 +0000 Subject: Add keys for brightness --- i3/.config/i3/config | 4 +++- xinit/.xinitrc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'i3/.config') diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 28fd656..e51e8ac 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -1,7 +1,7 @@ # Modifier set $mod Mod4 -font pango:DejaVu Sans Mono, Awesome 8 +font pango:DejaVu Sans Mono, Awesome 9 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -190,6 +190,8 @@ bindsym XF86AudioMute exec amixer -D pulse sset Master 0% # Display bindsym XF86MonBrightnessUp exec light -A 10 bindsym XF86MonBrightnessDown exec light -U 10 +bindsym Prior exec light -A 10 +bindsym Next exec light -U 10 bindsym Shift+XF86AudioRaiseVolume exec light -A 10 bindsym Shift+XF86AudioLowerVolume exec light -U 10 diff --git a/xinit/.xinitrc b/xinit/.xinitrc index c779d25..4a3c018 100755 --- a/xinit/.xinitrc +++ b/xinit/.xinitrc @@ -11,7 +11,7 @@ source $HOME/.local/colors.zsh xrdb $HOME/.Xresources/$COLORSCHEME # Background -feh --bg-fill /home/urbain/Documents/wallpapers/pagoda.jpg +feh --bg-fill /usr/share/backgrounds/Grand_Canyon_North_Rim_by_Rihards_Vilks.jpg # Disable screen going to sleep xset -dpms -- cgit v1.2.3