diff --git a/configs/alacritty.yml b/configs/alacritty.yml index 3a28a2c..b9fe58f 100644 --- a/configs/alacritty.yml +++ b/configs/alacritty.yml @@ -27,27 +27,83 @@ cursor: shape: Block blinking: on - -# Colors (Solarized Dark) colors: - # Default colors - primary: - background: '#002b36' # base03 - foreground: '#839496' # base0 + # Default colors + primary: + background: "#24273A" # base + foreground: "#CAD3F5" # text + # Bright and dim foreground colors + dim_foreground: "#CAD3F5" # text + bright_foreground: "#CAD3F5" # text - # Cursor colors - cursor: - text: '#002b36' # base03 - cursor: '#839496' # base0 + # Cursor colors + cursor: + text: "#24273A" # base + cursor: "#F4DBD6" # rosewater + vi_mode_cursor: + text: "#24273A" # base + cursor: "#B7BDF8" # lavender - # Normal colors - normal: - black: '#073642' # base02 - red: '#dc322f' # red - green: '#859900' # green - yellow: '#b58900' # yellow - blue: '#268bd2' # blue - magenta: '#d33682' # magenta - cyan: '#2aa198' # cyan - white: '#eee8d5' # base2 + # Search colors + search: + matches: + foreground: "#24273A" # base + background: "#A5ADCB" # subtext0 + focused_match: + foreground: "#24273A" # base + background: "#A6DA95" # green + footer_bar: + foreground: "#24273A" # base + background: "#A5ADCB" # subtext0 + + # Keyboard regex hints + hints: + start: + foreground: "#24273A" # base + background: "#EED49F" # yellow + end: + foreground: "#24273A" # base + background: "#A5ADCB" # subtext0 + + # Selection colors + selection: + text: "#24273A" # base + background: "#F4DBD6" # rosewater + + # Normal colors + normal: + black: "#494D64" # surface1 + red: "#ED8796" # red + green: "#A6DA95" # green + yellow: "#EED49F" # yellow + blue: "#8AADF4" # blue + magenta: "#F5BDE6" # pink + cyan: "#8BD5CA" # teal + white: "#B8C0E0" # subtext1 + + # Bright colors + bright: + black: "#5B6078" # surface2 + red: "#ED8796" # red + green: "#A6DA95" # green + yellow: "#EED49F" # yellow + blue: "#8AADF4" # blue + magenta: "#F5BDE6" # pink + cyan: "#8BD5CA" # teal + white: "#A5ADCB" # subtext0 + + # Dim colors + dim: + black: "#494D64" # surface1 + red: "#ED8796" # red + green: "#A6DA95" # green + yellow: "#EED49F" # yellow + blue: "#8AADF4" # blue + magenta: "#F5BDE6" # pink + cyan: "#8BD5CA" # teal + white: "#B8C0E0" # subtext1 + + indexed_colors: + - { index: 16, color: "#F5A97F" } + - { index: 17, color: "#F4DBD6" } diff --git a/configs/nvim.vim b/configs/nvim.vim index 889e62a..0154710 100644 --- a/configs/nvim.vim +++ b/configs/nvim.vim @@ -3,9 +3,9 @@ set showmatch set hlsearch set incsearch set autoindent -set noexpandtab -set tabstop=2 -set shiftwidth=2 +set expandtab +set tabstop=4 +set shiftwidth=4 set number set wildmode=longest, list set cc=80 diff --git a/configs/sway/config b/configs/sway/config index 2de93c9..369c7d1 100644 --- a/configs/sway/config +++ b/configs/sway/config @@ -8,7 +8,7 @@ for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 p set $menu exec $term --class=launcher -e env zsh -c "source ~/.profile && /usr/bin/sway-launcher-desktop" set $filemgr nemo -output * bg #073642 solid_color +output * bg #1e2030 solid_color input * { xkb_layout us,ru @@ -23,18 +23,18 @@ smart_borders on default_border pixel 1 hide_edge_borders smart smart_gaps on -gaps inner 16 +gaps inner 8 font "JetBrains Mono" 9 -output * scale 2 +output * scale 1.5 -include ~/.config/sway/themes/solarized-dark +include ~/.config/sway/themes/catppuccin-macchiato # Start components exec mako exec poweralertd -exec swayidle -w timeout 60 'swaylock -f -c 073642' timeout 70 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 073642' +exec swayidle -w timeout 60 '$HOME/.config/sway/lock.sh' # Screenshots @@ -135,13 +135,13 @@ bindsym XF86AudioPrev exec playerctl previous bindsym XF86Search exec $menu # Floating -for_window [app_id="pavucontrol"] floating enable -for_window [app_id="pavucontrol"] resize set 600 300 +for_window [app_id="pavucontrol"] floating enable, resize 600 300, move absolute position 25ppt 25ppt +for_window [app_id="iwgtk"] floating enable, resize 300 150, move absolute position 25ppt 25ppt # Autostart - exec alacritty --class bottom -e btm for_window [app_id="bottom"] move container to workspace number 10 for_window [app_id="bottom"] fullscreen - +exec keepassxc +for_window [class="KeePassXC"] move container to workspace 9 diff --git a/configs/sway/lock.sh b/configs/sway/lock.sh index 79c674c..b815362 100755 --- a/configs/sway/lock.sh +++ b/configs/sway/lock.sh @@ -1,8 +1,8 @@ #!/bin/sh # Times the screen off and puts it to background swayidle \ - timeout 10 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' & + timeout 10 'swaymsg "output * dpms off" && brightnessctl -d kbd_backlight set 0%' \ + resume 'swaymsg "output * dpms on" && brightnessctl -d kbd_backlight set 30%' & # Locks the screen immediately swaylock -c 073642 # Kills last background task so idle timer doesn't keep running diff --git a/configs/sway/themes/catppuccin-macchiato b/configs/sway/themes/catppuccin-macchiato new file mode 100644 index 0000000..dcb575d --- /dev/null +++ b/configs/sway/themes/catppuccin-macchiato @@ -0,0 +1,15 @@ +seat seat0 xcursor_theme "Simp1e-Catppuccin-Macchiato" + +set $gnome-schema org.gnome.desktop.interface +exec_always { + gsettings set $gnome-schema gtk-theme 'Catppuccin-Macchiato' + gsettings set $gnome-schema icon-theme 'Mint-Y-Dark' + gsettings set $gnome-schema cursor-theme 'Simp1e-Catppuccin-Macchiato' + gsettings set $gnome-schema font-name 'Noto Sans 9' +} + +# Property Name Border BG Text Indicator Child_border +client.focused #cad3f5 #24273a #cad3f5 #cad3f5 #cad3f5 +client.focused_inactive #494d64 #24273a #cad3f5 #494d64 #494d64 +client.unfocused #363a4f #1e2030 #cad3f5 #363a4f #363a4f +client.urgent #d30102 #ed8796 #cad3f5 #d30102 #d30102 diff --git a/configs/sway/themes/solarized-dark b/configs/sway/themes/solarized-dark index 0b97659..da98fb8 100644 --- a/configs/sway/themes/solarized-dark +++ b/configs/sway/themes/solarized-dark @@ -9,6 +9,7 @@ exec_always { } # Property Name Border BG Text Indicator Child_border -client.focused #839496 #002b36 #839496 #839496 #839496 -client.focused_inactive #002b36 #002b36 #839496 #839496 #002b36 -client.unfocused #002b36 #002b36 #839496 #839496 #002b36 +client.focused #839496 #002b36 #839496 #839496 #fdf6e3 +client.focused_inactive #002b36 #002b36 #839496 #839496 #839496 +client.unfocused #002b36 #002b36 #839496 #839496 #839496 +client.urgent #d30102 #073642 #839496 #839496 #d30102 diff --git a/configs/waybar/config b/configs/waybar/config index 9e50ae4..b1314cf 100644 --- a/configs/waybar/config +++ b/configs/waybar/config @@ -52,5 +52,6 @@ "tooltip-format": "{ipaddr}/{cidr}", "format-linked": "Network (No IP) via {ifname}", "format-disconnected": "No network", + "on-click": "GTK_THEME=Adwaita-dark iwgtk" }, } diff --git a/configs/waybar/macchiato.css b/configs/waybar/macchiato.css new file mode 100644 index 0000000..12bc89c --- /dev/null +++ b/configs/waybar/macchiato.css @@ -0,0 +1,37 @@ +/* +* +* Catppuccin Mocha palette +* Maintainer: rubyowo +* +*/ + +@define-color base #24273a; +@define-color mantle #1e2030; +@define-color crust #181926; + +@define-color text #cad3f5; +@define-color subtext0 #a5adcb; +@define-color subtext1 #b8c0e0; + +@define-color surface0 #363a4f; +@define-color surface1 #494d64; +@define-color surface2 #5b6078; + +@define-color overlay0 #6e738d; +@define-color overlay1 #8087a2; +@define-color overlay2 #939ab7; + +@define-color blue #8aadf4; +@define-color lavender #b7bdf8; +@define-color sapphire #7dc4e4; +@define-color sky #91d7e3; +@define-color teal #8bd5ca; +@define-color green #a6da95; +@define-color yellow #eed49f; +@define-color peach #f5a97f; +@define-color maroon #ee99a0; +@define-color red #ed8796; +@define-color mauve #c6a0f6; +@define-color pink #f5bde6; +@define-color flamingo #f0c6c6; +@define-color rosewater #f4dbd6; diff --git a/configs/waybar/style.css b/configs/waybar/style.css index 0c31712..7826a19 100644 --- a/configs/waybar/style.css +++ b/configs/waybar/style.css @@ -1,49 +1,50 @@ +@import "macchiato.css"; * { font-family: "JetBrains Mono", "Noto Sans"; - font-size: 6pt; + font-size: 9pt; border: none; font-weight: 400; padding: 1 1px; } window#waybar { - background-color: #002b36; - color: #839496; + background-color: @base; + color: @yellow; } #workspaces button { background-color: transparent; border-radius: 2px; - color: #839496; + color: @subtext0; margin: 4px 1px; } #workspaces button:hover { - color: #cb4b16; - background-color: #073642; + color: @red; + background-color: @surface1; } #workspaces button.focused { - color: #b58900; - background-color: #073642; + color: @yellow; + background-color: @mantle; } #workspaces button.urgent { - background-color: #eb4d4b; + background-color: @pink; } #mode { - background-color: #888888; + background-color: @mantle; } -#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd { +#language, #clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd{ padding: 0 4px; - color: #839496; - background-color: #073642; + color: @text; + background-color: @mantle; border-radius: 2px; margin: 4px 1px; } #window { - color: #b58900; + color: @yellow; font-weight: 800; } @@ -81,3 +82,4 @@ label:focus { } + diff --git a/configs/zshrc b/configs/zshrc index 4fc7e9d..39d8f21 100644 --- a/configs/zshrc +++ b/configs/zshrc @@ -5,29 +5,31 @@ ZSH_THEME="ivabus" ENABLE_CORRECTION="true" plugins=(git zsh-syntax-highlighting) -# putting motd before ohmyzsh for quickier first output -AVLD=$(cut -d " " -f1-3 /proc/loadavg) -USEDMEM=$(free -h | grep Mem | awk '{print $3 " / " $2}') -USEDSWAP=$(free -h | grep Swap | awk '{ print $3 " / " $2}') -USEDSTRG=$(df / -h | tail -n 1 | awk '{print $3}') -USEDSTRGPERC=$(df / -h | tail -n 1 | awk '{print $5}') -STRG=$(df / -h | tail -n 1 | awk '{print $2}') -USEDSTRGHOME=$(df /home -h | tail -n 1 | awk '{print $3}') -USEDSTRGPERCHOME=$(df /home -h | tail -n 1 | awk '{print $5}') -STRGHOME=$(df /home -h | tail -n 1 | awk '{print $2}') -UPTIME=$(uptime -p) - -printf "\e[0;34msystem load:\e[m\t${AVLD}\n" -printf "\e[0;34musage of /:\e[m\t${USEDSTRGPERC}% (${USEDSTRG}/${STRG})\n" -printf "\e[0;34musage of /home:\e[m\t${USEDSTRGPERCHOME}% (${USEDSTRGHOME}/${STRGHOME})\n" -printf "\e[0;34mmemory usage:\e[m\t${USEDMEM}\n" -printf "\e[0;34mswap usage:\e[m\t${USEDSWAP}\n" -printf "\e[0;34muptime:\e[m\t\t${UPTIME}\n" +# Function to quickly show stats on systemload, usage of filesystems, usage of ram/swap and uptime +stats () { + AVLD=$(cut -d " " -f1-3 /proc/loadavg) + USEDMEM=$(free -h | grep Mem | awk '{print $3 " / " $2}') + USEDSWAP=$(free -h | grep Swap | awk '{ print $3 " / " $2}') + USEDSTRG=$(df / -h | tail -n 1 | awk '{print $3}') + USEDSTRGPERC=$(df / -h | tail -n 1 | awk '{print $5}') + STRG=$(df / -h | tail -n 1 | awk '{print $2}') + USEDSTRGHOME=$(df /home -h | tail -n 1 | awk '{print $3}') + USEDSTRGPERCHOME=$(df /home -h | tail -n 1 | awk '{print $5}') + STRGHOME=$(df /home -h | tail -n 1 | awk '{print $2}') + UPTIME=$(uptime -p) + printf "\e[0;34msystem load:\e[m\t${AVLD}\n" + printf "\e[0;34musage of /:\e[m\t${USEDSTRGPERC}% (${USEDSTRG}/${STRG})\n" + printf "\e[0;34musage of /home:\e[m\t${USEDSTRGPERCHOME}% (${USEDSTRGHOME}/${STRGHOME})\n" + printf "\e[0;34mmemory usage:\e[m\t${USEDMEM}\n" + printf "\e[0;34mswap usage:\e[m\t${USEDSWAP}\n" + printf "\e[0;34muptime:\e[m\t\t${UPTIME}\n" +} +stats source $ZSH/oh-my-zsh.sh - +export REPORTTIME=10 alias vi="nvim" alias vim="nvim" alias upgrade_dotfiles="sh $HOME/.dotfiles/tools/upgrade.sh" alias timestamp='date -u +%FT%TZ' -export REPORTTIME=3 +