From 53fce7b68ee0a793124d08c8cb1aab045b2a0feb Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Sun, 19 Apr 2020 17:49:39 +0200 Subject: [PATCH 01/82] asdf --- .../kitty/{theme.conf => gruvbox.conf} | 0 files/.config/kitty/kitty.conf | 6 +- files/.config/picom.conf | 14 +- files/.config/polybar/blue-config.init | 252 ++++++++++++++++++ files/.config/polybar/config.ini | 4 +- files/.xmonad/lib/Config.hs | 2 +- files/.xmonad/xmonad-x86_64-linux | Bin 13861840 -> 13861840 bytes files/scripts/screenshot.sh | 2 + files/scripts/showMappings.sh | 6 +- 9 files changed, 275 insertions(+), 11 deletions(-) rename files/.config/kitty/{theme.conf => gruvbox.conf} (100%) create mode 100644 files/.config/polybar/blue-config.init diff --git a/files/.config/kitty/theme.conf b/files/.config/kitty/gruvbox.conf similarity index 100% rename from files/.config/kitty/theme.conf rename to files/.config/kitty/gruvbox.conf diff --git a/files/.config/kitty/kitty.conf b/files/.config/kitty/kitty.conf index c3f466e..46fb321 100644 --- a/files/.config/kitty/kitty.conf +++ b/files/.config/kitty/kitty.conf @@ -1,9 +1,9 @@ -include ./theme.conf +include ./gruvbox.conf #include ./onedark.conf #shell tmux #background_opacity 0.95 -background_opacity 0.7 +background_opacity 0.9 #font_family VictorMono Nerd Font Semibold #font_family DejaVuSansMono Nerd @@ -20,7 +20,7 @@ enable_audio_bell no draw_minimal_borders yes window_padding_width 0 -window_margin_width 0 +window_margin_width 10 tab_bar_style powerline hide_window_decorations yes placement_strategy top-left diff --git a/files/.config/picom.conf b/files/.config/picom.conf index 2951bcb..7cc10ed 100644 --- a/files/.config/picom.conf +++ b/files/.config/picom.conf @@ -14,9 +14,13 @@ glx-copy-from-front = false; # Shadows -------------------------------- {{{ shadow = true; -shadow-radius = 20; -shadow-offset-x = -20; -shadow-offset-y = -20; +#shadow-radius = 20; +#shadow-offset-x = -20; +#shadow-offset-y = -20; + +shadow-radius = 4; +shadow-offset-x = 3; +shadow-offset-y = 3; shadow-opacity = 0.6; # shadow-red = 0.0; # shadow-green = 0.0; @@ -24,7 +28,7 @@ shadow-opacity = 0.6; shadow-exclude = [ "! name~=''", - "!focused && ! class_g ?='xfce4-notifyd'", + #"!focused && ! class_g ?='xfce4-notifyd'", "name = 'Notification'", "name = 'Plank'", "name = 'Docky'", @@ -60,7 +64,7 @@ inactive-opacity-override = false; # inactive-dim-fixed = true; # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. -blur-background = true; +blur-background = false; blur-method = "dual_kawase"; #blur-method = "kernel"; blur-strength = 10; # max 20 diff --git a/files/.config/polybar/blue-config.init b/files/.config/polybar/blue-config.init new file mode 100644 index 0000000..00766c6 --- /dev/null +++ b/files/.config/polybar/blue-config.init @@ -0,0 +1,252 @@ + +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; ; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +;; Colors ------------------------------------------- {{{ + +[colors] +;background = ${xrdb:color0:#222} +;background = #bb282828 +;background = #88282828 +;background = #88282828 +background = #aa282c34 +;background = #ff282c34 +;background = #222 +background-alt = #444 +;foreground = ${xrdb:color7:#222} +foreground = #dfdfdf +foreground-alt = #888 +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +;; }}} + +;; Bar config ----------------------------------------- {{{ + +[bar/main] +width = 100%:-28 +height = 30 + +offset-x = 14 +offset-y = 7 + +radius = 0 + +locale = de_DE.UTF-8 + +enable-ipc = true +padding = 0 +;; center centered modules on screen, not between other modules +fixed-center = true + +separator = "%{F#aaa}|%{F-}" +separator-padding = 1 + + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 0 +border-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +;font-2 = siji:pixelsize=10;1 +;font-7 = NotoEmoji:size=7; +;font-7 = "JetBrainsMono Nerd Font:size=7" +;font-0 = "JetBrainsMono Nerd Font:fontformat=truetype:size=10;2" +;font-0 = "Iosevka Nerd Font:size=10;1" +;font-1 = "NotoEmoji:scale=10;1" +font-1 = "Symbola:size=10;1" +font-2 = FontAwesome5Free:style=Solid:size=8;0 +;font-1 = "FontAwesome:fontformat=truetype:size=12;1" + + +modules-left = xmonad +modules-center = timerDisplay spotify mpd gitlab-pipeline player-mpv-tail date +modules-right = pulseaudio-control updates-arch pulseaudio filesystem memory cpu +; network-traffic + +tray-position = right +tray-padding = 2 +tray-maxsize = 16 +tray-background = ${colors.background} +;tray-background = #0063ff + +cursor-click = pointer +cursor-scroll = ns-resize + +;; }}} + +;; MODULES ----------------------------------------------- {{{ + +; show's currently focussed window, already contained in xmonad module +[module/xwindow] +type = internal/xwindow +label = %title:0:30:...% + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / +format-mounted = +;format-mounted-prefix = "disk: " +;format-mounted-prefix-foreground = ${colors.foreground-alt} +format-mounted-prefix = "%{F#0fca42}  %{F-} " +;format-mounted-prefix = "  " +;format-mounted-underline = #0fca42 +;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-mounted = %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + + +[module/mpd] +type = internal/mpd +format-online = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +label-song-maxlen = 25 +label-song-ellipsis = true + + +[module/cpu] +type = internal/cpu +interval = 2 +;format-prefix = "cpu: " +;format-prefix-foreground = ${colors.foreground-alt} +format-prefix = "%{F#f9a000}  %{F-} " +;format-prefix = "  " +#format-underline = #f9a000 +label = %percentage:2%% + +[module/memory] +type = internal/memory +interval = 2 +;format-prefix = "mem: " +;format-prefix-foreground = ${colors.foreground-alt} +format-prefix = "%{F#0a6cf5}  %{F-} " +;format-prefix = " " +#format-underline = #0a6cf5 +label = %percentage_used%% + +[module/date] +type = internal/date +interval = 5 +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 = "  " +;format-prefix-foreground = ${colors.foreground-alt} +;#format-underline = #4bffdc +#format-underline = #fbff8c +label = %time% | %date% + +[module/xmonad] +type = custom/script +exec = xmonad-log +tail = true + + +[module/timerDisplay] +type = custom/script +exec = "[ -f ~/scripts/remainingTime.txt ] && head -n 1 scripts/remainingTime.txt" +interval = 1 + + +;[module/gitlab-pipeline] +;type = custom/script +;exec = ~/scripts/fetch-running-pipelines.sh +;interval = 10 + +[module/info-pingrtt] +type = custom/script +exec = ~/.config/polybar/polybar-scripts/info-pingrtt.sh +interval = 10 + + +[module/player-mpv-tail] +type = custom/script +exec = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -t 42 -c '#abb2bf' +tail = true +click-left = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p pause +click-middle = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p playlist-pos -1 +click-right = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p playlist-pos +1 +scroll-up = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p time-pos -10 +scroll-down = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p time-pos +10 + + +[module/network-traffic] +; configure interval, etc in script +type = custom/script +exec = ~/.config/polybar/polybar-scripts/network-traffic.sh +tail = true + + +[module/spotify] +type = custom/script +interval = 1 +format = "