From 8de1ecc446a7aae9a983e8e383e443faf0b31b17 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 16 Apr 2019 13:53:19 +0200 Subject: [PATCH 1/5] fix xinit syntax error --- .xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xinitrc b/.xinitrc index bf4f377..bd66876 100644 --- a/.xinitrc +++ b/.xinitrc @@ -56,7 +56,7 @@ type compton >/dev/null 2>&1 && compton & type flashfocus >/dev/null 2>&1 && flashfocus -l never & # additional config options for Touchpad devices ONLY -if [ dmesg | grep "Touchpad" | wc -l > 0 ]; then +if [ $(dmesg | grep "Touchpad" | wc -l) > 0 ]; then # enable touch tapping for XPS13 touchpad - for different devices get the touchpad name with xinput list-prop xinput set-prop "DLL075B:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1 fi From fb5affc593613a96c0fdecc66d553812afd219e0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 23 Apr 2019 14:48:42 +0200 Subject: [PATCH 2/5] change shell exit alias to :q to mirror vim --- .config/shell/rc.d/base-aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/rc.d/base-aliases.sh b/.config/shell/rc.d/base-aliases.sh index 56b24cf..970cd4a 100644 --- a/.config/shell/rc.d/base-aliases.sh +++ b/.config/shell/rc.d/base-aliases.sh @@ -28,5 +28,5 @@ alias cl="clear" # let me exit out of the shell same way as vim # TODO integrate session management with w? -alias "q"="exit" -alias "wq"="exit" +alias ":q"="exit" +alias ":wq"="exit" From bc440c2c7c1c362418386b5cb139f67e1bdf3861 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 24 Apr 2019 15:29:25 +0200 Subject: [PATCH 3/5] set default keyboard layout to EURkey --- .xinitrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.xinitrc b/.xinitrc index bd66876..852f9eb 100644 --- a/.xinitrc +++ b/.xinitrc @@ -35,8 +35,8 @@ fi # Remaps Capslock key to control. # (only works for x environment - I haven't needed it for non-x yet) setxkbmap -option ctrl:nocaps -# sets default to german layout, with possibility to switch to us -setxkbmap -layout de,us +# sets default to EURkey layout, with possibility to switch to german +setxkbmap -layout eu,de # allows switching layouts with alt+space setxkbmap -option grp:alt_shift_toggle # quit out of X with ctrl+alt+backspace From 10f85e19b0eddef6837b736c2204c40654ae6f4a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 26 Apr 2019 14:16:26 +0200 Subject: [PATCH 4/5] add i3status config file --- .config/i3status/config | 111 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 .config/i3status/config diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..f200efc --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,111 @@ +############################################################################### +# ceerious i3 status config +# see "man i3status" for documentation. +# +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! +############################################################################### + +general { + interval = 1 + colors = true + color_good = '#88b090' + color_degraded = '#ccdc90' + color_bad = '#e89393' +} + +order += "volume master" +order += "disk /" +#order += "disk /data" +#order += "disk /home" +#order += "run_watch DHCP" +#order += "ipv6" +#order += "run_watch VPN" +order += "wireless wlp4s0" +#order += "ethernet enp5s0" +order += "battery 0" +order += "cpu_temperature 0" +order += "cpu_usage 0" +order += "load" +order += "tztime local" + +#wireless wlp4s0 { +# format_up = "%quality  %essid %ip" +# format_down = "" +#} + +#ethernet enp5s0 { +# # if you use %speed, i3status requires root privileges +# format_up = "%ip (%speed)" +# format_down = "" +#} + +battery 0 { + format = "%status %percentage %remaining" + format_down = "" + last_full_capacity = true + integer_battery_capacity = true + low_threshold = 11 + threshold_type = percentage + hide_seconds = true + status_chr = " " + status_bat = " " + status_unk = " " + status_full = " " +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPN { + pidfile = "/var/run/vpnc/pid" +} + +#%Y-%m-%d %H:%M:%S' +tztime local { + format = " %d/%m/%Y  %H:%M" +} + +load { + format = " %1min" +} + +cpu_usage { + format = " %usage" +} + +cpu_temperature 0 { + format = " %degrees°C" +} + +disk "/" { + format = " %avail" + prefix_type = custom + low_threshold = 20 + threshold_type = percentage_avail +} + +#disk "/data" { +# format = " %avail" +# prefix_type = custom +# low_threshold = 20 +# threshold_type = percentage_avail +#} + +#disk "/data" { +# format = " %avail" +# prefix_type = custom +# low_threshold = 20 +# threshold_type = percentage_avail +#} + +volume master { + format = "%volume  " + format_muted = " " + device = "default" + mixer = "Master" + mixer_idx = 0 +} From 574afea89504d2ed2f43a3ca9d9d1c5926f477d7 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 29 Apr 2019 15:52:49 +0200 Subject: [PATCH 5/5] Set up function keys for i3 --- .config/i3/config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 4e0186c..a44e762 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -196,5 +196,14 @@ bindsym $mod+Shift+s exec --no-startup-id `[ $(printf "NO\nYES" | dmenu \ # lock i3 screen bindsym $mod+Shift+p exec i3lock +# enable function (/media) key functionality +# TODO: set up next song, previous song, pause, etc +# see: https://www.reddit.com/r/i3wm/comments/3a6nh3/help_how_to_use_function_keys_in_i3_config/ +bindsym XF86MonBrightnessUp exec `xbacklight -inc 10` +bindsym XF86MonBrightnessDown exec `xbacklight -dec 10` +bindsym XF86AudioMute exec `pulsemixer --toggle-mute` +bindsym XF86AudioRaiseVolume exec `pulsemixer --change-volume +5` +bindsym XF86AudioLowerVolume exec `pulsemixer --change-volume -5` + # set a pretty wallpaper exec_always --no-startup-id feh --bg-scale ~/Pictures/wall.jpg