diff --git a/.bashrc b/.bashrc index bb24e265..beae54cd 100755 --- a/.bashrc +++ b/.bashrc @@ -19,11 +19,3 @@ alias tl='trash-list' alias tre='trash-restore' alias tpm='trash-rm' alias mpv='mpv --title="mpv"' -alias dot='/usr/bin/git --git-dir=$HOME/.dots --work-tree=$HOME' -dot config --local status.showUntrackedFiles no - - - - -# added by Anaconda3 2.5.0 installer -#export PATH="/home/tstarr/anaconda3/bin:$PATH" diff --git "a/.config/xmobar/\\" "b/.config/xmobar/\\" deleted file mode 100644 index c1575747..00000000 --- "a/.config/xmobar/\\" +++ /dev/null @@ -1,19 +0,0 @@ -Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true" - , bgColor = "#282828" - , fgColor = "#ebdbb2" - , position = Static {xpos = 0, ypos = 0, width = 2560, height = 20} - , iconRoot = "X" - , allDesktops = False - , commands = [ Run Cpu ["-t", " %","-H", "2"] 10 - , Run Memory ["-t", "%"] 10 - , Run Network "enp4s0" [ "-t", "kb/kb" ] 10 - , Run Com "/home/tstarr/.config/xmobar/volume" [] "volume" 10 - , Run Com "/home/tstarr/.config/xmobar/gamemode" [] "gamemode" 10 - , Run Com "/home/tstarr/.config/xmobar/mouse_battery" [] "mouse_battery" 1 - , Run Date " %a %d/%m/%y  %H:%M:%S" "date" 10 - , Run StdinReader - ] - , sepChar = "%" - , alignSep = "}{" - , template = " %StdinReader%}%date%{%enp4s0% |  %mouse_battery% | %volume% | 閭%cpu% |  %memory% |%gamemode% " - } diff --git a/.config/xmobar/cpu b/.config/xmobar/cpu deleted file mode 100755 index e53ad7fd..00000000 --- a/.config/xmobar/cpu +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -CPU_USAGE=$(top -b -n2 -p 1 | fgrep "Cpu(s)" | tail -1 | awk -F'id,' -v prefix="$prefix" '{ split($1, vs, ","); v=vs[length(vs)]; sub("%", "", v); printf "%s%.1f%%\n", prefix, 100 - v }') -echo "$CPU_USAGE" diff --git a/.config/xmobar/cpu b/.config/xmobar/cpu new file mode 120000 index 00000000..a77ffcff --- /dev/null +++ b/.config/xmobar/cpu @@ -0,0 +1 @@ +../../.dotfiles/.config/xmobar/cpu \ No newline at end of file diff --git a/.config/xmobar/gamemode b/.config/xmobar/gamemode deleted file mode 100755 index a619ea43..00000000 --- a/.config/xmobar/gamemode +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/bash - -status=$(gamemoded -s) -if [ "$status" == "gamemode is inactive" ]; then - color="#b8bb26" -else - color="#fb4934" -fi - -echo "  " diff --git a/.config/xmobar/gamemode b/.config/xmobar/gamemode new file mode 120000 index 00000000..9099c0ef --- /dev/null +++ b/.config/xmobar/gamemode @@ -0,0 +1 @@ +../../.dotfiles/.config/xmobar/gamemode \ No newline at end of file diff --git a/.config/xmobar/mouse_battery b/.config/xmobar/mouse_battery deleted file mode 100755 index 57858da7..00000000 --- a/.config/xmobar/mouse_battery +++ /dev/null @@ -1,18 +0,0 @@ - -status=$(cat /sys/class/power_supply/hidpp_battery_*/uevent | grep POWER_SUPPLY_VOLTAGE) -voltage=$(echo $status | cut -c26-29) -if [ "$voltage" -ge 3700 ]; then - color="#b8bb26" -else - color="#fb4934" -fi - -status1=$(cat /sys/class/power_supply/hidpp_battery_*/uevent | grep POWER_SUPPLY_STATUS | tail -n1) -charge=$(echo $status1 | cut -c21-) -if [ "$charge" = "Discharging" ]; then - color1="#fb4934" -else - color1="#b8bb26" -fi - -echo "${voltage}mV" diff --git a/.config/xmobar/mouse_battery b/.config/xmobar/mouse_battery new file mode 120000 index 00000000..cd94ff86 --- /dev/null +++ b/.config/xmobar/mouse_battery @@ -0,0 +1 @@ +../../.dotfiles/.config/xmobar/mouse_battery \ No newline at end of file diff --git a/.config/xmobar/volume b/.config/xmobar/volume deleted file mode 100755 index 94b1d782..00000000 --- a/.config/xmobar/volume +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/bash - -volume=$(pactl list sinks | grep -A 7 'Name: alsa_output.usb-AudioQuest_inc._AudioQuest_DragonFly-00.analog-stereo' | tail -n 1 | sed 's/%.*//' | tail -c3) -mute=$(pactl list sinks | grep -A 6 'Name: alsa_output.usb-AudioQuest_inc._AudioQuest_DragonFly-00.analog-stereo' | tail -n 1 -c4 | sed 's/ //g') -if [ "$mute" == "yes" ]; then - color="#fb4934" -else - color="#b8bb26" -fi - -echo " $volume%" diff --git a/.config/xmobar/volume b/.config/xmobar/volume new file mode 120000 index 00000000..fef4d336 --- /dev/null +++ b/.config/xmobar/volume @@ -0,0 +1 @@ +../../.dotfiles/.config/xmobar/volume \ No newline at end of file diff --git a/.config/xmobar/wireguard b/.config/xmobar/wireguard new file mode 100755 index 00000000..571f90b9 --- /dev/null +++ b/.config/xmobar/wireguard @@ -0,0 +1,10 @@ +#! /bin/bash + +if ip address | grep -q "wg0" +then + color="#fb4934" +else + color="#b8bb26" +fi + +echo " " diff --git a/.config/xmobar/xmobar-tags b/.config/xmobar/xmobar-tags new file mode 100755 index 00000000..bfd4c940 --- /dev/null +++ b/.config/xmobar/xmobar-tags @@ -0,0 +1,23 @@ +#!/bin/bash +## HLWM Xmobar Tag Status ###### +# Version 0.1 by Scott Garrett # +# Wintervenom [(at)] gmail.com # +################################ + +hc () { + herbstclient "$@" +} + +tags () { + printf '[%s] ' $(hc tag_status) + echo +} + +set -f +IFS=$'\t' +tags +hc -i tag_changed | +while read hook tag mon; do + tags +done + diff --git a/.config/xmobar/xmobarrc b/.config/xmobar/xmobarrc deleted file mode 100755 index fc442ad8..00000000 --- a/.config/xmobar/xmobarrc +++ /dev/null @@ -1,19 +0,0 @@ -Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true" - , bgColor = "#282828" - , fgColor = "#ebdbb2" - , position = Static {xpos = 2560, ypos = 0, width = 2560, height = 20} - , iconRoot = "X" - , allDesktops = True - , commands = [ Run Cpu ["-t", " %","-H", "2"] 10 - , Run Memory ["-t", "%"] 10 - , Run Network "enp4s0" [ "-t", "kb/kb" ] 10 - , Run Com "/home/tstarr/.config/xmobar/volume" [] "volume" 10 - , Run Com "/home/tstarr/.config/xmobar/gamemode" [] "gamemode" 10 - , Run Com "/home/tstarr/.config/xmobar/mouse_battery" [] "mouse_battery" 30 - , Run Date " %a %d/%m/%y  %H:%M:%S" "date" 10 - , Run StdinReader - ] - , sepChar = "%" - , alignSep = "}{" - , template = " %StdinReader%}%date%{%enp4s0% | %mouse_battery% | %volume% | 閭%cpu% |  %memory% |%gamemode% " - } diff --git a/.config/xmobar/xmobarrc b/.config/xmobar/xmobarrc new file mode 120000 index 00000000..b6c31af5 --- /dev/null +++ b/.config/xmobar/xmobarrc @@ -0,0 +1 @@ +../../.dotfiles/.config/xmobar/xmobarrc \ No newline at end of file