From 1432905eaa4fd66a56b96dd10dc270be30105d1e Mon Sep 17 00:00:00 2001 From: Zastian Pretorius Date: Sat, 13 Aug 2022 23:14:23 +0100 Subject: [PATCH] miner commits --- doom/.config/doom/config.el | 8 +- doom/.config/doom/init.el | 2 +- hentaiwm/.config/hentaiwm/src/main.rs | 17 +- polybar/.config/polybar/colors/colors.ini | 15 + polybar/.config/polybar/config | 511 +---- polybar/.config/polybar/dracula_back/config | 457 +++++ .../polybar/{ => dracula_back}/config.back | 0 polybar/.config/polybar/launch.sh | 4 + polybar/.config/polybar/modules/modules.ini | 586 ++++++ .../polybar/scripts/get_spotify_status.sh | 52 + polybar/.config/polybar/scripts/info-cava.py | 76 + .../polybar/scripts/scroll_spotify_status.sh | 12 + polybar/.config/polybar/scripts/spotify.py | 149 ++ .../qtile/__pycache__/config.cpython-310.pyc | Bin 0 -> 5963 bytes .../qtile/__pycache__/config.cpython-39.pyc | Bin 0 -> 6281 bytes qtile/.config/qtile/autostart.sh | 21 + qtile/.config/qtile/config.py | 283 +++ script/.config/script/animemode.sh | 3 +- script/.config/script/swaylock.sh | 2 +- script/.config/script/trackma.sh | 3 + sxhkd/.config/sxhkd/sxhkdrc | 4 +- xorg/.xinitrc | 3 +- zsh/.config/zsh/.zcompdump | 1808 +++++++++++++++++ zsh/.config/zsh/.zshrc | 2 + 24 files changed, 3579 insertions(+), 439 deletions(-) create mode 100644 polybar/.config/polybar/colors/colors.ini create mode 100644 polybar/.config/polybar/dracula_back/config rename polybar/.config/polybar/{ => dracula_back}/config.back (100%) create mode 100755 polybar/.config/polybar/launch.sh create mode 100644 polybar/.config/polybar/modules/modules.ini create mode 100755 polybar/.config/polybar/scripts/get_spotify_status.sh create mode 100644 polybar/.config/polybar/scripts/info-cava.py create mode 100755 polybar/.config/polybar/scripts/scroll_spotify_status.sh create mode 100755 polybar/.config/polybar/scripts/spotify.py create mode 100644 qtile/.config/qtile/__pycache__/config.cpython-310.pyc create mode 100644 qtile/.config/qtile/__pycache__/config.cpython-39.pyc create mode 100755 qtile/.config/qtile/autostart.sh create mode 100644 qtile/.config/qtile/config.py create mode 100755 script/.config/script/trackma.sh create mode 100644 zsh/.config/zsh/.zcompdump diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 2df68b8..4d33b85 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -35,9 +35,11 @@ ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type `relative) -(setq doom-font (font-spec :family "Ubuntu Mono" :size 15) - doom-variable-pitch-font (font-spec :family "Ubuntu Mono" :size 15) - doom-big-font (font-spec :family "Ubuntu Mono" :size 24)) +(set-fontset-font "fontset-default" nil (font-spec :size 15 :name "Meterial Icons")) + +(setq doom-font (font-spec :family "JetBrainsMono Nerd Font" :size 15) + doom-variable-pitch-font (font-spec :family "JetBrainsMono Nerd Font" :size 15) + doom-big-font (font-spec :family "JetBrainsMono Nerd Font" :size 24)) (require 'whitespace) (setq whitespace-line-column 99) diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index 29f604e..fdfaed3 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -136,7 +136,7 @@ ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on ;;json ; At least it ain't XML - (java +meghanada) ; the poster child for carpal tunnel syndrome + (java +lsp) ; the poster child for carpal tunnel syndrome ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB kotlin ; a better, slicker Java(Script) diff --git a/hentaiwm/.config/hentaiwm/src/main.rs b/hentaiwm/.config/hentaiwm/src/main.rs index 144d727..3b29f7e 100644 --- a/hentaiwm/.config/hentaiwm/src/main.rs +++ b/hentaiwm/.config/hentaiwm/src/main.rs @@ -23,21 +23,23 @@ use penrose::{ use simplelog::{LevelFilter, SimpleLogger}; // Replace these with your preferred terminal and program launcher -const TERMINAL: &str = "alacritty"; +const TERMINAL: &str = "kitty"; struct StartupHook {} impl Hook for StartupHook { fn startup(&mut self, wm: &mut WindowManager) -> Result<()> { if wm.n_screens() == 1 { - spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar") + spawn!("polybar barbase1") } else { - spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar bar_1") + spawn!("polybar barbase1").unwrap(); + spawn!("polybar barbase2") } .unwrap(); spawn!("sh /home/mrfluffy/.config/script/autostart.sh").unwrap(); spawn!("xss-lock -- /home/mrfluffy/.config/script/betterlockscreen.sh").unwrap(); spawn!("picom --backend glx").unwrap(); spawn!("nitrogen --restore").unwrap(); + spawn!("fcitx5 -d").unwrap(); spawn!("sxhkd") } } @@ -50,12 +52,13 @@ where fn randr_notify(&mut self, wm: &mut WindowManager) -> Result<()> { update_monitors_via_xrandr("HDMI-A-0", "eDP", RelativePosition::Left).unwrap(); if wm.n_screens() != 1 { - spawn!("killall eww").unwrap(); + spawn!("killall polybar").unwrap(); let three_seconds = Duration::from_millis(500); sleep(three_seconds); - spawn!("eww -c /home/mrfluffy/.config/eww/bar open-many bar bar_1") + spawn!("polybar barbase1").unwrap(); + spawn!("polybar barbase2") } else { - spawn!("echo 'Only one screen connected'") + spawn!("polybar barbase1") } } } @@ -85,7 +88,7 @@ fn main() -> penrose::Result<()> { .unfocused_border("#1A1A1A")? .gap_px(5) .top_bar(true) - .bar_height(32); + .bar_height(25); // Default number of clients in the main layout area let n_main = 1; diff --git a/polybar/.config/polybar/colors/colors.ini b/polybar/.config/polybar/colors/colors.ini new file mode 100644 index 0000000..a4eeec6 --- /dev/null +++ b/polybar/.config/polybar/colors/colors.ini @@ -0,0 +1,15 @@ +[colors] +background = #1d1d2d +background-alt = #11111b +foreground = #cdd6f4 +primary = #89dceb +secondary = #74c7ec +alert = #f38ba8 +black = #24283b +cyan = #89dceb +green = #a6e3a1 +orange = #fab387 +yellow = #f9e2af +red = #f38ba8 +pink = #f5c2e7 +blue = #89b4fa diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 9e0dfca..d61e7bf 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -1,457 +1,122 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains a lot of information -; -;========================================================== +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ + -[colors] -background = #282a36 -foreground = #f8f8f2 -background-alt = #99444444 -foreground-alt = #f8f8f2 -primary = #6e5991 -secondary = #363949 -alert = #bd2c40 +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [bar/barbase1] monitor = HDMI-A-0 -offset-y = -2 -;width = 100% -height = 29 -fixed-center = false +monitor-fallback =eDP +width = 100% +height = 25 +radius = 0 +fixed-center = true + +border-size = 0 +border-color = ${colors.background} + 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 = Ubuntu:pixelsize=10;1 -font-1 = Source Han Sans JP:pixelsize=10;1 -font-2 = siji:pixelsize=10;1 +padding-right = 1 + +module-margin-left = 0 +module-margin-right = 0 + +font-0 = "JetBrainsMono Nerd Font:size=15;5" +font-1 = "SauceCodePro Nerd Font Mono:size=20;5" +font-2 = "Material Icons:pixelsize=20;5" +font-3 = "Sinji:pixelsize=15;5" +font-4 = "Togalite medium:pixelsize=11;2" +font-5 = "SauceCodePro Nerd Font Mono:size=16;5" +font-6 = "JetBrainsMono Nerd Font Mono:size=12;4" +font-7 = "JetBrainsMono Nerd Font:pixelsize=12;4" +font-8 = "Source Han Sans JP:pixelsize=14;2" + +; MODULES SETUP modules-left = ewmh -modules-center = -modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu +;modules-center = left1 spotify-artist spotify-track left2 +modules-right = right1 volume sep1 memory sep1 pacman-updates sep1 cpu date right2 tray-position = right tray-padding = 2 +tray-offset-y = 2 +tray-offset-x = 2 cursor-click = pointer -cursor-scroll = ns-resize +cursor-scroll = pointer + +line-size = 2 + +#override-redirect = true +enable-ipc = true + +offset-y = -2 +offset-x = -2 [bar/barbase2] monitor = eDP -offset-y = -2 -;width = 100% -height = 29 -fixed-center = false +width = 100% +height = 25 +radius = 0 +fixed-center = true + +border-size = 0 +border-color = ${colors.background} + 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 = Ubuntu:pixelsize=10;1 -font-1 = Source Han Sans JP:pixelsize=10;1 -font-2 = siji:pixelsize=10;1 +padding-right = 1 + +module-margin-left = 0 +module-margin-right = 0 + +font-0 = "JetBrainsMono Nerd Font:size=15;5" +font-1 = "SauceCodePro Nerd Font Mono:size=20;5" +font-2 = "Material Icons:pixelsize=20;5" +font-3 = "Sinji:pixelsize=15;5" +font-4 = "Togalite medium:pixelsize=11;2" +font-5 = "SauceCodePro Nerd Font Mono:size=16;5" +font-6 = "JetBrainsMono Nerd Font Mono:size=12;4" +font-7 = "JetBrainsMono Nerd Font:pixelsize=12;4" +font-8 = "Source Han Sans JP:pixelsize=14;2" + +; MODULES SETUP modules-left = ewmh -modules-center = -modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth battery date powermenu -tray-position = right -tray-padding = 2 +;modules-center = left1 spotify-artist spotify-track left2 +modules-right = right1 volume sep1 memory sep1 pacman-updates sep1 cpu date right2 + cursor-click = pointer -cursor-scroll = ns-resize +cursor-scroll = pointer -[module/ewmh] -type = internal/xworkspaces -pin-workspaces = false -enable-click = true -enable-scroll = false -icon-0 = 1;一 -icon-1 = 2;二 -icon-2 = 3;三 -icon-3 = 4;四 -icon-4 = 5;五 -icon-5 = 6;六 -icon-6 = 7;七 -icon-7 = 8;八 -icon-8 = 9;九 -format = -label-active = %icon% -label-active-foreground = ${colors.green} -label-active-background = #6e5991 -label-active-padding = 1 -label-occupied = %icon% -label-occupied-foreground = ${colors.blue} -label-occupied-background = #363949 -label-occupied-padding = 1 -label-urgent = %icon% -label-urgent-foreground = ${colors.red} -label-urgent-underline = #0000ff -label-urgent-padding = 1 -label-empty = %icon% -label-empty-foreground = ${colors.fg} -label-empty-underline = ${colors.cyan} -label-empty-padding = 1 +line-size = 2 -[module/xwindow] -type = internal/xwindow -label = %title:0:30:...% +#override-redirect = true +enable-ipc = true -[module/xkeyboard] -type = internal/xkeyboard -blacklist-0 = num lock +offset-y = -2 +offset-x = -2 -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} -label-layout = %layout% -label-layout-underline = ${colors.secondary} - -label-indicator-padding = 2 -label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = /home - -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - -[module/bspwm] -type = internal/bspwm - -label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 - -label-occupied = %index% -label-occupied-padding = 2 - -label-urgent = %index%! -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} -label-empty-padding = 2 - -; Separator in between workspaces +;separator = %{F#4C566A}|%{F-} ; label-separator = | -[module/i3] -type = internal/i3 -format = -index-sort = true -wrapping-scroll = false - -; Only show workspaces on the same output as the bar -;pin-workspaces = true - -label-mode-padding = 2 -label-mode-foreground = #000 -label-mode-background = ${colors.primary} - -; focused = Active workspace on focused monitor -label-focused = %index% -label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} -label-focused-padding = ${module/bspwm.label-focused-padding} - -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-padding = ${module/bspwm.label-occupied-padding} - -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} - -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${module/bspwm.label-urgent-background} -label-urgent-padding = ${module/bspwm.label-urgent-padding} - -; Separator in between workspaces -; label-separator = | - - -[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/xbacklight] -type = internal/xbacklight - -format =