1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

..

No commits in common. "3e153b8976a054264c9bb04ad2fb8d2f8595c5ee" and "0e8517d3954d09cedd895aef5f14da8fb9728429" have entirely different histories.

5 changed files with 51 additions and 32 deletions

View File

@ -45,9 +45,7 @@ A repository of my personal configuration files.
- [[https://github.com/cylgom/ly][Ly]] - [[https://github.com/cylgom/ly][Ly]]
- [[https://github.com/internalfx/mailcap][mailcap]] - [[https://github.com/internalfx/mailcap][mailcap]]
- [[https://mpv.io/][mpv]] - [[https://mpv.io/][mpv]]
- [[https://github.com/cdemoulins/pamixer][pamixer]]
- [[https://github.com/dylanaraps/pfetch][pfetch]] - [[https://github.com/dylanaraps/pfetch][pfetch]]
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
- [[https://github.com/dylanaraps/pywal][pywal]] - [[https://github.com/dylanaraps/pywal][pywal]]
- [[http://www.gnu.org/software/stow/][stow]] - [[http://www.gnu.org/software/stow/][stow]]
- [[https://www.python.org/][Python]] - [[https://www.python.org/][Python]]

View File

@ -1,26 +1,22 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# This is a very hacky way of doing this. Default sink for desktop is 0 and for laptop is 3. Kies de eerste de beste die werkt
if pamixer --list-sinks | grep -q "^0"; then
sink=0
elif pamixer --list-sinks | grep -q "^3"; then
sink=3
fi
if [ "$1" == "inc" ]; then if [ "$1" == "inc" ]; then
pactl -- set-sink-volume "$sink" +5% amixer -q sset Master 5%+
fi fi
if [ "$1" == "dec" ]; then if [ "$1" == "dec" ]; then
pactl -- set-sink-volume "$sink" -5% amixer -q sset Master 5%-
fi fi
if [ "$1" == "mute" ]; then if [ "$1" == "mute" ]; then
pactl -- set-sink-mute "$sink" toggle amixer -q sset Master toggle
fi fi
VOLUME=$(pamixer --sink "$sink" --get-volume)
if [ "$(pamixer --sink "$sink" --get-mute)" == "true" ]; then AMIXER=$(amixer sget Master)
VOLUME=$(echo "$AMIXER" | grep 'Mono\|Front Right:' | awk -F'[][]' '{ print $2 }' | tr -d "%")
MUTE=$(echo "$AMIXER" | grep -o '\[off\]' | tail -n 1)
if [ "$MUTE" == "[off]" ]; then
ICON=audio-volume-muted ICON=audio-volume-muted
elif [ "$VOLUME" -le 20 ]; then elif [ "$VOLUME" -le 20 ]; then
ICON=audio-volume-low ICON=audio-volume-low
@ -30,6 +26,7 @@ else
ICON=audio-volume-high ICON=audio-volume-high
fi fi
notify-send.py "Volume" "$VOLUME/100" \ notify-send.py "Volume" "$VOLUME/100" \
--hint string:image-path:$ICON boolean:transient:true \ --hint string:image-path:$ICON boolean:transient:true \
--replaces-process "volume-popup" & --replaces-process "volume-popup"

View File

@ -3,7 +3,7 @@ ttrss-url "https://rss.higherlearning.eu/
ttrss-flag-star "s" ttrss-flag-star "s"
ttrss-flag-publish "p" ttrss-flag-publish "p"
ttrss-login "alrayyes" ttrss-login "alrayyes"
ttrss-passwordeval "~/.local/bin/getpassword rss" ttrss-passwordeval "getpassword rss"
show-read-feeds no show-read-feeds no
show-read-articles no show-read-articles no

View File

@ -6,4 +6,8 @@ pgrep -f newsboat > /dev/null && exit
# Needed for notify-send to work # Needed for notify-send to work
export DISPLAY=":0.0" export DISPLAY=":0.0"
notify-send.py --replaces-process update-feeds -a Newsboat -i rssowl "Rss" "Updating feeds" &
/usr/bin/newsboat -x reload /usr/bin/newsboat -x reload
notify-send.py --replaces-process update-feeds -a Newsboat -i rssowl "Rss" "Feed update copmlete" &

View File

@ -14,7 +14,6 @@ foreground-alt = ${xrdb:color7:#222}
primary = ${xrdb:color1:#222} primary = ${xrdb:color1:#222}
secondary = ${xrdb:color2:#222} secondary = ${xrdb:color2:#222}
alert = ${xrdb:color3:#222} alert = ${xrdb:color3:#222}
disabled = #666
[bar/base] [bar/base]
background = ${colors.background} background = ${colors.background}
@ -206,7 +205,7 @@ format-disconnected =
format-connected-prefix = "直 " format-connected-prefix = "直 "
format-disconnected-prefix = "睊 " format-disconnected-prefix = "睊 "
label-connected = " %downspeed%  %upspeed%" label-connected = "%local_ip%  %downspeed%  %upspeed%"
label-disconnected = label-disconnected =
animation-packetloss-0 = ⚠ animation-packetloss-0 = ⚠
@ -247,15 +246,36 @@ label = %date% %time%
label-padding-right=1 label-padding-right=1
[module/volume] [module/volume]
type = internal/pulseaudio type = internal/alsa
sink = alsa_output.pci-0000_00_1b.0.iec958-stereo
format-volume = <label-volume>
label-volume = 蓼 %percentage%% label-volume = 蓼 %percentage%%
label-muted = "遼" label-volume-foreground = ${root.foreground}
label-muted-foreground = ${colors.disabled}
click-right = pavucontrol & format-muted-prefix =
format-muted-foreground = ${colors.foreground-alt}
label-muted = "遼"
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
[module/volume-laptop] [module/volume-laptop]
type = internal/pulseaudio type = internal/pulseaudio
@ -264,7 +284,7 @@ sink = alsa_output.pci-0000_00_1f.3.analog-stereo
label-volume = 蓼 %percentage%% label-volume = 蓼 %percentage%%
label-muted = "遼" label-muted = "遼"
label-muted-foreground = ${colors.disabled} label-muted-foreground = #666
click-right = pavucontrol & click-right = pavucontrol &