From 4a7be17b9f441d01a3e078867441c62e7b90b9bb Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Sun, 10 May 2020 22:27:15 +0200 Subject: [PATCH] assdf --- files/.config/polybar/config.ini | 17 ++++++++--------- files/.config/polybar/launch.sh | 2 +- .../qutebrowser/qsettings/QtProject.conf | 4 ++-- files/.xmonad/.stack-work/stack.sqlite3 | Bin 561152 -> 561152 bytes files/.xmonad/lib/Config.hs | 5 +++-- files/scripts/makeHaskellProject.sh | 8 ++++++++ files/scripts/screenshot.sh | 2 +- 7 files changed, 23 insertions(+), 15 deletions(-) create mode 100755 files/scripts/makeHaskellProject.sh diff --git a/files/.config/polybar/config.ini b/files/.config/polybar/config.ini index 09828f8..7e4455d 100644 --- a/files/.config/polybar/config.ini +++ b/files/.config/polybar/config.ini @@ -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 diff --git a/files/.config/polybar/launch.sh b/files/.config/polybar/launch.sh index a67e0ef..3874b7f 100755 --- a/files/.config/polybar/launch.sh +++ b/files/.config/polybar/launch.sh @@ -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 & diff --git a/files/.config/qutebrowser/qsettings/QtProject.conf b/files/.config/qutebrowser/qsettings/QtProject.conf index 83c8642..ff21551 100644 --- a/files/.config/qutebrowser/qsettings/QtProject.conf +++ b/files/.config/qutebrowser/qsettings/QtProject.conf @@ -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 diff --git a/files/.xmonad/.stack-work/stack.sqlite3 b/files/.xmonad/.stack-work/stack.sqlite3 index 6cada604be274c6b38e29e1729ca718e71110e0a..ec0ad9dac7e1ef7b08854e700d6dc37e41be975e 100644 GIT binary patch delta 116 zcmZozpwzHHX@WH4+=(*IjB^_kS`!#s6PQ{Pn71adEcF*>`2tzYw>@WPVQjApVgX`S PAZ7z%_U&~+98I@gyo delta 163 zcmZozpwzHHX@WH4xWT~J$n&3vnX7~02FHDN zAJ)w*l1#Oe6&3dIG%I;?G9*goa<iuiry#XR zx41GlCo?a**wDbl+}y-UKO;XkRX-;+KTlsTttw4FDKpP%`~PR`tc>k-K`cPb3dC$c M%)Y%Yh@;6C0QvGZC;$Ke diff --git a/files/.xmonad/lib/Config.hs b/files/.xmonad/lib/Config.hs index 34b02cd..6739b63 100644 --- a/files/.xmonad/lib/Config.hs +++ b/files/.xmonad/lib/Config.hs @@ -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" diff --git a/files/scripts/makeHaskellProject.sh b/files/scripts/makeHaskellProject.sh new file mode 100755 index 0000000..6947eb5 --- /dev/null +++ b/files/scripts/makeHaskellProject.sh @@ -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 diff --git a/files/scripts/screenshot.sh b/files/scripts/screenshot.sh index 171ac2b..37e9207 100755 --- a/files/scripts/screenshot.sh +++ b/files/scripts/screenshot.sh @@ -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=""