feat: new theming

This commit is contained in:
2025-06-30 22:28:56 +02:00
parent 023f608bec
commit f76d84ce7e
11 changed files with 283 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
#? Config file for btop v. 1.4.2 #? Config file for btop v. 1.4.3
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
@@ -57,7 +57,7 @@ update_ms = 2000
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy" proc_sorting = "memory"
#* Reverse sorting order, True or False. #* Reverse sorting order, True or False.
proc_reversed = False proc_reversed = False

View File

@@ -63,3 +63,13 @@ alias hxd "hx ~/.files/"
alias hxc "hx ~/code/" alias hxc "hx ~/code/"
alias vim "nvim" alias vim "nvim"
alias vi "nvim" alias vi "nvim"
# pnpm
set -gx PNPM_HOME "/home/mike/.local/share/pnpm"
if not string match -q -- $PNPM_HOME $PATH
set -gx PATH "$PNPM_HOME" $PATH
end
# pnpm end
# Created by `pipx` on 2025-06-04 15:36:28
set PATH $PATH /home/mike/.local/bin

View File

@@ -4,10 +4,10 @@ gtk-icon-theme-name=Papirus-Dark
gtk-font-name=Cantarell 11 gtk-font-name=Cantarell 11
gtk-cursor-theme-name=elementary gtk-cursor-theme-name=elementary
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1 gtk-button-images=0
gtk-menu-images=1 gtk-menu-images=0
gtk-enable-event-sounds=1 gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0 gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1 gtk-xft-antialias=1

View File

@@ -1,2 +1,7 @@
[Settings] [Settings]
gtk-theme-name=Rosepine-Dark
gtk-icon-theme-name=Papirus-Dark
gtk-font-name=Cantarell 11
gtk-cursor-theme-name=elementary
gtk-cursor-theme-size=24
gtk-application-prefer-dark-theme=1 gtk-application-prefer-dark-theme=1

View File

@@ -1,9 +1,78 @@
theme = "gruvbox_dark_soft" theme = "rose_pine"
[editor]
mouse = true
auto-save = true
bufferline = "always"
cursorline = true
rulers = [80, 120]
true-color = true
end-of-line-diagnostics = "hint"
[editor.inline-diagnostics]
cursor-line = "error"
other-lines = "disable"
[editor.cursor-shape] [editor.cursor-shape]
insert = "bar" insert = "bar"
normal = "block" normal = "block"
select = "underline" select = "underline"
[editor.soft-wrap]
enable = true
wrap-indicator = "↩ "
[editor.whitespace.render]
space = "all"
tab = "all"
newline = "none"
[editor.whitespace.characters]
space = " "
nbsp = "⍽"
tab = "→"
newline = "⏎"
tabpad = "·"
[editor.indent-guides]
character = "╎"
render = true
skip-levels = 1
[editor.file-picker] [editor.file-picker]
hidden = false hidden = false
[editor.lsp]
auto-signature-help = false
display-messages = true
[editor.statusline]
left = [ "mode", "spinner", "diagnostics" ]
center = [ "file-name", "separator", "version-control", "separator" ]
right = [ "position", "position-percentage", "total-line-numbers" ]
separator = "│"
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"
[keys.normal]
"A-," = "goto_previous_buffer"
"A-." = "goto_next_buffer"
"A-w" = ":buffer-close"
"A-/" = "repeat_last_motion"
"A-x" = "extend_to_line_bounds"
"X" = "select_line_above"
";" = "command_mode"
"C-tab" = ":buffer-previous"
"C-S-tab" = ":buffer-next"
"C-r" = ":config-reload"
space.c = "toggle_comments"
p = "paste_clipboard_before"
y = "yank_main_selection_to_clipboard"
[keys.select]
"A-x" = "extend_to_line_bounds"
"X" = "select_line_above"

View File

