From b8821cb26c5d87386fb052ea279afbe467d232d3 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sun, 23 Jan 2022 18:45:47 +0100 Subject: Small updates --- dwm/.dwm/bar/bar.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'dwm/.dwm/bar') diff --git a/dwm/.dwm/bar/bar.sh b/dwm/.dwm/bar/bar.sh index 89cfdf4..6dafda4 100755 --- a/dwm/.dwm/bar/bar.sh +++ b/dwm/.dwm/bar/bar.sh @@ -6,10 +6,10 @@ interval=0 # run bar script and dwm ( do not remove this ) -SYMLINKDIR=(readlink -f "$0") +SYMLINKDIR=$(readlink -f "$0") BASEDIR=$(dirname "$SYMLINKDIR") # load colors! -. $BASEDIR/.dwm/bar/themes/onedark +. $BASEDIR/themes/onedark cpu() { cpu_val=$(grep -o "^[^ ]*" /proc/loadavg) @@ -20,7 +20,7 @@ cpu() { pkg_updates() { #updates=$(doas xbps-install -un | wc -l) # void - updates=$(checkupdates | wc -l) # arch , needs pacman contrib + #updates=$(checkupdates | wc -l) # arch , needs pacman contrib # updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc) if [ -z "$updates" ]; then @@ -44,8 +44,8 @@ battery() { } brightness() { - brightness="$(cat /sys/class/backlight/*/brightness)" - brightness_max="$(cat /sys/class/backlight/*/max_brightness)" + brightness="$(cat /sys/class/backlight/intel_backlight/brightness)" + brightness_max="$(cat /sys/class/backlight/intel_backlight/max_brightness)" level=$(echo "scale=2; $brightness / $brightness_max * 100" | bc) printf "^c$red^  " @@ -91,8 +91,8 @@ keyboard() { while true; do - [ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates) + #[ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates) interval=$((interval + 1)) - sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(keyboard) $(wlan) $(volume) $(clock)" + sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(volume) $(clock)" done -- cgit v1.2.3 reecommitdiff
path: root/.config/sxhkd/sxhkdrc (unfollow)
Commit message (Expand)AuthorFilesLines
2023-05-24nvim: remove some unneeded code and plugins/lsp, and add live_grep keybindLuca Matei Pintilie4-30/+23
2023-05-09Mutt: add trashLuca Matei Pintilie1-0/+1
2023-04-30Fix calendar thing in waybarLuca Matei Pintilie1-45/+55
2023-04-29Add back marks and enable cursorlineLuca Matei Pintilie4-5/+37
2023-04-23Remove marks dependency from neovimLuca Matei Pintilie1-36/+0
2023-04-23Remove save and quit keybindLuca Matei Pintilie1-2/+0
2023-04-23Remove cursorline from neovim configLuca Matei Pintilie1-1/+15
2023-04-10Bump neovim config to 0.9 and add undotree and test related commandsLuca Matei Pintilie4-26/+47
2023-04-07Fix neovim spelllangLuca Matei Pintilie1-3/+1
2023-04-07Hyprland fixesLuca Matei Pintilie1-23/+25
2023-04-07Add mutt/neomutt configLuca Matei Pintilie5-0/+206
2023-04-07Neovim improvementsLuca Matei Pintilie5-27/+14
2023-04-05Better hyprland configLuca Matei Pintilie3-10/+42
2023-04-02Remove beacon config and add mini.commentLuca Matei Pintilie1-13/+34