summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghostty/.config/ghostty/config.ghostty46
-rw-r--r--ghostty/.config/ghostty/themes/noctalia22
l---------gtk/.config/gtk-3.0/settings.ini2
-rwxr-xr-xniri/.config/niri/apply-colors.sh20
-rw-r--r--niri/.config/niri/config.kdl19
-rwxr-xr-xniri/.config/niri/set-backdrop.sh29
-rwxr-xr-xniri/.config/niri/theme-switcher.sh56
-rw-r--r--portage/var/lib/portage/world7
-rw-r--r--vicinae/.config/vicinae/settings.json37
-rw-r--r--wallust/.config/wallust/templates/foot-colors-custom.ini2
-rw-r--r--wallust/.config/wallust/templates/vicinae-dark.toml78
-rw-r--r--wallust/.config/wallust/templates/vicinae-light.toml78
-rw-r--r--wallust/.config/wallust/wallust.toml6
l---------waybar/.config/waybar/theme.css2
-rw-r--r--zshrc/.zshrc108
15 files changed, 301 insertions, 211 deletions
diff --git a/ghostty/.config/ghostty/config.ghostty b/ghostty/.config/ghostty/config.ghostty
deleted file mode 100644
index f56acbc..0000000
--- a/ghostty/.config/ghostty/config.ghostty
+++ /dev/null
@@ -1,46 +0,0 @@
-# Dynamic theme colors
-
-# Font
-font-family = "JetBrainsMono Nerd Font"
-font-style = Regular
-font-size = 13
-
-# Window
-window-theme = ghostty
-window-padding-x = 2
-window-padding-y = 0
-confirm-close-surface=false
-resize-overlay = never
-gtk-toolbar-style = flat
-# Делаем фон полностью непрозрачным (1.0)
-background-opacity = 1
-
-# Отключаем размытие фона (очень важно для экономии VRAM)
-background-blur = false
-# Cursor styling
-cursor-style = "block"
-cursor-style-blink = true
-cursor-text = cell-foreground
-
-# Cursor styling + SSH session terminfo
-# (all shell iYour spectaclesntegration options must be passed together)
-shell-integration-features = no-cursor,ssh-env
-
-# Keyboard bindings
-keybind = shift+insert=paste_from_clipboard
-keybind = control+insert=copy_to_clipboard
-# Send Shift+Enter as CSI-u so TUIs can distinguish it from Enter.
-keybind = shift+enter=csi:13;2u
-# Legacy encoding sends Alt+Shift+Enter the same as Alt+Enter; send CSI-u so tmux can match M-S-Enter.
-keybind = alt+shift+enter=csi:13;4u
-keybind = super+control+shift+alt+arrow_down=resize_split:down,100
-keybind = super+control+shift+alt+arrow_up=resize_split:up,100
-keybind = super+control+shift+alt+arrow_left=resize_split:left,100
-keybind = super+control+shift+alt+arrow_right=resize_split:right,100
-
-# Slowdown mouse scrolling
-mouse-scroll-multiplier = 1.5
-
-# Fix general slowness on hyprland (https://github.com/ghostty-org/ghostty/discussions/3224)
-async-backend = epoll
-theme = noctalia
diff --git a/ghostty/.config/ghostty/themes/noctalia b/ghostty/.config/ghostty/themes/noctalia
deleted file mode 100644
index a5aeff8..0000000
--- a/ghostty/.config/ghostty/themes/noctalia
+++ /dev/null
@@ -1,22 +0,0 @@
-palette = 0=#4a463d
-palette = 1=#ffb4ab
-palette = 2=#d2c6a3
-palette = 3=#cdc6b5
-palette = 4=#becbb0
-palette = 5=#d2c6a3
-palette = 6=#cdc6b5
-palette = 7=#e6e2dd
-palette = 8=#969084
-palette = 9=#ffb4ab
-palette = 10=#d2c6a3
-palette = 11=#cdc6b5
-palette = 12=#becbb0
-palette = 13=#d2c6a3
-palette = 14=#cdc6b5
-palette = 15=#e6e2dd
-background = #141311
-foreground = #e6e2dd
-cursor-color = #e6e2dd
-cursor-text = #141311
-selection-background = #4a463d
-selection-foreground = #ccc6b9
diff --git a/gtk/.config/gtk-3.0/settings.ini b/gtk/.config/gtk-3.0/settings.ini
index ef98ebb..4e1634f 120000
--- a/gtk/.config/gtk-3.0/settings.ini
+++ b/gtk/.config/gtk-3.0/settings.ini
@@ -1 +1 @@
-settings-dark.ini \ No newline at end of file
+settings-light.ini \ No newline at end of file
diff --git a/niri/.config/niri/apply-colors.sh b/niri/.config/niri/apply-colors.sh
index 0c779a8..d5113c6 100755
--- a/niri/.config/niri/apply-colors.sh
+++ b/niri/.config/niri/apply-colors.sh
@@ -5,19 +5,20 @@
set -euo pipefail
+SCRIPT_DIR="$(cd "$(dirname "$(realpath "$0")")" && pwd)"
IMG="${1:-}"
MODE="${2:-auto}"
if [ -z "$IMG" ] || [ ! -f "$IMG" ]; then
- echo "usage: $0 <image> [light|dark]" >&2
- exit 1
+ echo "usage: $0 <image> [light|dark]" >&2
+ exit 1
fi
# wallust: classic 16-color palette (foot, btop, ...)
case "$MODE" in
- light) wallust run --palette light "$IMG" ;;
- dark) wallust run --palette dark "$IMG" ;;
- *) wallust run "$IMG" ;;
+light) wallust run --palette light "$IMG" ;;
+dark) wallust run --palette dark "$IMG" ;;
+*) wallust run "$IMG" ;;
esac
# foot needs bare RRGGBB, not #RRGGBB — strip the leading '#'
@@ -26,14 +27,17 @@ sed -i 's/#\([0-9a-fA-F]\)/\1/g' ~/.cache/wallust/foot-theme.ini 2>/dev/null ||
# matugen: Material You / M3 colors (niri focus ring, ...)
# --prefer is required for non-interactive runs (multiple source colors).
case "$MODE" in
- light) matugen image "$IMG" -m "light" --prefer saturation ;;
- dark) matugen image "$IMG" -m "dark" --prefer saturation ;;
- *) matugen image "$IMG" --prefer saturation ;;
+light) matugen image "$IMG" -m "light" --prefer saturation ;;
+dark) matugen image "$IMG" -m "dark" --prefer saturation ;;
+*) matugen image "$IMG" --prefer saturation ;;
esac
# set the wallpaper
awww img "$IMG"
+# blurred copy for the Overview backdrop (sibling or on-the-fly generation)
+"$SCRIPT_DIR/set-backdrop.sh" "$IMG"
+
# reload consumers
killall -SIGUSR2 waybar 2>/dev/null || true
killall -USR1 foot 2>/dev/null || true
diff --git a/niri/.config/niri/config.kdl b/niri/.config/niri/config.kdl
index 552dbdd..d45e58d 100644
--- a/niri/.config/niri/config.kdl
+++ b/niri/.config/niri/config.kdl
@@ -7,6 +7,7 @@ spawn-at-startup "gentoo-pipewire-launcher"
spawn-at-startup "telegram-desktop" "-autostart" "--minimized"
spawn-at-startup "keepassxc" "--minimized"
spawn-at-startup "awww-daemon"
+spawn-at-startup "awww-daemon" "--namespace" "backdrop"
spawn-at-startup "/usr/libexec/hyprpolkitagent"
spawn-at-startup "dbus-update-activation-environment" "WAYLAND_DISPLAY" "DISPLAY" "XDG_CURRENT_DESKTOP"
spawn-at-startup "darkman" "run"
@@ -22,7 +23,19 @@ environment {
ELECTRON_OZONE_PLATFORM_HINT "auto"
XDG_CURRENT_DESKTOP "niri"
}
+blur {
+ passes 4
+ offset 5.0
+ noise 0.02
+ saturation 1.1
+}
+// awww-daemon --namespace backdrop: pre-blurred wallpaper shown in the
+// Overview backdrop. niri cannot blur a backdrop surface itself.
+layer-rule {
+ match namespace="^awww-daemonbackdrop$"
+ place-within-backdrop true
+}
input {
// focus-follows-mouse max-scroll-amount="30%"
@@ -67,8 +80,6 @@ layout {
focus-ring {
width 2
- active-color "#7fc8ff"
- inactive-color "#505050"
}
border {
@@ -164,10 +175,6 @@ overview {
//color "#00000080"
}
}
-layer-rule {
- match namespace="^backdrop$"
- place-within-backdrop true
-}
debug {
honor-xdg-activation-with-invalid-serial
}
diff --git a/niri/.config/niri/set-backdrop.sh b/niri/.config/niri/set-backdrop.sh
new file mode 100755
index 0000000..efd02b3
--- /dev/null
+++ b/niri/.config/niri/set-backdrop.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+# Push a blurred copy of a wallpaper to the awww-daemon backdrop namespace.
+# Prefers a pre-made <name>-blur.<ext> sibling; otherwise generates one into the cache.
+# Used by theme-switcher.sh and apply-colors.sh for the niri Overview backdrop.
+
+set -euo pipefail
+
+IMG="${1:-}"
+if [ -z "$IMG" ] || [ ! -f "$IMG" ]; then
+ echo "usage: $0 <image>" >&2
+ exit 1
+fi
+
+EXT="${IMG##*.}"
+SIBLING="${IMG%.*}-blur.${EXT}"
+if [ -f "$SIBLING" ]; then
+ BLURRED="$SIBLING"
+else
+ CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/niri-backdrop"
+ mkdir -p "$CACHE_DIR"
+ BASE=$(basename "${IMG%.*}")
+ BLURRED="$CACHE_DIR/${BASE}-blur.jpg"
+ if [ ! -f "$BLURRED" ] || [ "$IMG" -nt "$BLURRED" ]; then
+ magick "$IMG" -blur 0x16 -quality 90 "$BLURRED"
+ fi
+fi
+
+awww img "$BLURRED" -n backdrop
+echo "$BLURRED" >/tmp/current_backdrop_state \ No newline at end of file
diff --git a/niri/.config/niri/theme-switcher.sh b/niri/.config/niri/theme-switcher.sh
index 6eed888..0f9b415 100755
--- a/niri/.config/niri/theme-switcher.sh
+++ b/niri/.config/niri/theme-switcher.sh
@@ -1,15 +1,14 @@
#!/bin/bash
-# paths to pics
-LIGHT_WALLPAPER="$HOME/Pictures/wallpapers/day.jpg"
-DARK_WALLPAPER="$HOME/Pictures/wallpapers/night.jpg"
-
-# paths to blurred pics for overview backdrop
-LIGHT_BLUR_WALLPAPER="$HOME/Pictures/wallpapers/day-blur.jpg"
-DARK_BLUR_WALLPAPER="$HOME/Pictures/wallpapers/night-blur.jpg"
+# Two wallpapers: day.jpg (9:00-18:00) and night.jpg (18:00-9:00).
+# To switch, just rename the files in ~/Pictures/wallpapers/.
+WALLPAPERS="$HOME/Pictures/wallpapers"
STATE_FILE="/tmp/current_theme_state"
+WALLPAPER_STATE_FILE="/tmp/current_wallpaper_state"
+BACKDROP_STATE_FILE="/tmp/current_backdrop_state"
SCRIPT_DIR="$(cd "$(dirname "$(realpath "$0")")" && pwd)"
+SET_BACKDROP="$SCRIPT_DIR/set-backdrop.sh"
while true; do
HOUR=$(date +%H)
@@ -17,33 +16,46 @@ while true; do
if [ "$HOUR" -ge 9 ] && [ "$HOUR" -lt 18 ]; then
TARGET_STATE="light"
+ MODE="light"
+ WALLPAPER="$WALLPAPERS/day.jpg"
else
TARGET_STATE="dark"
+ MODE="dark"
+ WALLPAPER="$WALLPAPERS/night.jpg"
+ fi
+
+ if [ ! -f "$WALLPAPER" ]; then
+ sleep 60
+ continue
fi
- CURRENT_STATE=$(cat "$STATE_FILE" 2>/dev/null)
+ CURRENT_THEME=$(cat "$STATE_FILE" 2>/dev/null || true)
+ CURRENT_WALLPAPER=$(cat "$WALLPAPER_STATE_FILE" 2>/dev/null || true)
- if [ "$CURRENT_STATE" != "$TARGET_STATE" ]; then
- if [ "$TARGET_STATE" = "light" ]; then
- sh "$SCRIPT_DIR/apply-colors.sh" "$LIGHT_WALLPAPER" light
- awww -n backdrop img "$LIGHT_BLUR_WALLPAPER"
+ # Self-heal the Overview backdrop
+ EXPECTED_BACKDROP=$(cat "$BACKDROP_STATE_FILE" 2>/dev/null || true)
+ ACTUAL_BACKDROP=$(awww query -n backdrop -j 2>/dev/null | jq -r '.["backdrop"][0].displaying.image // empty')
+ if [ -n "$EXPECTED_BACKDROP" ] && [ "$ACTUAL_BACKDROP" != "$EXPECTED_BACKDROP" ]; then
+ "$SET_BACKDROP" "$WALLPAPER"
+ fi
- # Сообщаем системе, что включилась светлая тема
- darkman set light
- else
- sh "$SCRIPT_DIR/apply-colors.sh" "$DARK_WALLPAPER" dark
- awww -n backdrop img "$DARK_BLUR_WALLPAPER"
+ if [ "$CURRENT_WALLPAPER" != "$WALLPAPER" ] || [ "$CURRENT_THEME" != "$TARGET_STATE" ]; then
+ sh "$SCRIPT_DIR/apply-colors.sh" "$WALLPAPER" "$MODE"
- # Сообщаем системе, что включилась тёмная тема
- darkman set dark
+ if [ "$CURRENT_THEME" != "$TARGET_STATE" ]; then
+ darkman set "$TARGET_STATE"
fi
- ln -sf "theme-${TARGET_STATE}.css" "$HOME/dotfiles-gentoo/waybar/.config/waybar/theme.css"
+ ln -sf \
+ "theme-${TARGET_STATE}.css" \
+ "$HOME/dotfiles-gentoo/waybar/.config/waybar/theme.css"
- # GTK3 apps don't read the portal; flip the preference via settings.ini
- ln -sf "settings-${TARGET_STATE}.ini" "$HOME/dotfiles-gentoo/gtk/.config/gtk-3.0/settings.ini"
+ ln -sf \
+ "settings-${TARGET_STATE}.ini" \
+ "$HOME/dotfiles-gentoo/gtk/.config/gtk-3.0/settings.ini"
echo "$TARGET_STATE" >"$STATE_FILE"
+ echo "$WALLPAPER" >"$WALLPAPER_STATE_FILE"
fi
sleep 60
diff --git a/portage/var/lib/portage/world b/portage/var/lib/portage/world
index 81e9763..68d637e 100644
--- a/portage/var/lib/portage/world
+++ b/portage/var/lib/portage/world
@@ -14,6 +14,7 @@ app-eselect/eselect-repository
app-misc/fastfetch
app-misc/hyfetch
app-misc/jq
+app-misc/tmux
app-misc/yazi
app-portage/eix
app-portage/gentoolkit
@@ -23,6 +24,7 @@ app-shells/ohmyzsh
app-shells/starship
app-shells/zsh
app-shells/zsh-autocomplete
+app-text/evince
dev-util/android-tools
dev-util/opencode-bin
dev-vcs/git
@@ -51,6 +53,7 @@ media-fonts/noto
media-fonts/noto-emoji
media-fonts/unifont
media-gfx/imagemagick
+media-gfx/imv
media-libs/mesa
media-sound/mpc
media-sound/mpd
@@ -80,10 +83,10 @@ sys-kernel/installkernel
sys-kernel/linux-firmware
sys-process/btop
www-client/helium-bin
-www-client/librewolf
-www-client/mullvad-browser-bin
+www-client/waterfox-bin
x11-apps/xrdb
x11-drivers/nvidia-drivers
x11-misc/matugen
x11-misc/sddm
x11-misc/silent-sddm-theme
+x11-themes/bibata-xcursors
diff --git a/vicinae/.config/vicinae/settings.json b/vicinae/.config/vicinae/settings.json
new file mode 100644
index 0000000..10ce861
--- /dev/null
+++ b/vicinae/.config/vicinae/settings.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://vicinae.com/schemas/config.json",
+ "theme": {
+ "dark": {
+ "name": "vicinae-wallust-dark"
+ },
+ "light": {
+ "name": "vicinae-wallust-light"
+ }
+ },
+ "telemetry": {
+ "system_info": false
+ },
+ "providers": {
+ "applications": {
+ "entrypoints": {
+ "assistant": {
+ "enabled": false
+ },
+ "linguist": {
+ "enabled": false
+ },
+ "qdbusviewer": {
+ "enabled": false
+ },
+ "qphotorec": {
+ "enabled": false
+ }
+ }
+ },
+ "clipboard": {
+ "preferences": {
+ "monitoring": true
+ }
+ }
+ }
+}
diff --git a/wallust/.config/wallust/templates/foot-colors-custom.ini b/wallust/.config/wallust/templates/foot-colors-custom.ini
index 0a2fb2b..5fc7983 100644
--- a/wallust/.config/wallust/templates/foot-colors-custom.ini
+++ b/wallust/.config/wallust/templates/foot-colors-custom.ini
@@ -1,4 +1,4 @@
-# wallust foot template — outputs #rrggbb, the '#' is stripped by apply-colors.sh
+# wallust foot template — foot expects colors without '#'
[colors]
background={{background}}
foreground={{foreground}}
diff --git a/wallust/.config/wallust/templates/vicinae-dark.toml b/wallust/.config/wallust/templates/vicinae-dark.toml
new file mode 100644
index 0000000..5c2c9b3
--- /dev/null
+++ b/wallust/.config/wallust/templates/vicinae-dark.toml
@@ -0,0 +1,78 @@
+[meta]
+name = "vicinae-wallust-dark"
+description = "Wallust-generated dark theme for Vicinae"
+variant = "dark"
+inherits = "vicinae-dark"
+
+[colors.core]
+accent = "{{color4}}"
+accent_foreground = "{{background}}"
+background = "{{background}}"
+foreground = "{{foreground}}"
+secondary_background = "{{color0}}"
+border = "{{color8}}"
+
+[colors.main_window]
+border = "{{color8}}"
+footer = { background = "colors.core.secondary_background" }
+
+[colors.settings_window]
+border = "{{color8}}"
+
+[colors.accents]
+blue = "{{color4}}"
+green = "{{color2}}"
+magenta = "{{color5}}"
+orange = "{{color1}}"
+red = "{{color1}}"
+yellow = "{{color3}}"
+cyan = "{{color6}}"
+purple = "{{color5}}"
+
+[colors.shortcut]
+border = "colors.core.border"
+
+[colors.text]
+default = "colors.core.foreground"
+muted = "{{color7}}"
+danger = "{{color1}}"
+success = "{{color2}}"
+placeholder = "{{color8}}"
+selection = { background = "{{color4}}", foreground = "{{background}}" }
+
+[colors.text.links]
+default = "{{color3}}"
+visited = "{{color5}}"
+
+[colors.input]
+border = "{{color8}}"
+border_focus = "{{color4}}"
+border_error = "{{color1}}"
+
+[colors.button.primary]
+background = "{{color0}}"
+foreground = "{{foreground}}"
+hover = { background = "{{color8}}" }
+focus = { outline = "colors.core.accent" }
+
+[colors.list.item.hover]
+foreground = "{{foreground}}"
+secondary_foreground = "{{color7}}"
+
+[colors.list.item.selection]
+background = "{{color0}}"
+foreground = "{{foreground}}"
+secondary_background = "{{color0}}"
+secondary_foreground = "{{color7}}"
+
+[colors.grid.item]
+background = "{{color0}}"
+hover = { outline = "{{foreground}}" }
+selection = { outline = "{{foreground}}" }
+
+[colors.scrollbars]
+background = "{{color8}}"
+
+[colors.loading]
+bar = "{{color4}}"
+spinner = "{{foreground}}"
diff --git a/wallust/.config/wallust/templates/vicinae-light.toml b/wallust/.config/wallust/templates/vicinae-light.toml
new file mode 100644
index 0000000..92516f8
--- /dev/null
+++ b/wallust/.config/wallust/templates/vicinae-light.toml
@@ -0,0 +1,78 @@
+[meta]
+name = "vicinae-wallust-light"
+description = "Wallust-generated light theme for Vicinae"
+variant = "light"
+inherits = "vicinae-light"
+
+[colors.core]
+accent = "{{color4}}"
+accent_foreground = "{{foreground}}"
+background = "{{foreground}}"
+foreground = "{{background}}"
+secondary_background = "{{color7}}"
+border = "{{color8}}"
+
+[colors.main_window]
+border = "{{color8}}"
+footer = { background = "colors.core.secondary_background" }
+
+[colors.settings_window]
+border = "{{color8}}"
+
+[colors.accents]
+blue = "{{color4}}"
+green = "{{color2}}"
+magenta = "{{color5}}"
+orange = "{{color1}}"
+red = "{{color1}}"
+yellow = "{{color3}}"
+cyan = "{{color6}}"
+purple = "{{color5}}"
+
+[colors.shortcut]
+border = "colors.core.border"
+
+[colors.text]
+default = "colors.core.foreground"
+muted = "{{color8}}"
+danger = "{{color1}}"
+success = "{{color2}}"
+placeholder = "{{color7}}"
+selection = { background = "{{color4}}", foreground = "{{foreground}}" }
+
+[colors.text.links]
+default = "{{color3}}"
+visited = "{{color5}}"
+
+[colors.input]
+border = "{{color8}}"
+border_focus = "{{color4}}"
+border_error = "{{color1}}"
+
+[colors.button.primary]
+background = "{{color7}}"
+foreground = "{{background}}"
+hover = { background = "{{color8}}" }
+focus = { outline = "colors.core.accent" }
+
+[colors.list.item.hover]
+foreground = "{{background}}"
+secondary_foreground = "{{color8}}"
+
+[colors.list.item.selection]
+background = "{{color7}}"
+foreground = "{{background}}"
+secondary_background = "{{color7}}"
+secondary_foreground = "{{color8}}"
+
+[colors.grid.item]
+background = "{{color7}}"
+hover = { outline = "{{background}}" }
+selection = { outline = "{{background}}" }
+
+[colors.scrollbars]
+background = "{{color8}}"
+
+[colors.loading]
+bar = "{{color4}}"
+spinner = "{{background}}"
diff --git a/wallust/.config/wallust/wallust.toml b/wallust/.config/wallust/wallust.toml
index 995b5f8..c8fdbdb 100644
--- a/wallust/.config/wallust/wallust.toml
+++ b/wallust/.config/wallust/wallust.toml
@@ -2,3 +2,9 @@ backend = "fastresize"
[templates]
foottheme = { template = "foot-colors-custom.ini", target = "~/.cache/wallust/foot-theme.ini" }
+vicinae_dark = { template = "vicinae-dark.toml", target = "~/.cache/wallust/vicinae-dark.toml" }
+vicinae_light = { template = "vicinae-light.toml", target = "~/.cache/wallust/vicinae-light.toml" }
+
+[hooks]
+strip_foot_hash = "sed -i '/^[^#]/s/#//g' ~/.cache/wallust/foot-theme.ini"
+symlink_vicinae = "mkdir -p ~/.local/share/vicinae/themes && ln -sf ~/.cache/wallust/vicinae-dark.toml ~/.local/share/vicinae/themes/vicinae-wallust-dark.toml && ln -sf ~/.cache/wallust/vicinae-light.toml ~/.local/share/vicinae/themes/vicinae-wallust-light.toml"
diff --git a/waybar/.config/waybar/theme.css b/waybar/.config/waybar/theme.css
index aea3c67..1882049 120000
--- a/waybar/.config/waybar/theme.css
+++ b/waybar/.config/waybar/theme.css
@@ -1 +1 @@
-theme-dark.css \ No newline at end of file
+theme-light.css \ No newline at end of file
diff --git a/zshrc/.zshrc b/zshrc/.zshrc
index 13469c7..589c3a3 100644
--- a/zshrc/.zshrc
+++ b/zshrc/.zshrc
@@ -1,121 +1,25 @@
-# If you come from bash you might have to change your $PATH.
-# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
-
-# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
-
-# Set name of the theme to load --- if set to "random", it will
-# load a random theme each time Oh My Zsh is loaded, in which case,
-# to know which specific one was loaded, run: echo $RANDOM_THEME
-# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME=""
-
-# Set list of themes to pick from when loading at random
-# Setting this variable when ZSH_THEME=random will cause zsh to load
-# a theme from this variable instead of looking in $ZSH/themes/
-# If set to an empty array, this variable will have no effect.
-# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
-
-# Uncomment the following line to use case-sensitive completion.
-# CASE_SENSITIVE="true"
-
-# Uncomment the following line to use hyphen-insensitive completion.
-# Case-sensitive completion must be off. _ and - will be interchangeable.
-# HYPHEN_INSENSITIVE="true"
-
-# Uncomment one of the following lines to change the auto-update behavior
-# zstyle ':omz:update' mode disabled # disable automatic updates
-# zstyle ':omz:update' mode auto # update automatically without asking
-# zstyle ':omz:update' mode reminder # just remind me to update when it's time
-
-# Uncomment the following line to change how often to auto-update (in days).
-# zstyle ':omz:update' frequency 13
-
-# Uncomment the following line if pasting URLs and other text is messed up.
-# DISABLE_MAGIC_FUNCTIONS="true"
-
-# Uncomment the following line to disable colors in ls.
-# DISABLE_LS_COLORS="true"
-
-# Uncomment the following line to disable auto-setting terminal title.
-# DISABLE_AUTO_TITLE="true"
-
-# Uncomment the following line to enable command auto-correction.
-# ENABLE_CORRECTION="true"
-
-# Uncomment the following line to display red dots whilst waiting for completion.
-# You can also set it to another string to have that shown instead of the default red dots.
-# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
-# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
-# COMPLETION_WAITING_DOTS="true"
-
-# Uncomment the following line if you want to disable marking untracked files
-# under VCS as dirty. This makes repository status check for large repositories
-# much, much faster.
-# DISABLE_UNTRACKED_FILES_DIRTY="true"
-
-# Uncomment the following line if you want to change the command execution time
-# stamp shown in the history command output.
-# You can set one of the optional three formats:
-# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
-# or set a custom format using the strftime function format specifications,
-# see 'man strftime' for details.
-# HIST_STAMPS="mm/dd/yyyy"
-
-# Would you like to use another custom folder than $ZSH/custom?
-# ZSH_CUSTOM=/path/to/new-custom-folder
-
-# Which plugins would you like to load?
-# Standard plugins can be found in $ZSH/plugins/
-# Custom plugins may be added to $ZSH_CUSTOM/plugins/
-# Example format: plugins=(rails git textmate ruby lighthouse)
-# Add wisely, as too many plugins slow down shell startup.
+# Plguins
plugins=(
git
fzf
zsh-autosuggestions
- #zsh-autocomplete
zsh-syntax-highlighting
)
-
+# oh-my-zsh setting
source $ZSH/oh-my-zsh.sh
+# Autosuggest config
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
-# User configuration
-
-# export MANPATH="/usr/local/man:$MANPATH"
-
-# You may need to manually set your language environment
-# export LANG=en_US.UTF-8
-
-# Preferred editor for local and remote sessions
-# if [[ -n $SSH_CONNECTION ]]; then
-# export EDITOR='vim'
-# else
-# export EDITOR='nvim'
-# fi
-
-# Compilation flags
-# export ARCHFLAGS="-arch $(uname -m)"
-
-# Set personal aliases, overriding those provided by Oh My Zsh libs,
-# plugins, and themes. Aliases can be placed here, though Oh My Zsh
-# users are encouraged to define aliases within a top-level file in
-# the $ZSH_CUSTOM folder, with .zsh extension. Examples:
-# - $ZSH_CUSTOM/aliases.zsh
-# - $ZSH_CUSTOM/macos.zsh
-# For a full list of active aliases, run `alias`.
-#
-# Example aliases
-# alias zshconfig="mate ~/.zshrc"
-# alias ohmyzsh="mate ~/.oh-my-zsh"
+# Aliases
+alias open='xdg-open'
alias ls="eza -lha --icons"
alias ll="eza -lh --icons"
alias la="eza -lha --icons"
alias tree="eza --tree --icons"
-# In your shell startup file
+# Theme
wallust() {
command wallust run "$@"
- # Regenerate btop theme after wallust runs
cat > ~/.config/btop/themes/wallust.theme << EOF
main_bg="#$(grep -m1 '^color0' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')"
main_fg="#$(grep -m1 '^color15' ~/.cache/wallust/colors.sh | grep -oE '#[0-9a-fA-F]{6}')"