changes
This commit is contained in:
parent
1f7bc08bbe
commit
9d9fea48b9
|
@ -65,7 +65,7 @@ font-3 = Noto Sans CJK JP:size=10:antialias=true;0
|
|||
|
||||
modules-left = bspwm
|
||||
; modules-center = winname
|
||||
modules-right = xwindow spotify pulseaudio cpu cputemp date
|
||||
modules-right = xwindow spotify pulseaudio cpu filesystem cputemp date
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
|
@ -112,7 +112,7 @@ font-3 = Noto Sans CJK JP:size=10:antialias=true;0
|
|||
|
||||
modules-left = bspwm_small
|
||||
; modules-center = winname
|
||||
modules-right = xwindow spotify pulseaudio battery wlan cpu cputemp date
|
||||
modules-right = xwindow spotify pulseaudio battery wlan cpu filesystem cputemp date
|
||||
|
||||
;wm-restack = bspwm
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if type "xrandr"; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$m polybar --reload $(cat /etc/hostname) &
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $(cat /etc/hostname) == "uzui" ]]; then
|
||||
"${XDG_CONFIG_HOME}"/bin/uzui/oled-brightness "$@"
|
||||
fi
|
||||
${XDG_CONFIG_HOME}/bin/$(cat /etc/hostname)/ctl-brightness "$@"
|
||||
|
|
3
scripts/gojou/ctl-brightness
Executable file
3
scripts/gojou/ctl-brightness
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Cannot control brightness, check monitor"
|
32
scripts/uzui/ctl-brightness
Executable file
32
scripts/uzui/ctl-brightness
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
BR_DIR="/sys/class/backlight/intel_backlight/"
|
||||
|
||||
|
||||
test -d "$BR_DIR" || exit 0
|
||||
|
||||
MIN=0
|
||||
MAX=$(cat "$BR_DIR/max_brightness")
|
||||
VAL=$(cat "$BR_DIR/brightness")
|
||||
|
||||
if [ "$1" = down ]; then
|
||||
VAL=$((VAL-4096))
|
||||
else
|
||||
VAL=$((VAL+4096))
|
||||
fi
|
||||
|
||||
if [ "$VAL" -lt $MIN ]; then
|
||||
VAL=$MIN
|
||||
elif [ "$VAL" -gt $MAX ]; then
|
||||
VAL=$MAX
|
||||
fi
|
||||
|
||||
PERCENT=`echo "$VAL / $MAX" | bc -l`
|
||||
|
||||
export XAUTHORITY=$HOME/.Xauthority # CHANGE "ivo" TO YOUR USER
|
||||
export DISPLAY=:0
|
||||
|
||||
echo "xrandr --output eDP-1 --brightness $PERCENT" > /tmp/oled-brightness.log
|
||||
xrandr --output eDP-1 --brightness $PERCENT
|
||||
|
||||
echo $VAL | sudo tee "$BR_DIR/brightness"
|
|
@ -23,7 +23,7 @@
|
|||
\RequirePackage{listings}
|
||||
\RequirePackage{geometry}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage[dvipsnames]{xcolor}
|
||||
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||
\RequirePackage{bm}
|
||||
\RequirePackage{siunitx}[=v2]
|
||||
\RequirePackage{physics}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export PATH=$HOME/.config/bin:$HOME/.local/bin:$HOME/.local/share/texlive/2023/bin/x86_64-linux:$HOME/.local/share/cargo/bin:/home/emh/.local/share/solana/install/active_release/bin:$PATH
|
||||
export PATH=$HOME/.config/bin/$(cat /etc/hostname):$HOME/.config/bin:$HOME/.local/bin:$HOME/.local/share/texlive/2023/bin/x86_64-linux:$HOME/.local/share/cargo/bin:/home/emh/.local/share/solana/install/active_release/bin:$PATH
|
||||
export MANPATH=$MANPATH:$HOME/.local/share/texlive/2023/texmf-dist/doc/man
|
||||
export INFOPATH=$INFOPATH:$HOME/.local/share/texlive/2023/texmf-dist/doc/info
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user