plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c1cd76e37840050d9b7716b170a5e8da12f72710
parent a00b3da63ba0727859464ea2dc02d905fea44bce
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Tue, 17 Dec 2019 13:17:30 +1100

First laptop commit. statusbar.sh configured specifically to x1 extreme, other general arch related changes.

Diffstat:
M.bash_profile | 11+++++++----
M.bashrc | 15+++++++++++++++
M.config/i3/config | 17++++++++++-------
M.config/i3/statusbar.sh | 4++--
M.config/i3status/config | 29+++++++++++++++++++++--------
5 files changed, 55 insertions(+), 21 deletions(-)

diff --git a/.bash_profile b/.bash_profile @@ -4,10 +4,10 @@ CFG=$HOME/.config SHD=/media/sea/ # start X if on TTY 1 -if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] - then - exec startx -fi +#if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] +# then +# exec startx +#fi @@ -21,6 +21,9 @@ fi export LD_LIBRARY_PATH=~/repos/MultiNest/lib/:$LD_LIBRARY_PATH export PATH=~/.local/bin:$PATH +# Ruby excecutables +export PATH="$PATH:/home/nick/.gem/ruby/2.6.0/bin" + # Autocomplete without case matching set completion-ignore-case on diff --git a/.bashrc b/.bashrc @@ -127,6 +127,21 @@ export PATH=/bin/lscript:/bin/lscript:/usr/local/sbin:/usr/local/bin:/usr/sbin:/ # MOUNT SEAGATE DRIVE #sudo mount /dev/sda1 /media/sea +# Enable delete key in st-terminal +tput smkx + +# Reverse scroll direction on trackpad +xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Scrolling Distance" -113 -113 +# Touch click +xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 3 2 +# horizontal scroll +xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 1 + +# Load .xresources theme (transparency for st) +xrdb ~/.Xresources + +# Start flameshot running in backgroung +flameshot & export SPLASH_DIR=$HOME/splash export NDSPMHD_DIR=~/Downloads/ndspmhd diff --git a/.config/i3/config b/.config/i3/config @@ -30,10 +30,10 @@ exec --no-startup-id setxkbmap -layout us # Compositor # exec_always --no-startup-id compton --backend glx --blur-method kawase --blur-strength 4 --config ~/.config/.compton.conf +exec_always --no-startup-id compton --backend glx --blur-method kawase --blur-strength 4 --config ~/.config/.compton.conf +#exec_always --no-startup-id compton #--active-opacity 0.9 --blur-background #compton -exec --no-startup-id compton --backend glx --blur-method kawase --blur-strength 8 --config ~/.config/.compton.conf -#exec_always --no-startup-id compton #--active-opacity 0.9 --blur-background #compton # I3 GAPS for_window [class=".*"] gaps inner pixel 5 @@ -43,8 +43,10 @@ for_window [class=".*"] border pixel 0 bar { # Height in pixels position top - height 10 + height 20 + font pango:Terminus 12px + #status_command i3status # Custom i3status bar status_command ~/.config/i3/statusbar.sh @@ -52,12 +54,12 @@ bar { # Application Shortcuts -bindsym $mod+F1 exec google-chrome +bindsym $mod+F1 exec google-chrome-stable bindsym $mod+F2 exec nautilus bindsym $mod+F3 exec firefox -bindsym $mod+F4 exec wine '/media/sea/Games/wow/World of Warcraft/WoW.exe' +#bindsym $mod+F4 bindsym $mod+F5 exec s-tui -bindsym $mod+F6 exec google-chrome +bindsym $mod+F6 exec google-chrome-stable # printscreen takes screenshot with flameshot bindsym Print exec flameshot gui @@ -68,7 +70,8 @@ bindsym Print exec flameshot gui floating_modifier $mod # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+Return exec st +#bindsym $mod+Return exec i3-sensible-terminal #bindsym $mod+\ exec xterm # kill focused window diff --git a/.config/i3/statusbar.sh b/.config/i3/statusbar.sh @@ -29,7 +29,7 @@ do BTC=$(crypto_rate "BTC") ETH=$(crypto_rate "ETH") - RATIO=$(bc <<< "scale=5;$ETH/$BTC") + RATIO=$(bc <<< "scale=4;$ETH/$BTC") - echo -e "$NORD | ${RED}BTC:$BTC ETH:$ETH ETH/BTC:$RATIO | $line" || exit 1 + echo -e "$NORD | ${RED}BTC: $BTC ETH: $ETH ETH/BTC: 0$RATIO | $line" || exit 1 done diff --git a/.config/i3status/config b/.config/i3status/config @@ -1,22 +1,23 @@ general { - #output_format = "dzen2" + #output_format = "i3bar" colors = true interval = 5 } #order += "ipv6" +order += "battery 0" order += "disk /" -#order += "cpu_temperature 0" -#order += "wireless wlan0" -order += "ethernet enp3s0" +order += "cpu_temperature 0" +order += "wireless wlp82s0" +order += "ethernet en0s31f6" order += "tztime local" -wireless wlan0 { - format_up = "W: (%quality at %essid, %bitrate) %ip" +wireless wlp82s0 { + format_up = "W: %quality // %bitrate // %ip" format_down = "W: down" } -ethernet enp3s0 { +ethernet enp0s31f6 { # if you use %speed, i3status requires the cap_net_admin capability format_up = "E: %ip (%speed)" format_down = "E: down" @@ -31,9 +32,21 @@ tztime local { cpu_temperature 0 { format = "T: %degrees °C" - path = "/sys/devices/platform/coretemp.0/temp1_input" + path = "/sys/class/thermal/thermal_zone19/temp" } disk "/" { format = "%free" } + + +battery 0 { + format = "%status %percentage %remaining"# %emptytime" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 +}