forge
Explore
Log in

Don't you dare go Hollow

Wallust-based GTK and QT dynamic theming

Browse files at this commit

15bab3fbe8182051be00c893c628c8555a753e0bAhmet Kaan GümüşParent: 605b23b
  • feat
    • wallust-based GTK and QT dynamic theming
Show full message
feat: wallust-based GTK and QT dynamic theming
.config/fish/config.fishmodified+7 -0
@@ -14,3 +14,10 @@ zoxide init fish | source
14 14
15 # opencode15 # opencode
16 fish_add_path /home/tahinli/.opencode/bin16 fish_add_path /home/tahinli/.opencode/bin
17+
18+# surrealdb
19+fish_add_path /home/tahinli/.surrealdb
20+
21+# bun
22+set --export BUN_INSTALL "$HOME/.bun"
23+set --export PATH $BUN_INSTALL/bin $PATH
.config/fish/fish_variablesmodified+1 -1
@@ -40,4 +40,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dE6B450
40 SETUVAR fish_pager_color_selected_completion:\x1d40 SETUVAR fish_pager_color_selected_completion:\x1d
41 SETUVAR fish_pager_color_selected_description:\x1d41 SETUVAR fish_pager_color_selected_description:\x1d
42 SETUVAR fish_pager_color_selected_prefix:\x1d42 SETUVAR fish_pager_color_selected_prefix:\x1d
43-SETUVAR fish_user_paths:/home/tahinli/\x2eopencode/bin43+SETUVAR fish_user_paths:/home/tahinli/\x2esurrealdb\x1e/home/tahinli/\x2eopencode/bin
.config/gtk-3.0/settings.iniadded+18 -0
@@ -0,0 +1,18 @@
1+[Settings]
2+gtk-theme-name=Adwaita-dark
3+gtk-icon-theme-name=Papirus-Dark
4+gtk-font-name=Adwaita Sans 11
5+gtk-cursor-theme-name=default
6+gtk-cursor-theme-size=24
7+gtk-toolbar-style=GTK_TOOLBAR_ICONS
8+gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
9+gtk-button-images=1
10+gtk-menu-images=1
11+gtk-enable-event-sounds=1
12+gtk-enable-input-feedback-sounds=0
13+gtk-xft-antialias=1
14+gtk-xft-hinting=1
15+gtk-xft-hintstyle=hintslight
16+gtk-xft-rgba=rgb
17+gtk-application-prefer-dark-theme=1
18+gtk-decoration-layout=:
.config/gtk-4.0/settings.iniadded+8 -0
@@ -0,0 +1,8 @@
1+[Settings]
2+gtk-theme-name=Adwaita-dark
3+gtk-icon-theme-name=Papirus-Dark
4+gtk-font-name=Adwaita Sans 11
5+gtk-cursor-theme-name=default
6+gtk-cursor-theme-size=24
7+gtk-application-prefer-dark-theme=1
8+gtk-decoration-layout=:
.config/hypr/hyprlock.confmodified+1 -1
@@ -3,7 +3,7 @@
3 3
4 # Background image4 # Background image
5 background {5 background {
6- path = ~/Pictures/ryunosuke-kikuno-VXp-9HwN1eg-unsplash.jpg6+ path = ~/Pictures/Wallpapers/ryunosuke-kikuno-VXp-9HwN1eg-unsplash.jpg
7 }7 }
8 8
9 # Date label - displays current date in center9 # Date label - displays current date in center
.config/hypr/hyprpaper.confmodified+1 -1
@@ -2,6 +2,6 @@ splash = false
2 2
3 wallpaper {3 wallpaper {
4 monitor =4 monitor =
5- path = /home/tahinli/Pictures/Wallpapers/josh-hild-RR7j6oX_3lk-unsplash.jpg5+ path = /home/tahinli/Pictures/Wallpapers/nikhil-kumar-JdPHvI7VF0o-unsplash.jpg
6 fit_mode = cover6 fit_mode = cover
7 }7 }
.config/mimeapps.listmodified+1 -0
@@ -57,6 +57,7 @@ text/x-rust=com.system76.CosmicEdit.desktop
57 application/x-shellscript=com.system76.CosmicEdit.desktop57 application/x-shellscript=com.system76.CosmicEdit.desktop
58 application/x-python=com.system76.CosmicEdit.desktop58 application/x-python=com.system76.CosmicEdit.desktop
59 x-scheme-handler/claude-cli=claude-code-url-handler.desktop59 x-scheme-handler/claude-cli=claude-code-url-handler.desktop
60+x-scheme-handler/surrealist=surrealist.desktop
60 61
61 [Added Associations]62 [Added Associations]
62 video/mp4=org.gnome.Showtime.desktop;63 video/mp4=org.gnome.Showtime.desktop;
.config/qt5ct/qt5ct.confadded+31 -0
@@ -0,0 +1,31 @@
1+[Appearance]
2+color_scheme_path=/home/tahinli/.config/qt5ct/colors/wallust.conf
3+custom_palette=true
4+standard_dialogs=gtk3
5+style=Fusion
6+
7+[Fonts]
8+fixed="Noto Sans Arabic,12,-1,5,50,0,0,0,0,0"
9+general="Noto Sans Arabic,12,-1,5,50,0,0,0,0,0"
10+
11+[Interface]
12+activate_item_on_single_click=1
13+buttonbox_layout=0
14+cursor_flash_time=1000
15+dialog_buttons_have_icons=1
16+double_click_interval=400
17+gui_effects=@Invalid()
18+keyboard_scheme=2
19+menus_have_icons=true
20+show_shortcuts_in_context_menus=true
21+stylesheets=@Invalid()
22+toolbutton_style=4
23+underline_shortcut=1
24+wheel_scroll_lines=3
25+
26+[SettingsWindow]
27+geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\r\xae\0\0\x3\xfd\0\0\n\0\0\0\0\0\0\0\r\xb5\0\0\x4\x1\0\0\0\0\x2\0\0\0\a\x80\0\0\n\0\0\0\0\0\0\0\r\xae\0\0\x3\xfd)
28+
29+[Troubleshooting]
30+force_raster_widgets=1
31+ignored_applications=@Invalid()
.config/qt6ct/qt6ct.confmodified+2 -2
@@ -1,5 +1,5 @@
1 [Appearance]1 [Appearance]
2-color_scheme_path=/usr/share/qt6ct/colors/waves.conf2+color_scheme_path=/home/tahinli/.config/qt6ct/colors/wallust.conf
3 custom_palette=true3 custom_palette=true
4 standard_dialogs=default4 standard_dialogs=default
5 style=Fusion5 style=Fusion
@@ -24,7 +24,7 @@ underline_shortcut=1
24 wheel_scroll_lines=324 wheel_scroll_lines=3
25 25
26 [SettingsWindow]26 [SettingsWindow]
27-geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\ag\0\0\x3\xfd\0\0\0\0\0\0\0\0\0\0\ag\0\0\x3\xfd\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\ag\0\0\x3\xfd)27+geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\r\xae\0\0\x3\xfd\0\0\n\0\0\0\0\0\0\0\r\xae\0\0\x3\xfd\0\0\0\0\x2\0\0\0\a\x80\0\0\n\0\0\0\0\0\0\0\r\xae\0\0\x3\xfd)
28 28
29 [Troubleshooting]29 [Troubleshooting]
30 force_raster_widgets=130 force_raster_widgets=1
.config/scripts/hyprland/wallpaper_picker.shmodified+2 -2
@@ -60,12 +60,12 @@ wallpaper {
60 EOF60 EOF
61 61
62 pkill hyprpaper62 pkill hyprpaper
63-killall waybar 2>/dev/null
64 63
65 # Run hyprpaper and wallust in parallel64 # Run hyprpaper and wallust in parallel
66 hyprpaper &disown65 hyprpaper &disown
67-wallust run -q "$WALLPAPER" &66+wallust run -qs "$WALLPAPER" &
68 wait67 wait
69 68
69+killall waybar 2>/dev/null
70 waybar &disown70 waybar &disown
71 notify-send "Wallpaper Picker" "Applied: $SELECTED"71 notify-send "Wallpaper Picker" "Applied: $SELECTED"
.config/scripts/shared/qt_colors.shadded+51 -0
@@ -0,0 +1,51 @@
1+#!/bin/bash
2+# Compute mixed surface colors for QT to match GTK mix(background, color1, ratio)
3+
4+for conf in ~/.config/qt5ct/colors/wallust.conf ~/.config/qt6ct/colors/wallust.conf; do
5+ [ -f "$conf" ] || continue
6+
7+ # Convert #RRGGBB to #ffRRGGBB
8+ sed -i 's/#\([0-9A-Fa-f]\{6\}\)/#ff\1/g' "$conf"
9+
10+ # Extract background (pos 4) and color1 (pos 1) from active_colors
11+ IFS=',' read -ra COLS <<< "$(grep '^active_colors=' "$conf" | cut -d'=' -f2)"
12+ BG="${COLS[4]// /}" # Dark role = background
13+ C1="${COLS[1]// /}" # Button role = color1
14+
15+ BG="${BG/#\#ff/}"
16+ C1="${C1/#\#ff/}"
17+
18+ # Compute mix(bg, c1, ratio) for surface colors
19+ SURFACE=$(python3 -c "
20+bg='$BG'; c1='$C1'
21+for f in [0.35, 0.45]:
22+ r=int(int(bg[0:2],16)*(1-f)+int(c1[0:2],16)*f)
23+ g=int(int(bg[2:4],16)*(1-f)+int(c1[2:4],16)*f)
24+ b=int(int(bg[4:6],16)*(1-f)+int(c1[4:6],16)*f)
25+ print(f'{r:02X}{g:02X}{b:02X}')
26+")
27+ MIXED=$(echo "$SURFACE" | head -1)
28+ MIXED_BTN=$(echo "$SURFACE" | tail -1)
29+
30+ # Replace surface roles: Base(9), Window(10), AlternateBase(16), ToolTipBase(17) with MIXED
31+ # Replace Button(1) with MIXED_BTN
32+ python3 -c "
33+import re
34+mixed, mixed_btn = '#ff$MIXED', '#ff$MIXED_BTN'
35+c1 = '#ff$C1'
36+with open('$conf') as f: lines = f.readlines()
37+out = []
38+for line in lines:
39+ if '=' not in line or line.startswith('['):
40+ out.append(line); continue
41+ key, vals = line.strip().split('=', 1)
42+ cols = [v.strip() for v in vals.split(',')]
43+ for i in [9, 10, 16, 17]:
44+ if i < len(cols) and cols[i] == c1:
45+ cols[i] = mixed
46+ if 1 < len(cols) and cols[1] == c1:
47+ cols[1] = mixed_btn
48+ out.append(key + '=' + ', '.join(cols) + '\n')
49+with open('$conf', 'w') as f: f.writelines(out)
50+"
51+done
.config/scripts/shared/song_detail.shmodified+121 -133
@@ -1,142 +1,130 @@
1 #!/bin/bash1 #!/bin/bash
2 # Get current playing song from playerctl with sticky player preference2 # Get current playing song from playerctl with sticky player preference
3 3
4-if command -v playerctl &> /dev/null; then4+if ! command -v playerctl &> /dev/null; then
5- # Check if any player is running5+ echo ""
6- if playerctl status &> /dev/null; then6+ exit 0
7- player_list=$(playerctl -l 2>/dev/null)7+fi
8-8+
9- if [[ -z "$player_list" ]]; then9+player_list=$(playerctl -l 2>/dev/null)
10- echo ""10+if [[ -z "$player_list" ]]; then
11- exit 011+ echo ""
12- fi12+ exit 0
13-13+fi
14- PREFERRED_FILE="/tmp/playerctl_preferred_player"14+
15-15+PREFERRED_FILE="/tmp/playerctl_preferred_player"
16- # Find first Playing and first Paused player16+
17- best_playing=""17+# Find first Playing and first Paused player
18- best_paused=""18+best_playing=""
19- while IFS= read -r player; do19+best_paused=""
20- player_status=$(playerctl -p "$player" status 2>/dev/null)20+while IFS= read -r player; do
21- if [[ "$player_status" == "Playing" && -z "$best_playing" ]]; then21+ player_status=$(playerctl -p "$player" status 2>/dev/null)
22- best_playing="$player"22+ if [[ "$player_status" == "Playing" && -z "$best_playing" ]]; then
23- elif [[ "$player_status" == "Paused" && -z "$best_paused" ]]; then23+ best_playing="$player"
24- best_paused="$player"24+ elif [[ "$player_status" == "Paused" && -z "$best_paused" ]]; then
25- fi25+ best_paused="$player"
26- done <<< "$player_list"26+ fi
27-27+done <<< "$player_list"
28- # Sticky player logic: prefer current player to avoid flickering28+
29+# Sticky player logic: prefer current player to avoid flickering
30+preferred=""
31+if [[ -f "$PREFERRED_FILE" ]]; then
32+ preferred=$(cat "$PREFERRED_FILE")
33+ pref_status=$(playerctl -p "$preferred" status 2>/dev/null)
34+ if [[ "$pref_status" != "Playing" && "$pref_status" != "Paused" ]]; then
29 preferred=""35 preferred=""
30- if [[ -f "$PREFERRED_FILE" ]]; then36+ pref_status=""
31- preferred=$(cat "$PREFERRED_FILE")37+ fi
32- pref_status=$(playerctl -p "$preferred" status 2>/dev/null)38+fi
33- # Drop preferred if it's gone or stopped39+
34- if [[ "$pref_status" != "Playing" && "$pref_status" != "Paused" ]]; then40+# Choose player:
35- preferred=""41+# - If preferred is still Playing, keep it
36- fi42+# - If preferred is Paused but something else is Playing, switch
37- fi43+# - Otherwise fall back to best available
38-44+chosen=""
39- # Choose player:45+if [[ -n "$preferred" ]]; then
40- # - If preferred is still Playing, keep it (prevents flickering)46+ if [[ "$pref_status" == "Playing" ]]; then
41- # - If preferred is Paused but something else is Playing, switch47+ chosen="$preferred"
42- # - Otherwise fall back to best available48+ elif [[ -n "$best_playing" ]]; then
43- chosen=""49+ chosen="$best_playing"
44- if [[ -n "$preferred" ]]; then
45- pref_status=$(playerctl -p "$preferred" status 2>/dev/null)
46- if [[ "$pref_status" == "Playing" ]]; then
47- chosen="$preferred"
48- elif [[ -n "$best_playing" ]]; then
49- chosen="$best_playing"
50- else
51- chosen="$preferred"
52- fi
53- else
54- chosen="${best_playing:-$best_paused}"
55- fi
56-
57- if [[ -z "$chosen" ]]; then
58- echo ""
59- exit 0
60- fi
61-
62- echo "$chosen" > "$PREFERRED_FILE"
63-
64- most_recent_player="$chosen"
65- status=$(playerctl -p "$most_recent_player" status 2>/dev/null)
66-
67- # Exit if media is stopped
68- if [[ "$status" == "Stopped" ]]; then
69- echo ""
70- exit 0
71- fi
72-
73- artist=$(playerctl -p "$most_recent_player" metadata artist 2>/dev/null)
74- title=$(playerctl -p "$most_recent_player" metadata title 2>/dev/null)
75- duration_us=$(playerctl -p "$most_recent_player" metadata mpris:length 2>/dev/null)
76-
77- # Define cache file for paused position
78- POSITION_CACHE="/tmp/playerctl_position_cache_${most_recent_player}"
79-
80- # Set icon based on playback status
81- if [[ "$status" == "Playing" ]]; then
82- icon="▶"
83- else
84- icon="⏸"
85- fi
86-
87- # Convert duration from microseconds to MM:SS format
88- if [[ -n "$duration_us" ]]; then
89- duration_sec=$((duration_us / 1000000))
90- minutes=$((duration_sec / 60))
91- seconds=$((duration_sec % 60))
92- duration=$(printf "%02d:%02d" $minutes $seconds)
93- else
94- duration=""
95- fi
96-
97- # Get current position with caching logic
98- position=""
99- position_us=$(playerctl -p "$most_recent_player" position 2>/dev/null)
100-
101- if [[ "$status" == "Playing" ]]; then
102- # When playing, get live position and cache it
103- if [[ -n "$position_us" ]]; then
104- position_sec=$(printf "%.0f" "$position_us")
105- pos_minutes=$((position_sec / 60))
106- pos_seconds=$((position_sec % 60))
107- position=$(printf "%02d:%02d" $pos_minutes $pos_seconds)
108- # Cache the position for when paused
109- echo "$position" > "$POSITION_CACHE"
110- fi
111- else
112- # When paused, use cached position if available
113- if [[ -f "$POSITION_CACHE" ]]; then
114- position=$(cat "$POSITION_CACHE")
115- fi
116- fi
117-
118- # Escape special characters for waybar markup compatibility
119- artist_escaped="${artist//&/&amp;}"
120- title_escaped="${title//&/&amp;}"
121-
122- if [[ -n "$artist" && -n "$title" && -n "$duration" && -n "$position" ]]; then
123- echo "$icon $artist_escaped - $title_escaped ($position / $duration)"
124- elif [[ -n "$artist" && -n "$title" && -n "$duration" ]]; then
125- echo "$icon $artist_escaped - $title_escaped ($duration)"
126- elif [[ -n "$title" && -n "$duration" && -n "$position" ]]; then
127- echo "$icon $title_escaped ($position / $duration)"
128- elif [[ -n "$title" && -n "$duration" ]]; then
129- echo "$icon $title_escaped ($duration)"
130- elif [[ -n "$artist" && -n "$title" ]]; then
131- echo "$icon $artist_escaped - $title_escaped"
132- elif [[ -n "$title" ]]; then
133- echo "$icon $title_escaped"
134- else
135- echo "$icon Something's Playing"
136- fi
137 else50 else
138- echo ""51+ chosen="$preferred"
139 fi52 fi
140 else53 else
54+ chosen="${best_playing:-$best_paused}"
55+fi
56+
57+if [[ -z "$chosen" ]]; then
58+ echo ""
59+ exit 0
60+fi
61+
62+echo "$chosen" > "$PREFERRED_FILE"
63+
64+# Fetch ALL metadata in a single playerctl call
65+info=$(playerctl -p "$chosen" metadata --format '{{status}} {{artist}} {{title}} {{mpris:length}} {{position}}' 2>/dev/null)
66+
67+if [[ -z "$info" ]]; then
141 echo ""68 echo ""
69+ exit 0
70+fi
71+
72+IFS=$'\t' read -r status artist title duration_us position_us <<< "$info"
73+
74+if [[ "$status" == "Stopped" ]]; then
75+ echo ""
76+ exit 0
77+fi
78+
79+# Set icon based on playback status
80+if [[ "$status" == "Playing" ]]; then
81+ icon="▶"
82+else
83+ icon="⏸"
84+fi
85+
86+# Convert duration from microseconds to MM:SS
87+duration=""
88+if [[ -n "$duration_us" && "$duration_us" -gt 0 ]] 2>/dev/null; then
89+ duration_sec=$((duration_us / 1000000))
90+ minutes=$((duration_sec / 60))
91+ seconds=$((duration_sec % 60))
92+ duration=$(printf "%02d:%02d" $minutes $seconds)
93+fi
94+
95+# Get position with caching for paused state
96+POSITION_CACHE="/tmp/playerctl_position_cache_${chosen}"
97+position=""
98+if [[ "$status" == "Playing" ]]; then
99+ if [[ -n "$position_us" && "$position_us" -gt 0 ]] 2>/dev/null; then
100+ position_sec=$((position_us / 1000000))
101+ pos_minutes=$((position_sec / 60))
102+ pos_seconds=$((position_sec % 60))
103+ position=$(printf "%02d:%02d" $pos_minutes $pos_seconds)
104+ echo "$position" > "$POSITION_CACHE"
105+ fi
106+else
107+ if [[ -f "$POSITION_CACHE" ]]; then
108+ position=$(cat "$POSITION_CACHE")
109+ fi
110+fi
111+
112+# Escape ampersands for waybar markup
113+artist="${artist//&/&amp;}"
114+title="${title//&/&amp;}"
115+
116+if [[ -n "$artist" && -n "$title" && -n "$duration" && -n "$position" ]]; then
117+ echo "$icon $artist - $title ($position / $duration)"
118+elif [[ -n "$artist" && -n "$title" && -n "$duration" ]]; then
119+ echo "$icon $artist - $title ($duration)"
120+elif [[ -n "$title" && -n "$duration" && -n "$position" ]]; then
121+ echo "$icon $title ($position / $duration)"
122+elif [[ -n "$title" && -n "$duration" ]]; then
123+ echo "$icon $title ($duration)"
124+elif [[ -n "$artist" && -n "$title" ]]; then
125+ echo "$icon $artist - $title"
126+elif [[ -n "$title" ]]; then
127+ echo "$icon $title"
128+else
129+ echo "$icon Something's Playing"
142 fi130 fi
.config/scripts/shared/wallust_run.shdeleted+0 -35
@@ -1,35 +0,0 @@
1-#!/bin/bash
2-# Runs wallust and adjusts waybar transparency based on wallpaper top strip brightness
3-
4-if [ -z "$1" ]; then
5- echo "Usage: wallust_run.sh <wallpaper_path>"
6- exit 1
7-fi
8-
9-# Run wallust to generate colors
10-wallust run "$1"
11-
12-# Read the generated background color from style.css
13-BG=$(grep -oP 'alpha\(#\K[0-9A-Fa-f]{6}' ~/.config/waybar/style.css | head -1)
14-
15-if [ -z "$BG" ]; then
16- exit 0
17-fi
18-
19-# Analyze the TOP STRIP of the wallpaper (top 5%) where waybar actually sits
20-# Crop top strip, scale to 1x1 pixel, get average brightness
21-TOP_BRIGHTNESS=$(magick "$1" -gravity North -crop 100%x5%+0+0 -resize 1x1! -format "%[fx:round((0.299*r + 0.587*g + 0.114*b) * 255)]" info:)
22-
23-# Map brightness to alpha:
24-# Dark top area (0) -> low alpha (0.2) = more transparent
25-# Light top area (255) -> high alpha (0.75) = more opaque, keep text readable
26-ALPHA=$(awk "BEGIN { printf \"%.2f\", 0.45 + ($TOP_BRIGHTNESS / 255.0) * 0.45 }")
27-
28-# Replace the alpha value in style.css
29-sed -i "s/alpha(#${BG}, [0-9.]*)/alpha(#${BG}, ${ALPHA})/" ~/.config/waybar/style.css
30-
31-# Restart waybar
32-killall waybar 2>/dev/null
33-waybar &disown
34-
35-echo "Top strip brightness: ${TOP_BRIGHTNESS}/255 | Alpha: ${ALPHA}"
.config/wallust/templates/gtk3.cssadded+94 -0
@@ -0,0 +1,94 @@
1+/* Generated by wallust */
2+
3+* {
4+ color: {{foreground}};
5+}
6+
7+.background,
8+window,
9+dialog,
10+paned,
11+filechooser,
12+placessidebar,
13+placessidebar row,
14+list,
15+list row,
16+.view,
17+treeview.view,
18+row,
19+cell,
20+frame,
21+scrolledwindow {
22+ background-color: mix({{background}}, {{color1}}, 0.35);
23+ color: {{foreground}};
24+}
25+
26+treeview.view:selected,
27+.view:selected,
28+row:selected,
29+list row:selected,
30+placessidebar row:selected {
31+ background-color: {{color4}};
32+ color: {{color15}};
33+}
34+
35+toolbar,
36+toolbar button {
37+ background-color: mix({{background}}, {{color1}}, 0.4);
38+ background-image: none;
39+ color: {{foreground}};
40+}
41+
42+menubar {
43+ background-color: mix({{background}}, {{color1}}, 0.35);
44+ color: {{foreground}};
45+}
46+
47+headerbar,
48+headerbar:not(:backdrop),
49+headerbar:backdrop {
50+ background-color: mix({{background}}, {{color1}}, 0.35);
51+ background-image: none;
52+ color: {{foreground}};
53+}
54+
55+entry {
56+ background-color: mix({{background}}, {{color1}}, 0.3);
57+ color: {{foreground}};
58+}
59+
60+button {
61+ background-color: mix({{background}}, {{color1}}, 0.4);
62+ color: {{foreground}};
63+}
64+
65+button:hover {
66+ background-color: mix({{background}}, {{color1}}, 0.5);
67+}
68+
69+button:active,
70+button:checked {
71+ background-color: {{color4}};
72+ color: {{color15}};
73+}
74+
75+selection,
76+*:selected {
77+ background-color: {{color4}};
78+ color: {{color15}};
79+}
80+
81+tooltip {
82+ background-color: mix({{background}}, {{color1}}, 0.4);
83+ color: {{foreground}};
84+}
85+
86+menu {
87+ background-color: mix({{background}}, {{color1}}, 0.4);
88+ color: {{foreground}};
89+}
90+
91+menuitem:hover {
92+ background-color: {{color4}};
93+ color: {{color15}};
94+}
.config/wallust/templates/gtk4.cssadded+46 -0
@@ -0,0 +1,46 @@
1+/* Generated by wallust */
2+@define-color accent_bg_color {{color4}};
3+@define-color accent_fg_color {{color15}};
4+@define-color accent_color {{color4}};
5+
6+@define-color destructive_bg_color {{color1}};
7+@define-color destructive_fg_color {{color15}};
8+@define-color destructive_color {{color1}};
9+
10+@define-color success_bg_color {{color2}};
11+@define-color success_fg_color {{color15}};
12+@define-color success_color {{color2}};
13+
14+@define-color warning_bg_color {{color3}};
15+@define-color warning_fg_color {{background}};
16+@define-color warning_color {{color3}};
17+
18+@define-color error_bg_color {{color1}};
19+@define-color error_fg_color {{color15}};
20+@define-color error_color {{color1}};
21+
22+@define-color window_bg_color mix({{background}}, {{color1}}, 0.35);
23+@define-color window_fg_color {{foreground}};
24+
25+@define-color view_bg_color mix({{background}}, {{color1}}, 0.3);
26+@define-color view_fg_color {{foreground}};
27+
28+@define-color headerbar_bg_color mix({{background}}, {{color1}}, 0.4);
29+@define-color headerbar_fg_color {{foreground}};
30+@define-color headerbar_backdrop_color mix({{background}}, {{color1}}, 0.35);
31+
32+@define-color card_bg_color mix({{background}}, {{color1}}, 0.45);
33+@define-color card_fg_color {{foreground}};
34+
35+@define-color dialog_bg_color mix({{background}}, {{color1}}, 0.38);
36+@define-color dialog_fg_color {{foreground}};
37+
38+@define-color popover_bg_color mix({{background}}, {{color1}}, 0.4);
39+@define-color popover_fg_color {{foreground}};
40+
41+@define-color sidebar_bg_color mix({{background}}, {{color1}}, 0.32);
42+@define-color sidebar_fg_color {{foreground}};
43+@define-color sidebar_backdrop_color mix({{background}}, {{color1}}, 0.3);
44+
45+@define-color shade_color rgba(0, 0, 0, 0.36);
46+@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
.config/wallust/templates/qt5ct-wallust.confadded+4 -0
@@ -0,0 +1,4 @@
1+[ColorScheme]
2+active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
3+disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
4+inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
.config/wallust/templates/qt6ct-wallust.confadded+4 -0
@@ -0,0 +1,4 @@
1+[ColorScheme]
2+active_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color4}}, {{color15}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
3+disabled_colors={{color8}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{color8}}, {{color8}}, {{color8}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{color8}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
4+inactive_colors={{foreground}}, {{color1}}, {{color7}}, {{color3}}, {{background}}, {{color8}}, {{foreground}}, {{color7}}, {{foreground}}, {{color1}}, {{color1}}, {{background}}, {{color1}}, {{foreground}}, {{color6}}, {{color5}}, {{color1}}, {{color1}}, {{foreground}}, {{color8}}, {{color4}}
.config/wallust/wallust.tomladded+59 -0
@@ -0,0 +1,59 @@
1+# wallust v3.5
2+#
3+# You can copy this file to ~/.config/wallust/wallust.toml (keep in mind is a sample config)
4+
5+# SIMPLE TUTORIAL, or `man wallust.5`:
6+# https://explosion-mental.codeberg.page/wallust/
7+#
8+# If comming from v2: https://explosion-mental.codeberg.page/wallust/v3.html#wallusttoml
9+
10+# Global section - values below can be overwritten by command line flags
11+
12+# How the image is parse, in order to get the colors:
13+# full - resized - wal - thumb - fastresize - kmeans
14+backend = "fastresize"
15+
16+# What color space to use to produce and select the most prominent colors:
17+# lab - labmixed - lch - lchmixed - salience
18+color_space = "salience"
19+
20+# Use the most prominent colors in a way that makes sense, a scheme color palette:
21+# dark - dark16 - darkcomp - darkcomp16
22+# light - light16 - lightcomp - lightcomp16
23+# harddark - harddark16 - harddarkcomp - harddarkcomp16
24+# softdark - softdark16 - softdarkcomp - softdarkcomp16
25+# softlight - softlight16 - softlightcomp - softlightcomp16
26+# saliencedark - saliencedarkbalanced - saliencedarkdistributed - saliencedarklow (each has the 16 variations)
27+# salienceligh - saliencelightbalanced - saliencelightdistributed - saliencelightlow (each has the 16 variations)
28+palette = "saliencedarkbalanced"
29+
30+# Ensures a "readable contrast" (OPTIONAL, disabled by default)
31+# Should only be enabled when you notice an unreadable contrast frequently happening
32+# with your images. The reference color for the contrast is the background color.
33+#check_contrast = true
34+
35+# Color saturation, between [1% and 100%] (OPTIONAL, disabled by default)
36+# usually something higher than 50 increases the saturation and below
37+# decreases it (on a scheme with strong and vivid colors)
38+#saturation = 35
39+
40+# Alpha value for templating, by default 100 (no other use whatsoever)
41+#alpha = 100
42+
43+# Disables hooks completly
44+#no_hooks = true
45+
46+[templates]
47+# NOTE: prefer '' over "" for paths, avoids escaping.
48+# template: A RELATIVE path that points to `~/.config/wallust/template` (depends on platform)
49+# target: ABSOLUTE path in which to place a file with generated templated values.
50+# ¡ If either one is a directory, then both SHOULD be one. !
51+# zathura = { template = 'zathura', target = '~/.config/zathura/zathurarc' }
52+gtk4 = { template = 'gtk4.css', target = '~/.config/gtk-4.0/gtk.css' }
53+gtk4dark = { template = 'gtk4.css', target = '~/.config/gtk-4.0/gtk-dark.css' }
54+gtk3 = { template = 'gtk3.css', target = '~/.config/gtk-3.0/gtk.css' }
55+qt5ct = { template = 'qt5ct-wallust.conf', target = '~/.config/qt5ct/colors/wallust.conf' }
56+qt6ct = { template = 'qt6ct-wallust.conf', target = '~/.config/qt6ct/colors/wallust.conf' }
57+[hooks]
58+# Convert colors and compute mixed surface colors for QT
59+qt_colors = """~/.config/scripts/shared/qt_colors.sh"""
.config/waybar/configmodified+0 -1
@@ -80,7 +80,6 @@
80 "custom/music": {80 "custom/music": {
81 "format": "{}",81 "format": "{}",
82 "exec": "bash ~/.config/scripts/shared/song_detail.sh",82 "exec": "bash ~/.config/scripts/shared/song_detail.sh",
83- "exec-if": "playerctl status &> /dev/null",
84 "interval": 1,83 "interval": 1,
85 "on-click": "playerctl play-pause",84 "on-click": "playerctl play-pause",
86 "on-click-right": "bash ~/.config/scripts/shared/show_cover.sh",85 "on-click-right": "bash ~/.config/scripts/shared/show_cover.sh",
.config/waybar/style.cssmodified+5 -4
@@ -1,11 +1,11 @@
1 #waybar {1 #waybar {
2 color: #ffffff;2 color: #ffffff;
3- background-color: alpha(#020503, 0.8);3+ background-color: alpha(#000000, 0.8);
4 border-radius: 1px;4 border-radius: 1px;
5 }5 }
6 6
7 #idle_inhibitor.activated {7 #idle_inhibitor.activated {
8- background-color: #B33625;8+ background-color: #e06c75;
9 }9 }
10 10
11 * {11 * {
@@ -15,6 +15,7 @@
15 15
16 #workspaces button {16 #workspaces button {
17 color: #ffffff;17 color: #ffffff;
18+ background-color: transparent;
18 }19 }
19 20
20 #workspaces button.active {21 #workspaces button.active {
@@ -22,7 +23,7 @@
22 }23 }
23 24
24 #custom-music {25 #custom-music {
25- color: #ffffff;26+ color: inherit;
26 margin: 0 10px;27 margin: 0 10px;
27 background-color: transparent;28 background-color: transparent;
28 border: none;29 border: none;
@@ -31,7 +32,7 @@
31 }32 }
32 33
33 #custom-tray-toggle {34 #custom-tray-toggle {
34- color: #ffffff;35+ color: inherit;
35 padding: 0 6px;36 padding: 0 6px;
36 }37 }
37 38
.gitignoremodified+7 -0
@@ -1 +1,8 @@
1 .config/nvim/lazy-lock.json1 .config/nvim/lazy-lock.json
2+
3+# Wallust generated files
4+.config/qt5ct/colors/
5+.config/qt6ct/colors/
6+.config/gtk-3.0/gtk.css
7+.config/gtk-4.0/gtk.css
8+.config/gtk-4.0/gtk-dark.css