@@ -6,9 +6,11 @@ image/png=feh.desktop;
text/html=vim.desktop; text/html=vim.desktop;
application/pdf=okularApplication_pdf.desktop; application/pdf=okularApplication_pdf.desktop;
video/x-matroska=mpv.desktop; video/x-matroska=mpv.desktop;
x-scheme-handler/mailto=userapp-Evolution-ZIODU2.desktop;userapp-Evolution-RB4MU2.desktop; x-scheme-handler/mailto=userapp-Thunderbird-EIOL62.desktop;userapp-Evolution-ZIODU2.desktop;userapp-Evolution-RB4MU2.desktop;
x-scheme-handler/tonsite=org.telegram.desktop.desktop; x-scheme-handler/tonsite=org.telegram.desktop.desktop;
text/markdown=dev.zed.Zed.desktop; text/markdown=dev.zed.Zed.desktop;
x-scheme-handler/mid=userapp-Thunderbird-EIOL62.desktop;
text/plain=dev.zed.Zed.desktop;
[Default Applications] [Default Applications]
application/pdf=xreader.desktop; application/pdf=xreader.desktop;
@@ -36,7 +38,7 @@ x-scheme-handler/spice=org.remmina.Remmina.desktop;
x-scheme-handler/terminal=kitty.desktop; x-scheme-handler/terminal=kitty.desktop;
x-scheme-handler/vnc=org.remmina.Remmina.desktop; x-scheme-handler/vnc=org.remmina.Remmina.desktop;
video/x-matroska=mpv.desktop video/x-matroska=mpv.desktop
x-scheme-handler/mailto=userapp-Evolution-RB4MU2.desktop x-scheme-handler/mailto=userapp-Thunderbird-EIOL62.desktop
x-scheme-handler/tonsite=org.telegram.desktop.desktop x-scheme-handler/tonsite=org.telegram.desktop.desktop
x-scheme-handler/mailspring=Mailspring.desktop x-scheme-handler/mailspring=Mailspring.desktop
text/markdown=dev.zed.Zed.desktop text/markdown=dev.zed.Zed.desktop
@@ -46,3 +48,5 @@ x-scheme-handler/about=brave-browser.desktop
x-scheme-handler/unknown=brave-browser.desktop x-scheme-handler/unknown=brave-browser.desktop
x-scheme-handler/discord=equibop.desktop x-scheme-handler/discord=equibop.desktop
application/uproject=com.epicgames.UnrealEngineEditor.desktop application/uproject=com.epicgames.UnrealEngineEditor.desktop
message/rfc822=userapp-Thunderbird-EIOL62.desktop
x-scheme-handler/mid=userapp-Thunderbird-EIOL62.desktop

View File

