diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-06-03 17:50:01 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2022-06-03 17:50:01 +0200 |
| commit | b1da73c07af7945dad09070081413db5c533534d (patch) | |
| tree | cfe8621d051e3d47139a6bac40a599b969519d56 | |
| parent | 128ae72e6b0ff6ab70b4c54938a5354218c58abc (diff) | |
no msg
| -rw-r--r-- | mpd/.config/mpd/mpd.conf | 25 | ||||
| m--------- | nvim/.config/nvim | 0 | ||||
| -rw-r--r-- | picom/.config/picom/picom.conf | 2 | ||||
| -rwxr-xr-x | scripts/.local/bin/checkzwap | 2 | ||||
| -rwxr-xr-x | scripts/.local/bin/dcpug | 2 | ||||
| -rwxr-xr-x | scripts/.local/bin/statusbar/sb-internet | 27 | ||||
| -rwxr-xr-x | scripts/.local/bin/statusbar/sb-tasks | 10 | ||||
| -rwxr-xr-x | scripts/.local/bin/to60fps | 2 | ||||
| l--------- | shell/.zshenv | 1 | ||||
| -rwxr-xr-x | x11/.xinitrc | 2 |
10 files changed, 29 insertions, 44 deletions
diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf index e273f01..63c1c77 100644 --- a/mpd/.config/mpd/mpd.conf +++ b/mpd/.config/mpd/mpd.conf @@ -236,16 +236,16 @@ decoder { # # An example of an ALSA output: # -#audio_output { -# type "alsa" -# name "My ALSA Device" +audio_output { + type "alsa" + name "My ALSA Device" # device "hw:0,0" # optional # mixer_type "hardware" # optional # mixer_device "default" # optional # mixer_control "PCM" # optional # mixer_index "0" # optional -#} -# +} + # An example of an OSS output: # #audio_output { @@ -310,12 +310,19 @@ decoder { # Please see README.Debian if you want mpd to play through the pulseaudio # daemon started as part of your graphical desktop session! # -audio_output { - type "pulse" - name "mpd daemon" +#audio_output { +# type "pulse" +# name "mpd daemon" # server "remote_server" # optional # sink "remote_server_sink" # optional -} +#} + +#audio_output { +# type "pulse" +# name "Pulse Output" +# mixer_control "Master" +#} + # # An example of a winmm output (Windows multimedia API). # diff --git a/nvim/.config/nvim b/nvim/.config/nvim -Subproject 8e525fc69f7ee54f829e0fb2677142bbd0badc8 +Subproject 62a62b47042db592b8f144e92b001b148e2069a diff --git a/picom/.config/picom/picom.conf b/picom/.config/picom/picom.conf index c0f75ce..a03aefa 100644 --- a/picom/.config/picom/picom.conf +++ b/picom/.config/picom/picom.conf @@ -29,7 +29,7 @@ mark-ovredir-focused = true; detect-rounded-corners = true; detect-client-opacity = true; refresh-rate = 0; -vsync = false; +vsync = true; dbe = false; #paint-on-overlay = true; focus-exclude = [ "class_g = 'Cairo-clock'" ]; diff --git a/scripts/.local/bin/checkzwap b/scripts/.local/bin/checkzwap index 25bae37..902c35c 100755 --- a/scripts/.local/bin/checkzwap +++ b/scripts/.local/bin/checkzwap @@ -1 +1 @@ -sudo grep -R . /sys/kernel/debug/zswap +doas grep -R . /sys/kernel/debug/zswap diff --git a/scripts/.local/bin/dcpug b/scripts/.local/bin/dcpug index 7d4720b..762ad96 100755 --- a/scripts/.local/bin/dcpug +++ b/scripts/.local/bin/dcpug @@ -16,3 +16,5 @@ profile=$(printf $profiles | $dmenu) notify-send "Set CPU profile: $profile" $sudo cpupower frequency-set --governor $profile +# repeat, for good measure +$sudo cpupower frequency-set --governor $profile diff --git a/scripts/.local/bin/statusbar/sb-internet b/scripts/.local/bin/statusbar/sb-internet index e342345..6d80852 100755 --- a/scripts/.local/bin/statusbar/sb-internet +++ b/scripts/.local/bin/statusbar/sb-internet @@ -1,28 +1,13 @@ #!/bin/sh -# Show wifi 📶 and percent strength or 📡 if none. -# Show 🌐 if connected to ethernet or ❎ if none. -# Show 🔒 if a vpn connection is active - -# EDIT: NO CRINGEY EMOJI - -case $BLOCK_BUTTON in - 1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;; - 3) notify-send "🌐 Internet module" "\- Click to connect -❌: wifi disabled -📡: no wifi connection -📶: wifi connection with quality -❎: no ethernet -🌐: ethernet working -🔒: vpn is active -" ;; - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac +# Show wifi W and percent strength or w if none. +# Show E if connected to ethernet or e if none. +# Show V if a vpn connection is active if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then - wifiicon="$(awk '/^\s*w/ { print "W" int($3 * 100 / 70) }' /proc/net/wireless)" + wifiicon="$(awk '/^\s*w/ { print "W" int($3 * 100 / 70) }' /proc/net/wireless)" elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then - grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="X" || wifiicon="X" + grep -xq '0x1003' /sys/class/net/w*/flags && wifiicon="w" || wifiicon="w" fi -printf "%s%s%s\n" "$(sed "s/.*/V/" /sys/class/net/tun*/operstate 2>/dev/null)" "$(sed "s/down/X/;s/up/E/" /sys/class/net/e*/operstate 2>/dev/null)" "$wifiicon" +printf "%s%s%s\n" "$(sed "s/.*/V/" /sys/class/net/tun*/operstate 2>/dev/null)" "$(sed "s/down/e/;s/up/E/" /sys/class/net/e*/operstate 2>/dev/null)" "$wifiicon" diff --git a/scripts/.local/bin/statusbar/sb-tasks b/scripts/.local/bin/statusbar/sb-tasks index 586300e..349e8cb 100755 --- a/scripts/.local/bin/statusbar/sb-tasks +++ b/scripts/.local/bin/statusbar/sb-tasks @@ -8,13 +8,5 @@ num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (/running/)numr++; if (/queued/)numq++} END{print numr+numq"("numq")"}') -# Handle mouse clicks -case $BLOCK_BUTTON in - 1) setsid -f "$TERMINAL" -e tsp -l ;; - 3) notify-send "Tasks module" "🤖: number of running/queued background tasks -- Left click opens tsp" ;; # Right click - 2) $EDITOR "$0" ;; # Middle click -esac - [ "$num" != "0(0)" ] && - echo "🤖$num" + echo "$num" diff --git a/scripts/.local/bin/to60fps b/scripts/.local/bin/to60fps index c9bee4a..68ae6db 100755 --- a/scripts/.local/bin/to60fps +++ b/scripts/.local/bin/to60fps @@ -29,7 +29,7 @@ mpv \ --input-ipc-server=/tmp/mpvencodesocket \ --input-media-keys=no \ --no-msg-color \ - --vf=vapoursynth:$(echo $HOME)/.local/share/SVP4/scripts/ffff.py:4:6 \ + --vf=vapoursynth=$(echo $HOME)/.local/share/SVP4/scripts/ffff.py \ --of=matroska \ --ovc=libx264 \ --ovcopts=crf=$quality,preset=slow,threads=$threads diff --git a/shell/.zshenv b/shell/.zshenv deleted file mode 120000 index 8486fca..0000000 --- a/shell/.zshenv +++ /dev/null @@ -1 +0,0 @@ -.config/shell/profile
\ No newline at end of file diff --git a/x11/.xinitrc b/x11/.xinitrc index 9502100..6134ca3 100755 --- a/x11/.xinitrc +++ b/x11/.xinitrc @@ -14,4 +14,4 @@ else . "$HOME/.xprofile" fi -ssh-agent /usr/bin/dwm +ssh-agent "$(which dwm)" |
