further configure hyprland
This commit is contained in:
@ -7,38 +7,20 @@ default_roles:
|
|||||||
# - git # Version control system
|
# - git # Version control system
|
||||||
- nvim # Modern text editor (or use 'vim')
|
- nvim # Modern text editor (or use 'vim')
|
||||||
# - tmux # Terminal multiplexer for session management
|
# - tmux # Terminal multiplexer for session management
|
||||||
#
|
|
||||||
# === Shell Environment ===
|
|
||||||
- zsh # Modern shell with oh-my-zsh
|
- zsh # Modern shell with oh-my-zsh
|
||||||
# - ssh
|
# - ssh
|
||||||
- hyprland
|
- hyprland
|
||||||
- ghostty
|
- ghostty
|
||||||
|
|
||||||
temp:
|
temp:
|
||||||
# === Development Languages ===
|
|
||||||
# - rust # Rust programming language
|
|
||||||
# - ruby # Ruby programming language
|
|
||||||
# - lua # Lua programming language
|
|
||||||
# === DevOps & Cloud Tools ===
|
|
||||||
- docker # Container platform
|
- docker # Container platform
|
||||||
|
|
||||||
# === System Monitoring ===
|
|
||||||
|
|
||||||
# === Terminal Emulators ===
|
|
||||||
# - kitty # GPU-accelerated terminal
|
|
||||||
# - warp # Modern terminal with AI features
|
|
||||||
|
|
||||||
# === Productivity Tools ===
|
|
||||||
# - obsidian # Knowledge management and note-taking
|
|
||||||
|
|
||||||
system_packages:
|
system_packages:
|
||||||
# Network
|
# Network
|
||||||
- curl
|
- curl
|
||||||
- wget
|
- wget
|
||||||
- rsync
|
- rsync
|
||||||
- nmap
|
- nmap
|
||||||
# - nslookup
|
|
||||||
# - dig
|
|
||||||
|
|
||||||
# archive/compression
|
# archive/compression
|
||||||
- unzip
|
- unzip
|
||||||
@ -71,6 +53,10 @@ system_packages:
|
|||||||
- dunst
|
- dunst
|
||||||
- hyprpaper
|
- hyprpaper
|
||||||
|
|
||||||
|
# desktop
|
||||||
|
- thunar
|
||||||
|
- imv
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
aur_packages:
|
aur_packages:
|
||||||
|
|||||||
@ -4,9 +4,10 @@
|
|||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,auto
|
||||||
monitor = DP-2, 2560x1440@165, 0x0, 1
|
source = ./monitors.conf
|
||||||
monitor = DP-1, 2560x1440@165, 2560x0, 1
|
# monitor = DP-2, 2560x1440@165, 0x0, 1
|
||||||
monitor = HDMI-A-2, 1920x1080@60, 5120x-360, 1, transform, 3
|
# monitor = DP-1, 2560x1440@165, 2560x0, 1
|
||||||
|
# monitor = HDMI-A-2, 1920x1080@60, 5120x-360, 1, transform, 3
|
||||||
|
|
||||||
workspace = 1, monitor:DP-1, persistent:true, default:true
|
workspace = 1, monitor:DP-1, persistent:true, default:true
|
||||||
workspace = 4, monitor:DP-1, persistent:true
|
workspace = 4, monitor:DP-1, persistent:true
|
||||||
@ -50,7 +51,7 @@ workspace = 30, monitor:DP-2, persistent:true
|
|||||||
|
|
||||||
# Set programs that you use
|
# Set programs that you use
|
||||||
$terminal = ghostty
|
$terminal = ghostty
|
||||||
$fileManager = dolphin
|
$fileManager = thunar
|
||||||
$menu = wofi --show drun
|
$menu = wofi --show drun
|
||||||
|
|
||||||
#################
|
#################
|
||||||
@ -82,6 +83,10 @@ env = CLUTTER_BACKEND,wayland
|
|||||||
env = SDL_VIDEODRIVER,wayland,x11
|
env = SDL_VIDEODRIVER,wayland,x11
|
||||||
env = GDK_BACKEND,wayland,x11
|
env = GDK_BACKEND,wayland,x11
|
||||||
|
|
||||||
|
# jetbrains
|
||||||
|
env = _JAVA_AWT_WM_NONREPARENTING, 1
|
||||||
|
# env = AWT_TOOLKIT, MToolkit
|
||||||
|
|
||||||
###################
|
###################
|
||||||
### PERMISSIONS ###
|
### PERMISSIONS ###
|
||||||
###################
|
###################
|
||||||
@ -103,8 +108,6 @@ env = GDK_BACKEND,wayland,x11
|
|||||||
### LOOK AND FEEL ###
|
### LOOK AND FEEL ###
|
||||||
#####################
|
#####################
|
||||||
|
|
||||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||||
general {
|
general {
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
@ -115,6 +118,11 @@ general {
|
|||||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
col.inactive_border = rgba(595959aa)
|
col.inactive_border = rgba(595959aa)
|
||||||
|
# Active: cosmic purple -> neon cyan gradient
|
||||||
|
# col.active_border = rgba(7f5af0ee) rgba(00d1ffee) 45deg
|
||||||
|
#
|
||||||
|
# # Inactive: deep space slate
|
||||||
|
# col.inactive_border = rgba(0c0e14aa)
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||||
resize_on_border = false
|
resize_on_border = false
|
||||||
@ -125,32 +133,49 @@ general {
|
|||||||
layout = dwindle
|
layout = dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
|
||||||
|
# --- Decorations / cosmic glass ---
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 10
|
rounding = 12
|
||||||
rounding_power = 2
|
active_opacity = 1.0
|
||||||
|
inactive_opacity = 0.96
|
||||||
|
fullscreen_opacity = 1.0
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
# Shadows (new nested syntax)
|
||||||
active_opacity = 1.0
|
shadow {
|
||||||
inactive_opacity = 1.0
|
enabled = true
|
||||||
|
range = 20 # size of the shadow
|
||||||
|
render_power = 3 # 1–4, higher = faster falloff
|
||||||
|
color = rgba(0, 0, 0, 0.35)
|
||||||
|
offset = 0 6 # optional: drop slightly downward
|
||||||
|
scale = 1.0
|
||||||
|
}
|
||||||
|
|
||||||
shadow {
|
# Blur (nested)
|
||||||
enabled = true
|
blur {
|
||||||
range = 4
|
enabled = true
|
||||||
render_power = 3
|
size = 8
|
||||||
color = rgba(1a1a1aee)
|
passes = 3
|
||||||
}
|
new_optimizations = true
|
||||||
|
noise = 0.02
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
contrast = 1.00
|
||||||
blur {
|
brightness = 1.00
|
||||||
enabled = true
|
vibrancy = 0.18
|
||||||
size = 3
|
xray = true
|
||||||
passes = 1
|
}
|
||||||
|
|
||||||
vibrancy = 0.1696
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# wofi
|
||||||
|
layerrule = blur, wofi # apply compositor blur
|
||||||
|
layerrule = ignorezero, wofi # keep blur even on near-opaque colors
|
||||||
|
layerrule = dimaround, wofi # optional: dim background behind wofi
|
||||||
|
layerrule = ignorealpha 0.90, wofi # target overall opacity for the layer
|
||||||
|
|
||||||
|
|
||||||
|
# waybar
|
||||||
|
layerrule = blur, waybar
|
||||||
|
layerrule = ignorealpha 0.15, waybar
|
||||||
|
|
||||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||||
animations {
|
animations {
|
||||||
enabled = yes, please :)
|
enabled = yes, please :)
|
||||||
@ -248,7 +273,7 @@ bind = $mainMod, T, exec, $terminal
|
|||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
bind = $mainMod, N, exec, $fileManager
|
bind = $mainMod, N, exec, $fileManager
|
||||||
bind = $mainMod, V, togglefloating,
|
bind = $mainMod, V, togglefloating,
|
||||||
bind = $mainMod, D, exec, $menu
|
bind = $mainMod, Space, exec, $menu
|
||||||
bind = $mainMod, G, togglesplit, # dwindle
|
bind = $mainMod, G, togglesplit, # dwindle
|
||||||
bind = $mainMod, F, fullscreen
|
bind = $mainMod, F, fullscreen
|
||||||
bind = $mainMod, B, exec, firefox
|
bind = $mainMod, B, exec, firefox
|
||||||
@ -323,69 +348,6 @@ bind = SUPER, 0, exec, hyprctl --batch " \
|
|||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 30; \
|
dispatch focusmonitor HDMI-A-2; dispatch workspace 30; \
|
||||||
dispatch focusmonitor DP-1"
|
dispatch focusmonitor DP-1"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 1, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 1; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 2; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 3; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 2, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 4; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 5; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 6; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 3, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 7; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 8; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 9; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 4, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 10; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 11; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 12; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 5, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 13; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 14; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 15; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 6, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 16; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 17; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 18; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 7, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 19; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 20; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 21; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 8, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 22; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 23; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 24; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 9, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 25; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 26; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 27; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = SUPER SHIFT, 0, exec, hyprctl --batch " \
|
|
||||||
dispatch focusmonitor DP-1; dispatch workspace 28; \
|
|
||||||
dispatch focusmonitor DP-2; dispatch workspace 29; \
|
|
||||||
dispatch focusmonitor HDMI-A-2; dispatch workspace 30; \
|
|
||||||
dispatch focusmonitor DP-1"
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 4
|
bind = $mainMod SHIFT, 2, movetoworkspace, 4
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 7
|
bind = $mainMod SHIFT, 3, movetoworkspace, 7
|
||||||
@ -444,12 +406,12 @@ bind = , Print, exec, hyprshot -zm region
|
|||||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
# Example windowrule
|
|
||||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
# Ignore maximize requests from apps. You'll probably like this.
|
||||||
windowrule = suppressevent maximize, class:.*
|
windowrule = suppressevent maximize, class:.*
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
|
|
||||||
|
windowrulev2 = tag +jb, class:^jetbrains-.+$,floating:1
|
||||||
|
windowrulev2 = stayfocused, tag:jb
|
||||||
|
windowrulev2 = noinitialfocus, tag:jb
|
||||||
|
|||||||
@ -14,7 +14,7 @@ background {
|
|||||||
|
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 200, 50
|
size = 300, 50
|
||||||
position = 0, -80
|
position = 0, -80
|
||||||
dots_center = true
|
dots_center = true
|
||||||
fade_on_empty = false
|
fade_on_empty = false
|
||||||
|
|||||||
8
roles/hyprland/files/hypr/monitors.conf
Normal file
8
roles/hyprland/files/hypr/monitors.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Generated by nwg-displays on 2025-09-07 at 18:49:18. Do not edit manually.
|
||||||
|
|
||||||
|
monitor=DP-1,2560x1440@165.0,6626x876,1.0
|
||||||
|
monitor=DP-2,2560x1440@165.0,4066x876,1.0
|
||||||
|
monitor=HDMI-A-1,3840x2160@60.0,226x156,1.0
|
||||||
|
monitor=HDMI-A-1,disable
|
||||||
|
monitor=HDMI-A-2,1920x1080@60.0,9186x396,1.0
|
||||||
|
monitor=HDMI-A-2,transform,3
|
||||||
0
roles/hyprland/files/hypr/workspaces.conf
Normal file
0
roles/hyprland/files/hypr/workspaces.conf
Normal file
@ -2,13 +2,17 @@
|
|||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
|
||||||
|
"exclusive": true, // keep the gap reserved
|
||||||
|
"margin-top": 8, // gap from the top edge
|
||||||
|
"margin-left": 10, // gap from the left edge
|
||||||
|
"margin-right": 10, // gap from the right edge
|
||||||
|
"margin-bottom": 0,
|
||||||
|
|
||||||
/* order: 1-2-3 | window-title | tray + clock */
|
/* order: 1-2-3 | window-title | tray + clock */
|
||||||
"modules-left": [ "custom/page1", "custom/page2", "custom/page3", "custom/page4","custom/page5","custom/page6","custom/page7","custom/page8","custom/page9","custom/page10"],
|
"modules-left": [ "custom/page1", "custom/page2", "custom/page3", "custom/page4","custom/page5","custom/page6","custom/page7","custom/page8","custom/page9","custom/page10"],
|
||||||
"modules-center": [ "hyprland/window" ],
|
"modules-center": [ "hyprland/window" ],
|
||||||
"modules-right": [ "tray", "custom/separator", "network", "bluetooth", "custom/separator", "disk", "cpu", "memory", "pulseaudio", "custom/separator", "clock"],
|
"modules-right": [ "tray", "custom/separator", "network", "bluetooth", "custom/separator", "disk", "cpu", "memory", "pulseaudio", "custom/separator", "clock"],
|
||||||
|
|
||||||
|
|
||||||
/* three persistent “page” buttons */
|
|
||||||
"custom/page1": {
|
"custom/page1": {
|
||||||
"exec": "~/.config/waybar/scripts/page.sh 1",
|
"exec": "~/.config/waybar/scripts/page.sh 1",
|
||||||
"exec-persistent": true,
|
"exec-persistent": true,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# page.sh 1‒10 – Waybar “page” indicator
|
# page.sh 1‒10 – Waybar “page” indicator
|
||||||
# deps: socat, awk • (still no jq)
|
# deps: socat, awk, sed, grep
|
||||||
|
|
||||||
page=$1 # this script instance’s page (1‒10)
|
page=$1
|
||||||
|
|
||||||
# ── icon lookup table ────────────────────────────────────────────
|
|
||||||
icons=( "" "" "" "" "" "" "" "" "" "" "" )
|
icons=( "" "" "" "" "" "" "" "" "" "" "" )
|
||||||
|
|
||||||
# map numeric workspace → page (1‒10)
|
|
||||||
to_page() {
|
to_page() {
|
||||||
(( $1 <= 3 )) && echo 1 && return
|
(( $1 <= 3 )) && echo 1 && return
|
||||||
(( $1 <= 6 )) && echo 2 && return
|
(( $1 <= 6 )) && echo 2 && return
|
||||||
@ -21,21 +18,26 @@ to_page() {
|
|||||||
echo 10
|
echo 10
|
||||||
}
|
}
|
||||||
|
|
||||||
# does THIS page contain at least one window?
|
# Return 0 if THIS page has at least one window, else 1
|
||||||
is_occupied() {
|
is_occupied() {
|
||||||
while read -r ws_id; do
|
# Get workspace id + windows count pairs from JSON
|
||||||
(( $(to_page "$ws_id") == page )) && return 0
|
# Example snippets: {"id":1,"windows":3, ...}
|
||||||
done < <(hyprctl clients | awk '/workspace:/ {print $2}')
|
while read -r id windows; do
|
||||||
|
(( $(to_page "$id") == page )) && (( windows > 0 )) && return 0
|
||||||
|
done < <(
|
||||||
|
hyprctl -j workspaces \
|
||||||
|
| grep -o '"id":[0-9]\+|"windows":[0-9]\+' \
|
||||||
|
| sed -n 'N;s/"id":\([0-9]\+\)\n"windows":\([0-9]\+\)/\1 \2/p'
|
||||||
|
)
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
emit() {
|
emit() {
|
||||||
local classes=()
|
local classes=()
|
||||||
|
if (( $1 == page )); then
|
||||||
if (( $1 == page )); then # ← is THIS instance the active page?
|
classes+=(active)
|
||||||
classes+=(active) # yes → mark it only “active”
|
|
||||||
else
|
else
|
||||||
is_occupied && classes+=(occupied) # no → maybe “occupied”
|
is_occupied && classes+=(occupied)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ((${#classes[@]})); then
|
if ((${#classes[@]})); then
|
||||||
@ -46,18 +48,16 @@ emit() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# ── initial state ────────────────────────────────────────────────
|
# Initial state
|
||||||
active_ws=$(hyprctl activeworkspace | awk '/^ID /{print $2}')
|
active_ws=$(hyprctl activeworkspace | awk '/^ID /{print $2}')
|
||||||
current_page=$(to_page "${active_ws:-1}")
|
current_page=$(to_page "${active_ws:-1}")
|
||||||
emit "$current_page"
|
emit "$current_page"
|
||||||
current_occ=$(is_occupied && echo 1 || echo 0)
|
current_occ=$(is_occupied && echo 1 || echo 0)
|
||||||
|
|
||||||
# ── live updates via Hyprland socket2 ───────────────────────────
|
# Live updates
|
||||||
socket="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
|
socket="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
|
||||||
socat -U - UNIX-CONNECT:"$socket" | while read -r line; do
|
socat -U - UNIX-CONNECT:"$socket" | while read -r line; do
|
||||||
[[ $line =~ ^(workspace|openwindow|closewindow) ]] || continue
|
[[ $line =~ ^(workspace|openwindow|closewindow|movewindow) ]] || continue
|
||||||
|
|
||||||
# recompute state if anything relevant changed
|
|
||||||
if [[ $line == workspace* ]]; then
|
if [[ $line == workspace* ]]; then
|
||||||
ws=${line#*>>}; ws=${ws%% *}
|
ws=${line#*>>}; ws=${ws%% *}
|
||||||
new_page=$(to_page "$ws")
|
new_page=$(to_page "$ws")
|
||||||
@ -65,8 +65,6 @@ socat -U - UNIX-CONNECT:"$socket" | while read -r line; do
|
|||||||
new_page=$current_page
|
new_page=$current_page
|
||||||
fi
|
fi
|
||||||
new_occ=$(is_occupied && echo 1 || echo 0)
|
new_occ=$(is_occupied && echo 1 || echo 0)
|
||||||
|
|
||||||
# update Waybar only when something actually changed
|
|
||||||
if (( new_page != current_page || new_occ != current_occ )); then
|
if (( new_page != current_page || new_occ != current_occ )); then
|
||||||
emit "$new_page"
|
emit "$new_page"
|
||||||
current_page=$new_page
|
current_page=$new_page
|
||||||
@ -74,3 +72,79 @@ socat -U - UNIX-CONNECT:"$socket" | while read -r line; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# # page.sh 1‒10 – Waybar “page” indicator
|
||||||
|
# # deps: socat, awk • (still no jq)
|
||||||
|
#
|
||||||
|
# page=$1 # this script instance’s page (1‒10)
|
||||||
|
#
|
||||||
|
# # ── icon lookup table ────────────────────────────────────────────
|
||||||
|
# icons=( "" "" "" "" "" "" "" "" "" "" "" )
|
||||||
|
#
|
||||||
|
# # map numeric workspace → page (1‒10)
|
||||||
|
# to_page() {
|
||||||
|
# (( $1 <= 3 )) && echo 1 && return
|
||||||
|
# (( $1 <= 6 )) && echo 2 && return
|
||||||
|
# (( $1 <= 9 )) && echo 3 && return
|
||||||
|
# (( $1 <= 12 )) && echo 4 && return
|
||||||
|
# (( $1 <= 15 )) && echo 5 && return
|
||||||
|
# (( $1 <= 18 )) && echo 6 && return
|
||||||
|
# (( $1 <= 21 )) && echo 7 && return
|
||||||
|
# (( $1 <= 24 )) && echo 8 && return
|
||||||
|
# (( $1 <= 27 )) && echo 9 && return
|
||||||
|
# echo 10
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# # does THIS page contain at least one window?
|
||||||
|
# is_occupied() {
|
||||||
|
# while read -r ws_id; do
|
||||||
|
# (( $(to_page "$ws_id") == page )) && return 0
|
||||||
|
# done < <(hyprctl clients | awk '/workspace:/ {print $2}')
|
||||||
|
# return 1
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# emit() {
|
||||||
|
# local classes=()
|
||||||
|
#
|
||||||
|
# if (( $1 == page )); then # ← is THIS instance the active page?
|
||||||
|
# classes+=(active) # yes → mark it only “active”
|
||||||
|
# else
|
||||||
|
# is_occupied && classes+=(occupied) # no → maybe “occupied”
|
||||||
|
# fi
|
||||||
|
#
|
||||||
|
# if ((${#classes[@]})); then
|
||||||
|
# printf '{"text":"%s","class":"%s"}\n' \
|
||||||
|
# "${icons[page]}" "$(IFS=' '; echo "${classes[*]}")"
|
||||||
|
# else
|
||||||
|
# printf '{"text":"%s"}\n' "${icons[page]}"
|
||||||
|
# fi
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# # ── initial state ────────────────────────────────────────────────
|
||||||
|
# active_ws=$(hyprctl activeworkspace | awk '/^ID /{print $2}')
|
||||||
|
# current_page=$(to_page "${active_ws:-1}")
|
||||||
|
# emit "$current_page"
|
||||||
|
# current_occ=$(is_occupied && echo 1 || echo 0)
|
||||||
|
#
|
||||||
|
# # ── live updates via Hyprland socket2 ───────────────────────────
|
||||||
|
# socket="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
|
||||||
|
# socat -U - UNIX-CONNECT:"$socket" | while read -r line; do
|
||||||
|
# [[ $line =~ ^(workspace|openwindow|closewindow) ]] || continue
|
||||||
|
#
|
||||||
|
# # recompute state if anything relevant changed
|
||||||
|
# if [[ $line == workspace* ]]; then
|
||||||
|
# ws=${line#*>>}; ws=${ws%% *}
|
||||||
|
# new_page=$(to_page "$ws")
|
||||||
|
# else
|
||||||
|
# new_page=$current_page
|
||||||
|
# fi
|
||||||
|
# new_occ=$(is_occupied && echo 1 || echo 0)
|
||||||
|
#
|
||||||
|
# # update Waybar only when something actually changed
|
||||||
|
# if (( new_page != current_page || new_occ != current_occ )); then
|
||||||
|
# emit "$new_page"
|
||||||
|
# current_page=$new_page
|
||||||
|
# current_occ=$new_occ
|
||||||
|
# fi
|
||||||
|
# done
|
||||||
|
#
|
||||||
|
|||||||
@ -1,91 +1,134 @@
|
|||||||
/* --- GENERAL BAR STYLE (unchanged) --- */
|
/* ==== Waybar GTK CSS: Cosmic glass (v2 lighter) ================= */
|
||||||
|
|
||||||
|
/* Palette */
|
||||||
|
@define-color glass rgba(12, 14, 20, 0.34); /* was 0.62 → much more transparent */
|
||||||
|
@define-color glass_strong rgba(12, 14, 20, 0.46); /* chips / active */
|
||||||
|
@define-color fg #DDE1EA;
|
||||||
|
@define-color fg_dim #B8BECC;
|
||||||
|
@define-color accent1 #7F5AF0;
|
||||||
|
@define-color accent2 #00D1FF;
|
||||||
|
|
||||||
|
/* Whole bar: more vertical padding, no border, stronger shadow */
|
||||||
|
window#waybar {
|
||||||
|
background: @glass;
|
||||||
|
color: @fg;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin: 6px 8px;
|
||||||
|
border: none; /* ← removed border */
|
||||||
|
box-shadow: 0 10px 34px rgba(0,0,0,0.34);
|
||||||
|
-gtk-outline-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Global typography: Roboto Mono Nerd Font */
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
/* padding: 0 6px; */
|
padding: 2px 6px;
|
||||||
padding: 0 6px;
|
margin-top: 0;
|
||||||
margin-top: 2px;
|
font-family: "RobotoMono Nerd Font", "Roboto Mono Nerd Font", "RobotoMono NF", monospace;
|
||||||
font-family: "JetBrains Mono", monospace;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
window#waybar { background: transparent; color: #ffffff; }
|
|
||||||
|
|
||||||
/* --- PAGE BUTTONS --- */
|
/* Keep groups transparent */
|
||||||
/* IDs are #custom-page1, #custom-page2, #custom-page3 */
|
#modules-left, #modules-center, #modules-right { background: transparent; }
|
||||||
#custom-page1, #custom-page2, #custom-page3, #custom-page4, #custom-page5, #custom-page6, #custom-page7, #custom-page8, #custom-page9, #custom-page10 {
|
|
||||||
|
/* Common modules stay transparent; compact rounded hit area */
|
||||||
|
#tray, #window, #clock, #cpu, #memory, #disk, #network, #bluetooth, #pulseaudio {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
min-width: 18px; /* keeps them evenly spaced */
|
|
||||||
padding-left: 2px;
|
|
||||||
color: #fff;
|
|
||||||
/* text-align: center; */
|
|
||||||
}
|
|
||||||
#custom-page1.active,
|
|
||||||
#custom-page2.active,
|
|
||||||
#custom-page3.active,
|
|
||||||
#custom-page4.active,
|
|
||||||
#custom-page5.active,
|
|
||||||
#custom-page6.active,
|
|
||||||
#custom-page7.active,
|
|
||||||
#custom-page8.active,
|
|
||||||
#custom-page9.active,
|
|
||||||
#custom-page10.active
|
|
||||||
{
|
|
||||||
background: rgba(255,255,255,0.15);
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
color: #fff;
|
color: @fg;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-page1.occupied:not(.active),
|
/* Subtle separators */
|
||||||
#custom-page2.occupied:not(.active),
|
#custom-separator {
|
||||||
#custom-page3.occupied:not(.active),
|
color: rgba(200,200,200,0.20);
|
||||||
#custom-page4.occupied:not(.active),
|
padding: 0 4px;
|
||||||
#custom-page5.occupied:not(.active),
|
|
||||||
#custom-page6.occupied:not(.active),
|
|
||||||
#custom-page7.occupied:not(.active),
|
|
||||||
#custom-page8.occupied:not(.active),
|
|
||||||
#custom-page9.occupied:not(.active),
|
|
||||||
#custom-page10.occupied:not(.active) {
|
|
||||||
color: #42A5F5; /* blue – pick any shade you like */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-page1.active.occupied,
|
/* --- PAGE BUTTONS --------------------------------------------------------- */
|
||||||
#custom-page2.active.occupied,
|
#custom-page1, #custom-page2, #custom-page3, #custom-page4, #custom-page5,
|
||||||
#custom-page3.active.occupied,
|
#custom-page6, #custom-page7, #custom-page8, #custom-page9, #custom-page10 {
|
||||||
#custom-page4.active.occupied,
|
background: transparent;
|
||||||
#custom-page5.active.occupied,
|
min-width: 18px;
|
||||||
#custom-page6.active.occupied,
|
padding-left: 2px;
|
||||||
#custom-page7.active.occupied,
|
color: @fg_dim;
|
||||||
#custom-page8.active.occupied,
|
|
||||||
#custom-page9.active.occupied,
|
|
||||||
#custom-page10.active.occupied {
|
|
||||||
background: rgba(255,255,255,0.15); /* same as .active */
|
|
||||||
/* optional: keep the icon white, or turn it blue: */
|
|
||||||
/* color: #42A5F5; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- OTHER MODULES (carry-over from your previous setup) --- */
|
/* Active page: glass chip, no border */
|
||||||
#window, #tray, #clock { background: transparent;}
|
#custom-page1.active, #custom-page2.active, #custom-page3.active, #custom-page4.active,
|
||||||
|
#custom-page5.active, #custom-page6.active, #custom-page7.active, #custom-page8.active,
|
||||||
#tray {
|
#custom-page9.active, #custom-page10.active {
|
||||||
margin-right: -5;
|
background: @glass_strong;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: @fg;
|
||||||
|
box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.015);
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray * {
|
/* Occupied (not active): cyan glyph */
|
||||||
padding-left: 0px;
|
#custom-page1.occupied:not(.active), #custom-page2.occupied:not(.active),
|
||||||
padding-right: 0px;
|
#custom-page3.occupied:not(.active), #custom-page4.occupied:not(.active),
|
||||||
|
#custom-page5.occupied:not(.active), #custom-page6.occupied:not(.active),
|
||||||
|
#custom-page7.occupied:not(.active), #custom-page8.occupied:not(.active),
|
||||||
|
#custom-page9.occupied:not(.active), #custom-page10.occupied:not(.active) {
|
||||||
|
color: @accent2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── kill the gap your * rule adds ─────────────────────────────── */
|
/* Hover feedback (very light) */
|
||||||
#tray menu { /* the whole right-click window */
|
#custom-page1:hover, #custom-page2:hover, #custom-page3:hover, #custom-page4:hover,
|
||||||
padding: 5px 0; /* 0 instead of the 6 px from * */
|
#custom-page5:hover, #custom-page6:hover, #custom-page7:hover, #custom-page8:hover,
|
||||||
margin: 0; /* 0 instead of the 2 px top margin */
|
#custom-page9:hover, #custom-page10:hover {
|
||||||
border: 1px solid #555;
|
background: rgba(255,255,255,0.03);
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── (optional) give the rows some room & hover style ─────────── */
|
/* Tray tweaks */
|
||||||
#tray menu menuitem {
|
#tray { margin-right: 0px; }
|
||||||
padding: 4px 12px; /* tweak to taste */
|
#tray * { padding-left: 0px; padding-right: 0px; }
|
||||||
|
|
||||||
|
/* Tray menu glass look (also lighter, no border) */
|
||||||
|
#tray menu {
|
||||||
|
padding: 6px 0;
|
||||||
|
margin: 0;
|
||||||
|
background: @glass_strong;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 10px 34px rgba(0,0,0,0.38);
|
||||||
|
}
|
||||||
|
#tray menu menuitem { padding: 6px 12px; }
|
||||||
|
#tray menu menuitem:hover { background: alpha(@accent1, 0.16); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#custom-hyprland-workspaces {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray menu menuitem:hover {
|
.workspace {
|
||||||
background: rgba(66,165,245,.25);
|
/* display: inline-block; */
|
||||||
|
padding: 4px 8px;
|
||||||
|
margin: 0 2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #e6e6e6; /* off-white for empty workspaces */
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid #444;
|
||||||
|
/* cursor: pointer; */
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
min-width: 20px;
|
||||||
|
/* text-align: center; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace.occupied {
|
||||||
|
color: #a855f7; /* purple for occupied workspaces */
|
||||||
|
border-color: #a855f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace.focused {
|
||||||
|
background-color: rgba(168, 85, 247, 0.2); /* light purple background for focused */
|
||||||
|
color: #a855f7;
|
||||||
|
border-color: #a855f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace:hover {
|
||||||
|
background-color: rgba(168, 85, 247, 0.1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
[config]
|
[config]
|
||||||
allow_images=true
|
allow_images=true
|
||||||
width=500
|
width=500
|
||||||
|
show=drun
|
||||||
prompt=Search
|
prompt=Search
|
||||||
height=400
|
height=400
|
||||||
term=ghostty
|
term=ghostty
|
||||||
@ -8,4 +9,5 @@ hide_scroll=true
|
|||||||
print_command=true
|
print_command=true
|
||||||
insensitive=true
|
insensitive=true
|
||||||
columns=1
|
columns=1
|
||||||
|
pre_display_exec=true
|
||||||
no_actions=true
|
no_actions=true
|
||||||
|
|||||||
@ -1,26 +1,35 @@
|
|||||||
|
* {
|
||||||
|
/* smoother corners everywhere */
|
||||||
|
border-radius: 12px;
|
||||||
|
font-weight: 450;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Window container */
|
||||||
window {
|
window {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
border: 1px solid #61AFEF; /* One Dark blue */
|
padding: 6px;
|
||||||
background-color: #282C34; /* One Dark background */
|
border: 1px solid rgba(127, 90, 240, 0.35); /* accent tint */
|
||||||
|
background-color: rgba(12, 14, 20, 0.55); /* translucent */
|
||||||
|
color: #E6E7EB;
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
|
||||||
|
backg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Input field */
|
||||||
#input {
|
#input {
|
||||||
margin: 5px;
|
margin: 8px;
|
||||||
border: none;
|
padding: 10px 12px;
|
||||||
color: #ABB2BF; /* One Dark fg */
|
border: 1px solid rgba(127, 90, 240, 0.25);
|
||||||
background-color: #3E4451; /* One Dark gutter/bg */
|
background-color: rgba(34, 38, 48, 0.70);
|
||||||
|
color: #E6E7EB;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#inner-box {
|
/* Lists/boxes */
|
||||||
margin: 5px;
|
#outer-box, #inner-box {
|
||||||
|
margin: 6px;
|
||||||
border: none;
|
border: none;
|
||||||
background-color: #282C34; /* match window bg */
|
background-color: rgba(24, 28, 36, 0.60);
|
||||||
}
|
|
||||||
|
|
||||||
#outer-box {
|
|
||||||
margin: 5px;
|
|
||||||
border: none;
|
|
||||||
background-color: #282C34; /* match window bg */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#scroll {
|
#scroll {
|
||||||
@ -28,25 +37,55 @@ window {
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#text {
|
/* Entry text */
|
||||||
margin: 5px;
|
#text, #entry > * {
|
||||||
margin-left: 10px;
|
margin: 6px 10px;
|
||||||
border: none;
|
color: #E6E7EB;
|
||||||
color: #ABB2BF; /* One Dark fg */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry.activatable #text {
|
/* Rows (entries) */
|
||||||
color: #282C34; /* invert to bg for activation */
|
#entry {
|
||||||
|
margin: 4px 6px;
|
||||||
|
padding: 8px 6px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
transition: background-color 120ms ease, border-color 120ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry > * {
|
/* Hover — soft highlight */
|
||||||
color: #ABB2BF; /* One Dark fg */
|
#entry:hover {
|
||||||
|
background-color: rgba(127, 90, 240, 0.10);
|
||||||
|
border-color: rgba(127, 90, 240, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Selected row — stronger surface and bold text */
|
||||||
#entry:selected {
|
#entry:selected {
|
||||||
background-color: #3E4451; /* selected background */
|
background-color: rgba(127, 90, 240, 0.18);
|
||||||
|
border-color: rgba(127, 90, 240, 0.40);
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry:selected #text {
|
#entry:selected #text {
|
||||||
font-weight: bold;
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Activatable (e.g., currently typed match) — invert text for contrast */
|
||||||
|
#entry.activatable #text {
|
||||||
|
color: rgba(12, 14, 20, 0.92);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Muted secondary text, if present */
|
||||||
|
#entry .secondary, #entry .desc {
|
||||||
|
color: #AAB0BC;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Optional: focus ring for keyboard nav */
|
||||||
|
#entry:focus {
|
||||||
|
border-color: rgba(127, 90, 240, 0.55);
|
||||||
|
background-color: rgba(127, 90, 240, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Optional: thin separators using subtle overlay lines */
|
||||||
|
separator, .separator {
|
||||||
|
background-color: rgba(255, 255, 255, 0.06);
|
||||||
|
min-height: 1px;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,6 @@ else
|
|||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO prettier solution?
|
|
||||||
export DOTFILES_ZSH_DIR="$HOME/dotfiles/roles/zsh/files"
|
export DOTFILES_ZSH_DIR="$HOME/dotfiles/roles/zsh/files"
|
||||||
|
|
||||||
for zsh_file in "$DOTFILES_ZSH_DIR"/*.zsh; do
|
for zsh_file in "$DOTFILES_ZSH_DIR"/*.zsh; do
|
||||||
|
|||||||
@ -4,9 +4,12 @@ alias tp='trash-put'
|
|||||||
alias tl='trash-list'
|
alias tl='trash-list'
|
||||||
|
|
||||||
alias szrc='source ~/.zshrc'
|
alias szrc='source ~/.zshrc'
|
||||||
alias zrc="vim $DOTILFES_ZSH_DIR/.zshrc"
|
alias zrc="vim ~/.zshrc"
|
||||||
alias dotf='vim ~/dotfiles/'
|
alias dotf='vim ~/dotfiles/'
|
||||||
|
|
||||||
|
# TODO relative path
|
||||||
|
alias hyprconf='vim ~/dotfiles/roles/hyprland/files/hypr/hyprland.conf'
|
||||||
|
|
||||||
alias ls='eza'
|
alias ls='eza'
|
||||||
|
|
||||||
rm() {
|
rm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user