@@ -3,7 +3,7 @@ color_scheme_path=/usr/share/qt5ct/colors/airy.conf
custom_palette=false custom_palette=false
icon_theme=Papirus-Light icon_theme=Papirus-Light
standard_dialogs=default standard_dialogs=default
style=kvantum-dark style=rose-pine
[Fonts] [Fonts]
fixed="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular" fixed="Noto Sans,10,-1,5,50,0,0,0,0,0,Regular"
@@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\x1h\0\0\t\xd5\0\0\x6\xb3\0\0\0\0\0\0\x1h\0\0\t\xd5\0\0\x6\xb3\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\x1h\0\0\t\xd5\0\0\x6\xb3) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\r\x1\0\0\0\x34\0\0\x11`\0\0\x2\xda\0\0\r\x2\0\0\0\x35\0\0\x11_\0\0\x2\xd9\0\0\0\0\0\0\0\0\n\0\0\0\r\x2\0\0\0\x35\0\0\x11_\0\0\x2\xd9)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

View File

@@ -28,7 +28,7 @@ config.keys = {
local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').main local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').main
-- This is where you actually apply your config choices -- This is where you actually apply your config choices
-- config.color_scheme = 'batman' -- config.color_scheme = "rose-pine"
-- the font is named 'Source Code Pro ExtraLight', but I actually use the DemiBold weight. looks awesome -- the font is named 'Source Code Pro ExtraLight', but I actually use the DemiBold weight. looks awesome
config.font = wezterm.font('Hack Nerd Font') config.font = wezterm.font('Hack Nerd Font')
config.colors = theme.colors() config.colors = theme.colors()

89
.local/bin/dark Executable file
View File

@@ -0,0 +1,89 @@
#!/bin/bash
# Set theme environment variable
export THEME="dark"
# Update GTK theme using gsettings (more reliable)
if command -v gsettings >/dev/null 2>&1; then
gsettings set org.gnome.desktop.interface gtk-theme "Rosepine-Dark"
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark"
fi
# Update GTK configuration files directly
mkdir -p "$HOME/.config/gtk-3.0" "$HOME/.config/gtk-4.0"
# GTK 3 settings
cat > "$HOME/.config/gtk-3.0/settings.ini" << EOF
[Settings]
gtk-application-prefer-dark-theme=true
gtk-theme-name=Rosepine-Dark
gtk-icon-theme-name=Papirus-Dark
EOF
# GTK 4 settings
cat > "$HOME/.config/gtk-4.0/settings.ini" << EOF
[Settings]
gtk-application-prefer-dark-theme=true
gtk-theme-name=Rosepine-Dark
gtk-icon-theme-name=Papirus-Dark
EOF
# GTK 2 settings
cat > "$HOME/.gtkrc-2.0" << EOF
gtk-theme-name="Rosepine-Dark"
gtk-icon-theme-name="Papirus-Dark"
EOF
# Update Qt6 theme using qt6ct
if command -v qt6ct >/dev/null 2>&1; then
export QT_QPA_PLATFORMTHEME=qt6ct
mkdir -p "$HOME/.config/qt6ct"
if [ -f "$HOME/.config/qt6ct/qt6ct.conf" ]; then
sed -i 's/^style=.*/style=rose-pine/' "$HOME/.config/qt6ct/qt6ct.conf"
sed -i 's/^color_scheme=.*/color_scheme=rose-pine/' "$HOME/.config/qt6ct/qt6ct.conf"
fi
fi
# Update Qt5 theme using qt5ct
if command -v qt5ct >/dev/null 2>&1; then
export QT_QPA_PLATFORMTHEME=qt5ct
mkdir -p "$HOME/.config/qt5ct"
if [ -f "$HOME/.config/qt5ct/qt5ct.conf" ]; then
sed -i 's/^style=.*/style=rose-pine/' "$HOME/.config/qt5ct/qt5ct.conf"
sed -i 's/^color_scheme=.*/color_scheme=rose-pine/' "$HOME/.config/qt5ct/qt5ct.conf"
fi
fi
# Update Rofi theme
if [ -f "$HOME/.config/rofi/config.rasi" ]; then
sed -i 's/@theme ".*"/@theme "rose-pine"/' "$HOME/.config/rofi/config.rasi"
elif [ -f "$HOME/.config/rofi/config" ]; then
sed -i 's/rofi.theme:.*/rofi.theme: rose-pine/' "$HOME/.config/rofi/config"
fi
# Update Wezterm theme
if [ -f "$HOME/.config/wezterm/wezterm.lua" ]; then
sed -i 's/config.color_scheme = .*/config.color_scheme = "rose-pine"/' "$HOME/.config/wezterm/wezterm.lua"
elif [ -f "$HOME/.wezterm.lua" ]; then
sed -i 's/config.color_scheme = .*/config.color_scheme = "rose-pine"/' "$HOME/.wezterm.lua"
fi
# Set environment variables for current session
export GTK_THEME="Rosepine-Dark:dark"
# Reload applications that support theme changes
pkill -USR1 wezterm >/dev/null 2>&1 || true
# Try to reload GTK applications via xsettingsd if available
if command -v xsettingsd >/dev/null 2>&1; then
pkill -HUP xsettingsd >/dev/null 2>&1 || true
fi
# Restart GTK settings daemon if using GNOME
if pgrep -x "gnome-session" >/dev/null; then
dbus-send --session --type=method_call --dest=org.gnome.SettingsDaemon.Color /org/gnome/SettingsDaemon/Color org.gnome.SettingsDaemon.Color.ApplySettings >/dev/null 2>&1 || true
fi
# Notify about theme change
echo "Switched to Rose Pine (dark) theme"

90
.local/bin/light Executable file
View File

@@ -0,0 +1,90 @@
#!/bin/bash
# Set theme environment variable
export THEME="light"
# Update GTK theme using gsettings (more reliable)
if command -v gsettings >/dev/null 2>&1; then
gsettings set org.gnome.desktop.interface gtk-theme "Rosepine-Light"
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
gsettings set org.gnome.desktop.interface icon-theme "Papirus-Light"
fi
# Update GTK configuration files directly
mkdir -p "$HOME/.config/gtk-3.0" "$HOME/.config/gtk-4.0"
# GTK 3 settings
cat > "$HOME/.config/gtk-3.0/settings.ini" << EOF
[Settings]
gtk-application-prefer-dark-theme=false
gtk-theme-name=Rosepine-Light
gtk-icon-theme-name=Papirus-Light
EOF
# GTK 4 settings
cat > "$HOME/.config/gtk-4.0/settings.ini" << EOF
[Settings]
gtk-application-prefer-dark-theme=false
gtk-theme-name=Rosepine-Light
gtk-icon-theme-name=Papirus-Light
EOF
# GTK 2 settings
cat > "$HOME/.gtkrc-2.0" << EOF
gtk-theme-name="Rosepine-Light"
gtk-icon-theme-name="Papirus-Light"
EOF
# Update Qt6 theme using qt6ct
if command -v qt6ct >/dev/null 2>&1; then
export QT_QPA_PLATFORMTHEME=qt6ct
mkdir -p "$HOME/.config/qt6ct"
if [ -f "$HOME/.config/qt6ct/qt6ct.conf" ]; then
sed -i 's/^style=.*/style=rose-pine-dawn/' "$HOME/.config/qt6ct/qt6ct.conf"
sed -i 's/^color_scheme=.*/color_scheme=rose-pine-dawn/' "$HOME/.config/qt6ct/qt6ct.conf"
fi
fi
# Update Qt5 theme using qt5ct
if command -v qt5ct >/dev/null 2>&1; then
export QT_QPA_PLATFORMTHEME=qt5ct
mkdir -p "$HOME/.config/qt5ct"
if [ -f "$HOME/.config/qt5ct/qt5ct.conf" ]; then
sed -i 's/^style=.*/style=rose-pine-dawn/' "$HOME/.config/qt5ct/qt5ct.conf"
sed -i 's/^color_scheme=.*/color_scheme=rose-pine-dawn/' "$HOME/.config/qt5ct/qt5ct.conf"
fi
fi
# Update Rofi theme
if [ -f "$HOME/.config/rofi/config.rasi" ]; then
sed -i 's/@theme ".*"/@theme "rose-pine-dawn"/' "$HOME/.config/rofi/config.rasi"
elif [ -f "$HOME/.config/rofi/config" ]; then
sed -i 's/rofi.theme:.*/rofi.theme: rose-pine-dawn/' "$HOME/.config/rofi/config"
fi
# Update Wezterm theme
if [ -f "$HOME/.config/wezterm/wezterm.lua" ]; then
sed -i 's/config.color_scheme = .*/config.color_scheme = "rose-pine-dawn"/' "$HOME/.config/wezterm/wezterm.lua"
elif [ -f "$HOME/.wezterm.lua" ]; then
sed -i 's/config.color_scheme = .*/config.color_scheme = "rose-pine-dawn"/' "$HOME/.wezterm.lua"
fi
# Set environment variables for current session
export GTK_THEME=""
unset GTK_THEME # Unset to use theme from config files
# Reload applications that support theme changes
pkill -USR1 wezterm >/dev/null 2>&1 || true
# Try to reload GTK applications via xsettingsd if available
if command -v xsettingsd >/dev/null 2>&1; then
pkill -HUP xsettingsd >/dev/null 2>&1 || true
fi
# Restart GTK settings daemon if using GNOME
if pgrep -x "gnome-session" >/dev/null; then
dbus-send --session --type=method_call --dest=org.gnome.SettingsDaemon.Color /org/gnome/SettingsDaemon/Color org.gnome.SettingsDaemon.Color.ApplySettings >/dev/null 2>&1 || true
fi
# Notify about theme change
echo "Switched to Rose Pine Dawn (light) theme"

View File

@@ -66,6 +66,7 @@ setxkbmap pl &
# xset -dpms & # xset -dpms &
# xset s 900 & # xset s 900 &
# Host-specific rules # Host-specific rules
bash $HOME/.config/screenlayout/main.sh &
if [ "$(hostname)" = "zion" ]; then if [ "$(hostname)" = "zion" ]; then
# Zion rules (Desktop) # Zion rules (Desktop)
# screenlayout setup for odin # screenlayout setup for odin
@@ -149,6 +150,10 @@ flameshot &
## Caffeine-ng ## Caffeine-ng
caffeine >/dev/null 2>&1 & caffeine >/dev/null 2>&1 &
redshift &
export THEME=dark
## Ulauncher ## Ulauncher
# ulauncher --hide-window --no-window-shadow >/dev/null 2>&1 & # ulauncher --hide-window --no-window-shadow >/dev/null 2>&1 &