This commit is contained in:
Leon Kowarschick 2020-05-10 22:27:15 +02:00
parent f608befaa0
commit 4a7be17b9f
7 changed files with 23 additions and 15 deletions

View file

@ -158,12 +158,11 @@ label = %percentage_used%%
[module/date]
type = internal/date
interval = 5
interval = 20
date = %a, %d %m %y
date-alt = %d-%m-%Y
time = %H:%M
time-alt = %H:%M:%S
;format-prefix = "%{F#fbff8c}  %{F-}"
;format-prefix-foreground = ${colors.foreground-alt}
label = "%{F#444} %{F-}%{B#444} %time% | %date% %{B-}%{F#444} %{F-}"
@ -229,15 +228,15 @@ interval = 600
[module/pulseaudio-control]
type = custom/script
tail = true
click-right = exec pavucontrol &
exec = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash listen
click-left = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash togmute
click-middle = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash next-sink
scroll-up = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash up
scroll-down = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash down
label-foreground = ${colors.foreground}
click-right = exec pavucontrol &
exec = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash listen
click-middle = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash togmute
click-left = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash next-sink
scroll-up = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash up
scroll-down = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash down
[module/bspwm]
type = internal/bspwm

View file

@ -5,7 +5,7 @@ echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
# for loop only for multi monitor
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --config=/home/leon/.config/polybar/config.ini main >>/tmp/polybar1.log 2>&1 &
MONITOR=$m polybar -r --config=/home/leon/.config/polybar/config.ini main >>/tmp/polybar1.log 2>&1 &
done
#polybar --config=/home/leon/.config/polybar/config.ini main >>/tmp/polybar1.log 2>&1 &

View file

@ -1,6 +1,6 @@
[FileDialog]
history=file:///home/leon/Bilder/screenshots, file:///home/leon/coding/projects/pipr/target/x86_64-unknown-linux-musl/release, file:///home/leon/studium/Studium/Sem4/verteilteSysteme/Klausur2003, file:///home/leon, file:///home/leon/Downloads
lastVisited=file:///home/leon
history=file:///home/leon/Bilder/screenshots, file:///home/leon/coding/projects/pipr/target/x86_64-unknown-linux-musl/release, file:///home/leon/studium/Studium/Sem4/verteilteSysteme/Klausur2003, file:///home/leon, file:///home/leon/Downloads, file:///home/leon/Dokumente
lastVisited=file:///home/leon/Dokumente
qtVersion=5.14.2
shortcuts=file:, file:///home/leon
sidebarWidth=98

View file

@ -91,7 +91,8 @@ scratchpads =
where
launchTerminal = myTerminal ++ " --class scratchpad_term"
launchGHCI = myTerminal ++ " --class scratchpad_ghci stack exec -- ghci"
launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop"
launchWhatsapp = "whatsapp-nativefier"
--launchWhatsapp = "gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop"
-- Colors ------ {{{
@ -145,7 +146,7 @@ myLayout = avoidStruts . BoringWindows.boringWindows . smartBorders . toggleLayo
myStartupHook :: X ()
myStartupHook = do
spawnOnce "picom --config ~/.config/picom.conf --experimental-backends" --no-fading-openclose"
spawnOnce "pasystray"
--spawnOnce "pasystray" -- just open the UI by right-clicking on polybar's pulseaudio module
spawnOnce "nm-applet"
spawnOnce "udiskie -s" -- Mount USB sticks automatically. -s is smart systray mode: systray icon if something is mounted
spawnOnce "xfce4-clipman"

View file

@ -0,0 +1,8 @@
#!/bin/bash
stack new "$1"
cd "$1"
echo -e "cradle:\n stack:" >> hie.yaml
sed -i 's/^resolver: .*$/resolver: lts-15.0/' stack.yaml
stack setup
stack build --fast

View file

@ -11,7 +11,7 @@ for arg in "$@"; do
done
# Do not quote this, this is multiple flags
select_flag="-s --highlight --color 1,1,1,0.2"
select_flag="-s --highlight --color 1,1,1,0.1"
[ $fullscreen -eq 1 ] && select_flag=""