Compare commits
39
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6addb504e6 | ||
|
|
32d5683fad | ||
|
|
ec76f8dec3 | ||
|
|
299291eaf6 | ||
|
|
add12ccc76 | ||
|
|
7b7cd3e575 | ||
|
|
31b57f4f8c | ||
|
|
373584f34e | ||
|
|
f7551006b3 | ||
|
|
dc2a8fc883 | ||
|
|
b69f4bcf0d | ||
|
|
e9735d1129 | ||
|
|
c36a74e861 | ||
|
|
864420281b | ||
|
|
b86e584b02 | ||
|
|
f1d16e5175 | ||
|
|
485ee5c0ca | ||
|
|
9af24ccf87 | ||
|
|
63a910bf14 | ||
|
|
a8c19961e2 | ||
|
|
d6de04eaaf | ||
|
|
ae6539218e | ||
|
|
a27dd6f93b | ||
|
|
196abc2311 | ||
|
|
ecc7d2884c | ||
|
|
18091a7109 | ||
|
|
5be22d86a9 | ||
|
|
1f7f5aef8a | ||
|
|
32b43bdbb3 | ||
|
|
d2975650fa | ||
|
|
e221445a51 | ||
|
|
3fb89c4370 | ||
|
|
1cf5a4b68d | ||
|
|
5f3a44f82d | ||
|
|
51dc5e80c4 | ||
|
|
35048ae283 | ||
|
|
9e73c1338f | ||
|
|
9cf510e93b | ||
|
|
86e90b0213 |
No files matched your search
+19
-1
@@ -12,7 +12,6 @@
|
|||||||
!waybar/
|
!waybar/
|
||||||
!zathura/
|
!zathura/
|
||||||
!mimeapps.list
|
!mimeapps.list
|
||||||
!fuzzel/
|
|
||||||
!fish/
|
!fish/
|
||||||
!packages
|
!packages
|
||||||
!brave-flags.conf
|
!brave-flags.conf
|
||||||
@@ -29,3 +28,22 @@
|
|||||||
fish/fish_variables
|
fish/fish_variables
|
||||||
waybar/fluxo-rs
|
waybar/fluxo-rs
|
||||||
!fluxo/
|
!fluxo/
|
||||||
|
|
||||||
|
# Desktop theming. These live outside the per-app configs above, but they are
|
||||||
|
# what makes an app that is neither GTK-aware nor shell-aware match the rice,
|
||||||
|
# so the branch carries them.
|
||||||
|
!gtk-3.0/
|
||||||
|
gtk-3.0/*
|
||||||
|
!gtk-3.0/settings.ini
|
||||||
|
!gtk-3.0/gtk.css
|
||||||
|
!gtk-4.0/
|
||||||
|
gtk-4.0/*
|
||||||
|
!gtk-4.0/settings.ini
|
||||||
|
!gtk-4.0/gtk.css
|
||||||
|
!xsettingsd/
|
||||||
|
!qt6ct/
|
||||||
|
qt6ct/*
|
||||||
|
!qt6ct/qt6ct.conf
|
||||||
|
!qt6ct/colors/
|
||||||
|
qt6ct/colors/*
|
||||||
|
!qt6ct/colors/yorha.conf
|
||||||
-12
@@ -1,27 +1,15 @@
|
|||||||
[submodule "waybar/catppuccin-waybar"]
|
|
||||||
path = waybar/catppuccin-waybar
|
|
||||||
url = https://github.com/catppuccin/waybar.git
|
|
||||||
[submodule "hypr/catppuccin-hyprland"]
|
[submodule "hypr/catppuccin-hyprland"]
|
||||||
path = hypr/catppuccin-hyprland
|
path = hypr/catppuccin-hyprland
|
||||||
url = https://github.com/catppuccin/hyprland.git
|
url = https://github.com/catppuccin/hyprland.git
|
||||||
[submodule "hypr/catppuccin-hyprlock"]
|
[submodule "hypr/catppuccin-hyprlock"]
|
||||||
path = hypr/catppuccin-hyprlock
|
path = hypr/catppuccin-hyprlock
|
||||||
url = https://github.com/catppuccin/hyprlock.git
|
url = https://github.com/catppuccin/hyprlock.git
|
||||||
[submodule "zathura/catppuccin-zathura"]
|
|
||||||
path = zathura/catppuccin-zathura
|
|
||||||
url = https://github.com/catppuccin/zathura.git
|
|
||||||
[submodule "nvim/pack/nvim/start/mini.nvim"]
|
[submodule "nvim/pack/nvim/start/mini.nvim"]
|
||||||
path = nvim/pack/nvim/start/mini.nvim
|
path = nvim/pack/nvim/start/mini.nvim
|
||||||
url = https://github.com/echasnovski/mini.nvim
|
url = https://github.com/echasnovski/mini.nvim
|
||||||
[submodule "nvim/pack/nvim/start/nvim-lspconfig"]
|
[submodule "nvim/pack/nvim/start/nvim-lspconfig"]
|
||||||
path = nvim/pack/nvim/start/nvim-lspconfig
|
path = nvim/pack/nvim/start/nvim-lspconfig
|
||||||
url = https://github.com/neovim/nvim-lspconfig
|
url = https://github.com/neovim/nvim-lspconfig
|
||||||
[submodule "btop/catppuccin-btop"]
|
|
||||||
path = btop/catppuccin-btop
|
|
||||||
url = https://github.com/catppuccin/btop.git
|
|
||||||
[submodule "fuzzel/catppuccin-fuzzel"]
|
|
||||||
path = fuzzel/catppuccin-fuzzel
|
|
||||||
url = https://github.com/catppuccin/fuzzel.git
|
|
||||||
[submodule "nvim"]
|
[submodule "nvim"]
|
||||||
path = nvim
|
path = nvim
|
||||||
url = https://git.narl.io/nvrl/nvim-config.git
|
url = https://git.narl.io/nvrl/nvim-config.git
|
||||||
@@ -13,7 +13,7 @@ position = "None"
|
|||||||
dynamic_padding = true
|
dynamic_padding = true
|
||||||
decorations = "None"
|
decorations = "None"
|
||||||
|
|
||||||
## Fully opaque, no blur. Persona surfaces are flat ink on flat ground —
|
## Fully opaque, no blur. YoRHa surfaces are flat and opaque —
|
||||||
## glass and translucency read as a different design language entirely.
|
## glass and translucency read as a different design language entirely.
|
||||||
opacity = 1.0
|
opacity = 1.0
|
||||||
blur = false
|
blur = false
|
||||||
@@ -28,7 +28,7 @@ columns = 82
|
|||||||
lines = 24
|
lines = 24
|
||||||
|
|
||||||
## Blank space added around the window in pixels. Roomier than the old 3/0 —
|
## Blank space added around the window in pixels. Roomier than the old 3/0 —
|
||||||
## the text needs to sit inside the crimson border, not against it.
|
## the text needs to sit inside the border, not against it.
|
||||||
[window.padding]
|
[window.padding]
|
||||||
x = 12
|
x = 12
|
||||||
y = 8
|
y = 8
|
||||||
@@ -107,7 +107,7 @@ ipc_socket = true
|
|||||||
## GENERAL --------------------------------------------------------
|
## GENERAL --------------------------------------------------------
|
||||||
|
|
||||||
## Import additional configuration files.
|
## Import additional configuration files.
|
||||||
import = ["~/.config/alacritty/takemi.toml", "~/.config/alacritty/fonts.toml"]
|
import = ["~/.config/alacritty/yorha.toml", "~/.config/alacritty/fonts.toml"]
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
[[keyboard.bindings]]
|
||||||
key = "Return"
|
key = "Return"
|
||||||
|
|||||||
@@ -4,9 +4,11 @@ foreground = "#cdd6f4"
|
|||||||
dim_foreground = "#7f849c"
|
dim_foreground = "#7f849c"
|
||||||
bright_foreground = "#cdd6f4"
|
bright_foreground = "#cdd6f4"
|
||||||
|
|
||||||
|
# Cursor in the shell accent (Mocha blue) rather than stock rosewater, so the
|
||||||
|
# terminal caret matches the focus colour everywhere else on the desktop.
|
||||||
[colors.cursor]
|
[colors.cursor]
|
||||||
text = "#1e1e2e"
|
text = "#11111b"
|
||||||
cursor = "#f5e0dc"
|
cursor = "#89b4fa"
|
||||||
|
|
||||||
[colors.vi_mode_cursor]
|
[colors.vi_mode_cursor]
|
||||||
text = "#1e1e2e"
|
text = "#1e1e2e"
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
# YoRHa dark — matched to ~/.config/quickshell/config/Theme.qml.
|
||||||
|
#
|
||||||
|
# The ground and the text are the space-1 wallpaper's void and sage grey. The
|
||||||
|
# eight hues are the same few steps of earth NieR's world is painted in —
|
||||||
|
# rust, moss, sand, dusk — pulled down to sit in that void without glowing.
|
||||||
|
# Selection and search invert, the way NieR's cursor does.
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#0f110e"
|
||||||
|
foreground = "#ccd2cb"
|
||||||
|
dim_foreground = "#79847a"
|
||||||
|
bright_foreground = "#eef1ea"
|
||||||
|
|
||||||
|
[colors.cursor]
|
||||||
|
text = "#0f110e"
|
||||||
|
cursor = "#eef1ea"
|
||||||
|
|
||||||
|
[colors.vi_mode_cursor]
|
||||||
|
text = "#0f110e"
|
||||||
|
cursor = "#bcc1bf"
|
||||||
|
|
||||||
|
[colors.search.matches]
|
||||||
|
foreground = "#0f110e"
|
||||||
|
background = "#9fa7a2"
|
||||||
|
|
||||||
|
[colors.search.focused_match]
|
||||||
|
foreground = "#0f110e"
|
||||||
|
background = "#eef1ea"
|
||||||
|
|
||||||
|
[colors.footer_bar]
|
||||||
|
foreground = "#0f110e"
|
||||||
|
background = "#9fa7a2"
|
||||||
|
|
||||||
|
[colors.hints.start]
|
||||||
|
foreground = "#0f110e"
|
||||||
|
background = "#c9b27c"
|
||||||
|
|
||||||
|
[colors.hints.end]
|
||||||
|
foreground = "#0f110e"
|
||||||
|
background = "#9fa7a2"
|
||||||
|
|
||||||
|
[colors.selection]
|
||||||
|
text = "#0f110e"
|
||||||
|
background = "#bcc1bf"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#20241f"
|
||||||
|
red = "#c8684f"
|
||||||
|
green = "#8fa37e"
|
||||||
|
yellow = "#c9b27c"
|
||||||
|
blue = "#7f9aa8"
|
||||||
|
magenta = "#a48ba0"
|
||||||
|
cyan = "#86a8a0"
|
||||||
|
white = "#bcc1bf"
|
||||||
|
|
||||||
|
# Bright black doubles as a panel fill in TUIs (Claude Code's side pane, fzf
|
||||||
|
# previews), so it sits one step under the outline grey rather than at it:
|
||||||
|
# light enough for comments, dark enough not to read as a slab.
|
||||||
|
[colors.bright]
|
||||||
|
black = "#464d44"
|
||||||
|
red = "#d98068"
|
||||||
|
green = "#a5b893"
|
||||||
|
yellow = "#d8c491"
|
||||||
|
blue = "#96afbc"
|
||||||
|
magenta = "#b8a0b4"
|
||||||
|
cyan = "#9cbdb4"
|
||||||
|
white = "#eef1ea"
|
||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#* 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"
|
||||||
color_theme = "/home/narl/.config/btop/themes/catppuccin_mocha.theme"
|
color_theme = "/home/narl/.config/btop/themes/yorha.theme"
|
||||||
|
|
||||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||||
theme_background = false
|
theme_background = false
|
||||||
@@ -68,7 +68,7 @@ update_ms = 1000
|
|||||||
|
|
||||||
#* 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 = "memory"
|
proc_sorting = "cpu direct"
|
||||||
|
|
||||||
#* Reverse sorting order, True or False.
|
#* Reverse sorting order, True or False.
|
||||||
proc_reversed = false
|
proc_reversed = false
|
||||||
|
|||||||
Submodule btop/catppuccin-btop deleted from f437574b60.
@@ -1,83 +0,0 @@
|
|||||||
# Main background, empty for terminal default, need to be empty if you want transparent background
|
|
||||||
theme[main_bg]="#1e1e2e"
|
|
||||||
|
|
||||||
# Main text color
|
|
||||||
theme[main_fg]="#cdd6f4"
|
|
||||||
|
|
||||||
# Title color for boxes
|
|
||||||
theme[title]="#cdd6f4"
|
|
||||||
|
|
||||||
# Highlight color for keyboard shortcuts
|
|
||||||
theme[hi_fg]="#89b4fa"
|
|
||||||
|
|
||||||
# Background color of selected item in processes box
|
|
||||||
theme[selected_bg]="#45475a"
|
|
||||||
|
|
||||||
# Foreground color of selected item in processes box
|
|
||||||
theme[selected_fg]="#89b4fa"
|
|
||||||
|
|
||||||
# Color of inactive/disabled text
|
|
||||||
theme[inactive_fg]="#7f849c"
|
|
||||||
|
|
||||||
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
|
||||||
theme[graph_text]="#f5e0dc"
|
|
||||||
|
|
||||||
# Background color of the percentage meters
|
|
||||||
theme[meter_bg]="#45475a"
|
|
||||||
|
|
||||||
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
|
||||||
theme[proc_misc]="#f5e0dc"
|
|
||||||
|
|
||||||
# CPU, Memory, Network, Proc box outline colors
|
|
||||||
theme[cpu_box]="#cba6f7" #Mauve
|
|
||||||
theme[mem_box]="#a6e3a1" #Green
|
|
||||||
theme[net_box]="#eba0ac" #Maroon
|
|
||||||
theme[proc_box]="#89b4fa" #Blue
|
|
||||||
|
|
||||||
# Box divider line and small boxes line color
|
|
||||||
theme[div_line]="#6c7086"
|
|
||||||
|
|
||||||
# Temperature graph color (Green -> Yellow -> Red)
|
|
||||||
theme[temp_start]="#a6e3a1"
|
|
||||||
theme[temp_mid]="#f9e2af"
|
|
||||||
theme[temp_end]="#f38ba8"
|
|
||||||
|
|
||||||
# CPU graph colors (Teal -> Lavender)
|
|
||||||
theme[cpu_start]="#94e2d5"
|
|
||||||
theme[cpu_mid]="#74c7ec"
|
|
||||||
theme[cpu_end]="#b4befe"
|
|
||||||
|
|
||||||
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
|
||||||
theme[free_start]="#cba6f7"
|
|
||||||
theme[free_mid]="#b4befe"
|
|
||||||
theme[free_end]="#89b4fa"
|
|
||||||
|
|
||||||
# Mem/Disk cached meter (Sapphire -> Lavender)
|
|
||||||
theme[cached_start]="#74c7ec"
|
|
||||||
theme[cached_mid]="#89b4fa"
|
|
||||||
theme[cached_end]="#b4befe"
|
|
||||||
|
|
||||||
# Mem/Disk available meter (Peach -> Red)
|
|
||||||
theme[available_start]="#fab387"
|
|
||||||
theme[available_mid]="#eba0ac"
|
|
||||||
theme[available_end]="#f38ba8"
|
|
||||||
|
|
||||||
# Mem/Disk used meter (Green -> Sky)
|
|
||||||
theme[used_start]="#a6e3a1"
|
|
||||||
theme[used_mid]="#94e2d5"
|
|
||||||
theme[used_end]="#89dceb"
|
|
||||||
|
|
||||||
# Download graph colors (Peach -> Red)
|
|
||||||
theme[download_start]="#fab387"
|
|
||||||
theme[download_mid]="#eba0ac"
|
|
||||||
theme[download_end]="#f38ba8"
|
|
||||||
|
|
||||||
# Upload graph colors (Green -> Sky)
|
|
||||||
theme[upload_start]="#a6e3a1"
|
|
||||||
theme[upload_mid]="#94e2d5"
|
|
||||||
theme[upload_end]="#89dceb"
|
|
||||||
|
|
||||||
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
|
|
||||||
theme[process_start]="#74c7ec"
|
|
||||||
theme[process_mid]="#b4befe"
|
|
||||||
theme[process_end]="#cba6f7"
|
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
# YoRHa dark — matched to ~/.config/quickshell/config/Theme.qml and
|
||||||
|
# ~/.config/alacritty/yorha.toml.
|
||||||
|
#
|
||||||
|
# The void ground and sage text of the space-1 wallpaper. Boxes are hairline
|
||||||
|
# grey, not four competing hues; the light marks what is selected. Every
|
||||||
|
# gradient climbs from the suit's grey up to the light, and only temperature
|
||||||
|
# and load run on into the hull's rust, the shell's one colour for "wrong".
|
||||||
|
|
||||||
|
theme[main_bg]="#0f110e"
|
||||||
|
theme[main_fg]="#ccd2cb"
|
||||||
|
theme[title]="#eef1ea"
|
||||||
|
theme[hi_fg]="#eef1ea"
|
||||||
|
theme[selected_bg]="#20241f"
|
||||||
|
theme[selected_fg]="#eef1ea"
|
||||||
|
theme[inactive_fg]="#545c52"
|
||||||
|
theme[graph_text]="#9fa7a2"
|
||||||
|
theme[meter_bg]="#20241f"
|
||||||
|
theme[proc_misc]="#9fa7a2"
|
||||||
|
|
||||||
|
theme[cpu_box]="#383e35"
|
||||||
|
theme[mem_box]="#383e35"
|
||||||
|
theme[net_box]="#383e35"
|
||||||
|
theme[proc_box]="#383e35"
|
||||||
|
theme[div_line]="#2a2f28"
|
||||||
|
|
||||||
|
theme[temp_start]="#8e978d"
|
||||||
|
theme[temp_mid]="#c9b27c"
|
||||||
|
theme[temp_end]="#c8684f"
|
||||||
|
|
||||||
|
theme[cpu_start]="#79847a"
|
||||||
|
theme[cpu_mid]="#bcc1bf"
|
||||||
|
theme[cpu_end]="#c8684f"
|
||||||
|
|
||||||
|
theme[free_start]="#545c52"
|
||||||
|
theme[free_mid]="#79847a"
|
||||||
|
theme[free_end]="#9fa7a2"
|
||||||
|
|
||||||
|
theme[cached_start]="#545c52"
|
||||||
|
theme[cached_mid]="#7f9aa8"
|
||||||
|
theme[cached_end]="#96afbc"
|
||||||
|
|
||||||
|
theme[available_start]="#545c52"
|
||||||
|
theme[available_mid]="#86a8a0"
|
||||||
|
theme[available_end]="#9cbdb4"
|
||||||
|
|
||||||
|
theme[used_start]="#79847a"
|
||||||
|
theme[used_mid]="#bcc1bf"
|
||||||
|
theme[used_end]="#eef1ea"
|
||||||
|
|
||||||
|
theme[download_start]="#545c52"
|
||||||
|
theme[download_mid]="#8fa37e"
|
||||||
|
theme[download_end]="#a5b893"
|
||||||
|
|
||||||
|
theme[upload_start]="#545c52"
|
||||||
|
theme[upload_mid]="#c9b27c"
|
||||||
|
theme[upload_end]="#d8c491"
|
||||||
|
|
||||||
|
theme[process_start]="#79847a"
|
||||||
|
theme[process_mid]="#9fa7a2"
|
||||||
|
theme[process_end]="#eef1ea"
|
||||||
+10
-10
@@ -1,22 +1,22 @@
|
|||||||
[global]
|
[global]
|
||||||
corner_radius = 4
|
corner_radius = 0
|
||||||
transparency = 90
|
transparency = 90
|
||||||
frame_color = "#f38ba8"
|
frame_color = "#545c52"
|
||||||
frame_width = 1
|
frame_width = 1
|
||||||
separator_color= frame
|
separator_color= frame
|
||||||
highlight = "#89dceb"
|
highlight = "#eef1ea"
|
||||||
|
|
||||||
[urgency_low]
|
[urgency_low]
|
||||||
background = "#1e1e2e"
|
background = "#0f110e"
|
||||||
foreground = "#cdd6f4"
|
foreground = "#ccd2cb"
|
||||||
timeout = 4
|
timeout = 4
|
||||||
|
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background = "#1e1e2e"
|
background = "#0f110e"
|
||||||
foreground = "#cdd6f4"
|
foreground = "#ccd2cb"
|
||||||
timeout = 6
|
timeout = 6
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#1e1e2e"
|
background = "#0f110e"
|
||||||
foreground = "#cdd6f4"
|
foreground = "#ccd2cb"
|
||||||
frame_color = "#f38ba8"
|
frame_color = "#c8684f"
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# Print an optspec for argparse to handle cmd's options that are independent of any subcommand.
|
||||||
|
function __fish_claude_account_global_optspecs
|
||||||
|
string join \n h/help V/version
|
||||||
|
end
|
||||||
|
|
||||||
|
function __fish_claude_account_needs_command
|
||||||
|
# Figure out if the current invocation already has a command.
|
||||||
|
set -l cmd (commandline -opc)
|
||||||
|
set -e cmd[1]
|
||||||
|
argparse -s (__fish_claude_account_global_optspecs) -- $cmd 2>/dev/null
|
||||||
|
or return
|
||||||
|
if set -q argv[1]
|
||||||
|
# Also print the command, so this can be used to figure out what it is.
|
||||||
|
echo $argv[1]
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function __fish_claude_account_using_subcommand
|
||||||
|
set -l cmd (__fish_claude_account_needs_command)
|
||||||
|
test -z "$cmd"
|
||||||
|
and return 1
|
||||||
|
contains -- $cmd[1] $argv
|
||||||
|
end
|
||||||
|
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -s V -l version -d 'Print version'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "status" -d 'Show every account, every proxy, every name and everything that is wrong'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "list" -d 'List the accounts, one per line'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "switch" -d 'Make an account the one `claude` runs as'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "add" -d 'Register another account, with a profile and a proxy of its own'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "remove" -d 'Forget an account. Its profile directory is left where it is'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "current" -d 'Print the name of the active account'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "dir" -d 'Print the profile directory of an account, for `CLAUDE_CONFIG_DIR`'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "env" -d 'Print the shell lines that put this shell into an account'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "url" -d 'Print the address a name resolves to'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "setup" -d 'Install everything at once: the wrapper, a proxy per account, the router'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "adopt" -d 'Take over the proxy services that were written by hand'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "doctor" -d 'Report every problem and exit non-zero when there is one'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "shim" -d 'The `claude` wrapper in ~/.local/bin'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "headroom" -d 'The proxy of one account'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "router" -d 'The router that resolves <name>.headroom.localhost'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_needs_command" -f -a "completions" -d 'Tab completion, with the account names in it'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand status" -s v -l verbose -d 'Add the last lines each proxy logged'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand status" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand list" -l names -d 'Print the names alone, for scripts and for tab completion'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand list" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand switch" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand add" -l dir -d 'A profile directory elsewhere' -r -F
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand add" -l port -d 'A port for its proxy; the next free one by default' -r
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand add" -l switch -d 'Make it the account `claude` runs as straight away'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand add" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand remove" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand current" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand dir" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand env" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand url" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand setup" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand adopt" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand doctor" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and not __fish_seen_subcommand_from install uninstall" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and not __fish_seen_subcommand_from install uninstall" -f -a "install" -d 'Write ~/.local/bin/claude'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and not __fish_seen_subcommand_from install uninstall" -f -a "uninstall" -d 'Remove it again'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and __fish_seen_subcommand_from install" -l force -d 'Overwrite a `claude` that this tool did not write'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and __fish_seen_subcommand_from install" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand shim; and __fish_seen_subcommand_from uninstall" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "install" -d 'Write the service for an account and start it'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "start" -d 'Start the proxy of an account'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "stop" -d 'Stop it'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "restart" -d 'Stop and start it'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "uninstall" -d 'Stop it and remove its service'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "port" -d 'Give an account another port, and write it everywhere it is named'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and not __fish_seen_subcommand_from install start stop restart uninstall port logs" -f -a "logs" -d 'Print what one proxy logged'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from install" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from start" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from stop" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from restart" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from uninstall" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from port" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from logs" -s n -l lines -d 'How many lines' -r
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand headroom; and __fish_seen_subcommand_from logs" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -f -a "serve" -d 'Serve the names until stopped'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -f -a "install" -d 'Install the router as a user service'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -f -a "uninstall" -d 'Stop it and remove its service'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -f -a "port" -d 'Move the router to another port'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and not __fish_seen_subcommand_from serve install uninstall port list" -f -a "list" -d 'List the names that resolve'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from serve" -l port -r
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from serve" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from install" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from uninstall" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from port" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand router; and __fish_seen_subcommand_from list" -s h -l help -d 'Print help'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand completions" -l install -d 'Write the file where the shell reads it, instead of printing it'
|
||||||
|
complete -c claude-account -n "__fish_claude_account_using_subcommand completions" -s h -l help -d 'Print help'
|
||||||
|
|
||||||
|
# The accounts as they are right now, asked for when Tab is pressed.
|
||||||
|
complete -c claude-account -n '__fish_seen_subcommand_from switch dir env url remove start stop restart logs install uninstall port' -f -a '(claude-account list --names)'
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
complete --keep-order --exclusive --command enqs-guard --arguments "(COMPLETE=fish enqs-guard -- (commandline --current-process --tokenize --cut-at-cursor) (commandline --current-token))"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
complete --keep-order --exclusive --command enqs-headroom --arguments "(COMPLETE=fish enqs-headroom -- (commandline --current-process --tokenize --cut-at-cursor) (commandline --current-token))"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
complete --keep-order --exclusive --command enqs-jail --arguments "(COMPLETE=fish enqs-jail -- (commandline --current-process --tokenize --cut-at-cursor) (commandline --current-token))"
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
# Takemi — matched to ~/.config/quickshell/config/Theme.qml,
|
|
||||||
# ~/.config/alacritty/takemi.toml and ~/.config/nvim/lua/takemi.lua.
|
|
||||||
#
|
|
||||||
# Replaces the catppuccin fish_frozen_theme.fish that fish 4.3 generated on
|
|
||||||
# upgrade. Same content as themes/Takemi.theme — that copy exists only so
|
|
||||||
# `fish_config` can preview it; this one is what actually loads.
|
|
||||||
#
|
|
||||||
# Note that `fish_config` writing a theme from the web UI will recreate
|
|
||||||
# fish_frozen_theme.fish, which sorts before this file and so would lose.
|
|
||||||
|
|
||||||
set --global fish_color_normal ffffff
|
|
||||||
set --global fish_color_command ffffff --bold
|
|
||||||
set --global fish_color_keyword ff2d40
|
|
||||||
set --global fish_color_param c8c8ce
|
|
||||||
set --global fish_color_option 8d9bb8
|
|
||||||
set --global fish_color_quote 7f9b6a
|
|
||||||
set --global fish_color_escape 9db8bd
|
|
||||||
set --global fish_color_operator c8c8ce
|
|
||||||
set --global fish_color_redirection ff6b78
|
|
||||||
set --global fish_color_end 6b6b70
|
|
||||||
set --global fish_color_comment 6b6b70 --italics
|
|
||||||
set --global fish_color_error ff2d40 --bold
|
|
||||||
set --global fish_color_cancel ff2d40
|
|
||||||
set --global fish_color_gray 6b6b70
|
|
||||||
set --global fish_color_autosuggestion 4a4a52
|
|
||||||
set --global fish_color_selection 000000 --background=ff2d40
|
|
||||||
set --global fish_color_search_match 000000 --background=c8c8ce
|
|
||||||
set --global fish_color_match 000000 --background=ff2d40
|
|
||||||
set --global fish_color_history_current --bold
|
|
||||||
set --global fish_color_valid_path --underline
|
|
||||||
set --global fish_color_cwd ffffff --bold
|
|
||||||
set --global fish_color_cwd_root ff2d40 --bold
|
|
||||||
set --global fish_color_user c8c8ce
|
|
||||||
set --global fish_color_host ffffff --bold
|
|
||||||
set --global fish_color_host_remote ff6b78
|
|
||||||
set --global fish_color_status ff2d40
|
|
||||||
|
|
||||||
set --global fish_pager_color_progress 6b6b70 --background=141418
|
|
||||||
set --global fish_pager_color_background
|
|
||||||
set --global fish_pager_color_prefix ffffff --bold
|
|
||||||
set --global fish_pager_color_completion c8c8ce
|
|
||||||
set --global fish_pager_color_description 6b6b70
|
|
||||||
set --global fish_pager_color_secondary_background --background=0d0d10
|
|
||||||
set --global fish_pager_color_secondary_completion c8c8ce
|
|
||||||
set --global fish_pager_color_secondary_description 6b6b70
|
|
||||||
set --global fish_pager_color_secondary_prefix ffffff --bold
|
|
||||||
set --global fish_pager_color_selected_background --background=ff2d40
|
|
||||||
set --global fish_pager_color_selected_completion 000000
|
|
||||||
set --global fish_pager_color_selected_description 000000
|
|
||||||
set --global fish_pager_color_selected_prefix 000000 --bold
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# YoRHa dark — matched to ~/.config/quickshell/config/Theme.qml and
|
||||||
|
# ~/.config/alacritty/yorha.toml.
|
||||||
|
#
|
||||||
|
# Commands are the planet light, arguments the sage text, strings moss,
|
||||||
|
# anything wrong the hull red. Selection and the pager's current row invert —
|
||||||
|
# a light slab with the void punched out of it, the same cursor the shell
|
||||||
|
# draws.
|
||||||
|
#
|
||||||
|
# Note that `fish_config` writing a theme from the web UI will recreate
|
||||||
|
# fish_frozen_theme.fish, which sorts before this file and so would lose.
|
||||||
|
|
||||||
|
set --global fish_color_normal ccd2cb
|
||||||
|
set --global fish_color_command eef1ea --bold
|
||||||
|
set --global fish_color_keyword c9b27c
|
||||||
|
set --global fish_color_param bcc1bf
|
||||||
|
set --global fish_color_option 9cbdb4
|
||||||
|
set --global fish_color_quote 8fa37e
|
||||||
|
set --global fish_color_escape c9b27c
|
||||||
|
set --global fish_color_operator 9fa7a2
|
||||||
|
set --global fish_color_redirection 9fa7a2
|
||||||
|
set --global fish_color_end 79847a
|
||||||
|
set --global fish_color_comment 545c52
|
||||||
|
set --global fish_color_error c8684f --bold
|
||||||
|
set --global fish_color_cancel c8684f
|
||||||
|
set --global fish_color_gray 545c52
|
||||||
|
set --global fish_color_autosuggestion 545c52
|
||||||
|
set --global fish_color_selection 0f110e --background=bcc1bf
|
||||||
|
set --global fish_color_search_match 0f110e --background=eef1ea
|
||||||
|
set --global fish_color_match 0f110e --background=bcc1bf
|
||||||
|
set --global fish_color_history_current --bold
|
||||||
|
set --global fish_color_valid_path --underline
|
||||||
|
set --global fish_color_cwd c9b27c --bold
|
||||||
|
set --global fish_color_cwd_root c8684f --bold
|
||||||
|
set --global fish_color_user 9cbdb4
|
||||||
|
set --global fish_color_host eef1ea --bold
|
||||||
|
set --global fish_color_host_remote 8fa37e
|
||||||
|
set --global fish_color_status c8684f
|
||||||
|
|
||||||
|
set --global fish_pager_color_progress 79847a --background=161915
|
||||||
|
set --global fish_pager_color_background
|
||||||
|
set --global fish_pager_color_prefix eef1ea --bold
|
||||||
|
set --global fish_pager_color_completion ccd2cb
|
||||||
|
set --global fish_pager_color_description 79847a
|
||||||
|
set --global fish_pager_color_secondary_background --background=0c0d0b
|
||||||
|
set --global fish_pager_color_secondary_completion ccd2cb
|
||||||
|
set --global fish_pager_color_secondary_description 79847a
|
||||||
|
set --global fish_pager_color_secondary_prefix eef1ea --bold
|
||||||
|
set --global fish_pager_color_selected_background --background=eef1ea
|
||||||
|
set --global fish_pager_color_selected_completion 0f110e
|
||||||
|
set --global fish_pager_color_selected_description 0f110e
|
||||||
|
set --global fish_pager_color_selected_prefix 0f110e --bold
|
||||||
@@ -38,6 +38,3 @@ if status is-login && test -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY"
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Claude environments
|
|
||||||
alias claude="CLAUDE_CONFIG_DIR=~/.claude command claude"
|
|
||||||
alias claude-work="CLAUDE_CONFIG_DIR=~/.claude-work command claude"
|
|
||||||
+25
-3
@@ -5,9 +5,16 @@
|
|||||||
# strings. The Quickshell config (~/.config/quickshell/services/Sys.qml) parses
|
# strings. The Quickshell config (~/.config/quickshell/services/Sys.qml) parses
|
||||||
# them and does its own formatting. The previous human-readable Waybar formats
|
# them and does its own formatting. The previous human-readable Waybar formats
|
||||||
# are preserved in config.toml.waybar-bak.
|
# are preserved in config.toml.waybar-bak.
|
||||||
|
#
|
||||||
|
# Quickshell only consumes cpu, mem, gpu, disk, net, sys and power from fluxo.
|
||||||
|
# Everything else it gets natively — Quickshell.Services.Mpris, .Pipewire,
|
||||||
|
# .UPower, .Notifications, Quickshell.Bluetooth — and Brightness.qml reads
|
||||||
|
# sysfs directly. Those fluxo modules are therefore switched off below: left on,
|
||||||
|
# they held a libpulse context, a BlueZ D-Bus poll every 2 s and an MPRIS
|
||||||
|
# marquee ticker firing twice a second, all feeding a bar that does not exist.
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
menu_command = "fuzzel --dmenu --prompt \"$FLUXO_PROMPT\""
|
menu_command = "takemi-dmenu --prompt \"$FLUXO_PROMPT\""
|
||||||
|
|
||||||
[signals]
|
[signals]
|
||||||
network = 1
|
network = 1
|
||||||
@@ -44,12 +51,18 @@ format = "{mount}|{used:.1}|{total:.1}"
|
|||||||
format = "{percentage}"
|
format = "{percentage}"
|
||||||
|
|
||||||
[audio]
|
[audio]
|
||||||
|
# Quickshell.Services.Pipewire drives Audio.qml; leaving this on kept a
|
||||||
|
# libpulse context and its callbacks alive for nothing.
|
||||||
|
enabled = false
|
||||||
format_sink_unmuted = "{name} {volume:>3}% <span size='large'>{icon}</span>"
|
format_sink_unmuted = "{name} {volume:>3}% <span size='large'>{icon}</span>"
|
||||||
format_sink_muted = "{name} <span size='large'> {icon}</span>"
|
format_sink_muted = "{name} <span size='large'> {icon}</span>"
|
||||||
format_source_unmuted = "{name} {volume:>3}% <span size='large'>{icon}</span>"
|
format_source_unmuted = "{name} {volume:>3}% <span size='large'>{icon}</span>"
|
||||||
format_source_muted = "{name} <span size='large'>{icon}</span>"
|
format_source_muted = "{name} <span size='large'>{icon}</span>"
|
||||||
|
|
||||||
[bt]
|
[bt]
|
||||||
|
# Quickshell.Bluetooth drives Bt.qml. This module polled BlueZ over D-Bus every
|
||||||
|
# 2 seconds regardless.
|
||||||
|
enabled = false
|
||||||
format_plugin = "{alias} [{left}|{right}] {anc} <span size='large'></span>"
|
format_plugin = "{alias} [{left}|{right}] {anc} <span size='large'></span>"
|
||||||
format_connected = "{alias} <span size='large'></span>"
|
format_connected = "{alias} <span size='large'></span>"
|
||||||
format_disconnected = "Disconnected <span size='large'></span>"
|
format_disconnected = "Disconnected <span size='large'></span>"
|
||||||
@@ -60,6 +73,11 @@ format_active = "<span size='large'></span>"
|
|||||||
format_inactive = "<span size='large'></span>"
|
format_inactive = "<span size='large'></span>"
|
||||||
|
|
||||||
[mpris]
|
[mpris]
|
||||||
|
# Quickshell.Services.Mpris drives Media.qml, and MediaPill/MediaPopout do their
|
||||||
|
# own eliding and scrolling. This module was the single most expensive thing in
|
||||||
|
# the daemon: `scroll` woke a ticker every `scroll_speed` ms to advance a marquee
|
||||||
|
# offset for a Waybar that is not running, and each tick drove the signaler.
|
||||||
|
enabled = false
|
||||||
format = "{artist} - {title}"
|
format = "{artist} - {title}"
|
||||||
max_length = 20
|
max_length = 20
|
||||||
scroll = true
|
scroll = true
|
||||||
@@ -81,10 +99,14 @@ enabled = false
|
|||||||
format = "{layout}"
|
format = "{layout}"
|
||||||
|
|
||||||
[backlight]
|
[backlight]
|
||||||
enable = true
|
# Was `enable = true` — not a key fluxo reads, so this section was silently
|
||||||
|
# running on its default of enabled. Brightness.qml reads
|
||||||
|
# /sys/class/backlight directly, so the D-Bus watcher here is redundant.
|
||||||
|
enabled = false
|
||||||
format = "{percentage}"
|
format = "{percentage}"
|
||||||
|
|
||||||
[dnd]
|
[dnd]
|
||||||
enabled = true
|
# Notifs.qml owns do-not-disturb via Quickshell.Services.Notifications.
|
||||||
|
enabled = false
|
||||||
format_dnd = "<span size='large'></span>"
|
format_dnd = "<span size='large'></span>"
|
||||||
format_normal = "<span size='large'></span>"
|
format_normal = "<span size='large'></span>"
|
||||||
Submodule fuzzel/catppuccin-fuzzel deleted from 0af0e26901.
@@ -1,19 +0,0 @@
|
|||||||
include=~/.config/fuzzel/takemi.ini
|
|
||||||
|
|
||||||
[main]
|
|
||||||
# JetBrainsMono to match Theme.fontMono, so the launcher and the bar are
|
|
||||||
# visibly the same typeface.
|
|
||||||
font=JetBrainsMono Nerd Font:size=14
|
|
||||||
terminal=alacritty
|
|
||||||
dpi-aware=no
|
|
||||||
|
|
||||||
width=45
|
|
||||||
lines=8
|
|
||||||
horizontal-pad=20
|
|
||||||
vertical-pad=20
|
|
||||||
inner-pad=10
|
|
||||||
|
|
||||||
prompt=" "
|
|
||||||
|
|
||||||
show-actions=no
|
|
||||||
layer=overlay
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Takemi — matched to ~/.config/quickshell/config/Theme.qml,
|
|
||||||
# ~/.config/alacritty/takemi.toml and ~/.config/nvim/lua/takemi.lua.
|
|
||||||
#
|
|
||||||
# Near-black ground, white text, crimson as the only saturated colour. The
|
|
||||||
# selection is a solid crimson block with the text punched out of it in black,
|
|
||||||
# which is the same "active" signal the bar and the terminal use.
|
|
||||||
|
|
||||||
[colors]
|
|
||||||
# Flat and fully opaque. The Persona surfaces are ink on ground — translucency
|
|
||||||
# and blur read as a different design language, so the alpha stays at ff.
|
|
||||||
background=0a0a0cff
|
|
||||||
text=c8c8ceff
|
|
||||||
input=ffffffff
|
|
||||||
placeholder=6b6b70ff
|
|
||||||
prompt=ff2d40ff
|
|
||||||
|
|
||||||
# Fuzzy-match characters in an unselected row: crimson, since they are the
|
|
||||||
# reason the row is on screen at all.
|
|
||||||
match=ff2d40ff
|
|
||||||
|
|
||||||
selection=ff2d40ff
|
|
||||||
selection-text=000000ff
|
|
||||||
# White rather than black, so the matched characters still read as marked once
|
|
||||||
# the row is already crimson.
|
|
||||||
selection-match=ffffffff
|
|
||||||
|
|
||||||
# Deliberately the same as the background — hides the match counter.
|
|
||||||
counter=0a0a0cff
|
|
||||||
|
|
||||||
border=ff2d40ff
|
|
||||||
|
|
||||||
[border]
|
|
||||||
# Square. Every corner in this style is either a right angle or a hard chamfer;
|
|
||||||
# nothing in the shell is rounded.
|
|
||||||
radius=0
|
|
||||||
# Theme.stroke.
|
|
||||||
width=2
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/* YoRHa colours for adw-gtk3 — kept in step with
|
||||||
|
* ~/.config/quickshell/config/Theme.qml and gtk-4.0/gtk.css.
|
||||||
|
*
|
||||||
|
* adw-gtk3 draws the libadwaita shapes (soft corners, flat cards) and takes
|
||||||
|
* every surface from these named colours, so the whole palette lives here.
|
||||||
|
* Selection is the shell's light slab with ink text; red only for destructive
|
||||||
|
* and failed. */
|
||||||
|
|
||||||
|
@define-color accent_color #eef1ea;
|
||||||
|
@define-color accent_bg_color #bcc1bf;
|
||||||
|
@define-color accent_fg_color #090a08;
|
||||||
|
|
||||||
|
@define-color destructive_color #c8684f;
|
||||||
|
@define-color destructive_bg_color #c8684f;
|
||||||
|
@define-color destructive_fg_color #090a08;
|
||||||
|
@define-color error_color #c8684f;
|
||||||
|
@define-color error_bg_color #c8684f;
|
||||||
|
@define-color error_fg_color #090a08;
|
||||||
|
@define-color warning_color #c9b27c;
|
||||||
|
@define-color warning_bg_color #c9b27c;
|
||||||
|
@define-color warning_fg_color #090a08;
|
||||||
|
@define-color success_color #8fa37e;
|
||||||
|
@define-color success_bg_color #8fa37e;
|
||||||
|
@define-color success_fg_color #090a08;
|
||||||
|
|
||||||
|
@define-color window_bg_color #0f110e;
|
||||||
|
@define-color window_fg_color #ccd2cb;
|
||||||
|
@define-color view_bg_color #0c0d0b;
|
||||||
|
@define-color view_fg_color #ccd2cb;
|
||||||
|
|
||||||
|
@define-color headerbar_bg_color #161915;
|
||||||
|
@define-color headerbar_fg_color #ccd2cb;
|
||||||
|
@define-color headerbar_border_color #2a2f28;
|
||||||
|
@define-color headerbar_backdrop_color #0f110e;
|
||||||
|
@define-color headerbar_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
|
||||||
|
@define-color sidebar_bg_color #161915;
|
||||||
|
@define-color sidebar_fg_color #ccd2cb;
|
||||||
|
@define-color sidebar_backdrop_color #0f110e;
|
||||||
|
@define-color sidebar_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color secondary_sidebar_bg_color #0f110e;
|
||||||
|
@define-color secondary_sidebar_fg_color #ccd2cb;
|
||||||
|
@define-color secondary_sidebar_backdrop_color #0c0d0b;
|
||||||
|
|
||||||
|
@define-color card_bg_color #161915;
|
||||||
|
@define-color card_fg_color #ccd2cb;
|
||||||
|
@define-color card_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color dialog_bg_color #161915;
|
||||||
|
@define-color dialog_fg_color #ccd2cb;
|
||||||
|
@define-color popover_bg_color #20241f;
|
||||||
|
@define-color popover_fg_color #ccd2cb;
|
||||||
|
@define-color popover_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color thumbnail_bg_color #20241f;
|
||||||
|
@define-color thumbnail_fg_color #ccd2cb;
|
||||||
|
|
||||||
|
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Settings]
|
||||||
|
gtk-theme-name=adw-gtk3-dark
|
||||||
|
gtk-icon-theme-name=Papirus-Dark
|
||||||
|
gtk-font-name=Noto Sans 11
|
||||||
|
gtk-cursor-theme-name=Bibata-Modern-Classic
|
||||||
|
gtk-cursor-theme-size=24
|
||||||
|
gtk-application-prefer-dark-theme=1
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
/* YoRHa colours for libadwaita and adw-gtk3 — kept in step with
|
||||||
|
* ~/.config/quickshell/config/Theme.qml and gtk-3.0/gtk.css.
|
||||||
|
*
|
||||||
|
* libadwaita reads its palette from CSS variables; the named colours below
|
||||||
|
* the variables cover GTK4 apps that still go through the adw-gtk3 theme. */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--accent-color: #eef1ea;
|
||||||
|
--accent-bg-color: #bcc1bf;
|
||||||
|
--accent-fg-color: #090a08;
|
||||||
|
--destructive-color: #c8684f;
|
||||||
|
--destructive-bg-color: #c8684f;
|
||||||
|
--destructive-fg-color: #090a08;
|
||||||
|
--error-color: #c8684f;
|
||||||
|
--error-bg-color: #c8684f;
|
||||||
|
--error-fg-color: #090a08;
|
||||||
|
--warning-color: #c9b27c;
|
||||||
|
--warning-bg-color: #c9b27c;
|
||||||
|
--warning-fg-color: #090a08;
|
||||||
|
--success-color: #8fa37e;
|
||||||
|
--success-bg-color: #8fa37e;
|
||||||
|
--success-fg-color: #090a08;
|
||||||
|
--window-bg-color: #0f110e;
|
||||||
|
--window-fg-color: #ccd2cb;
|
||||||
|
--view-bg-color: #0c0d0b;
|
||||||
|
--view-fg-color: #ccd2cb;
|
||||||
|
--headerbar-bg-color: #161915;
|
||||||
|
--headerbar-fg-color: #ccd2cb;
|
||||||
|
--headerbar-border-color: #2a2f28;
|
||||||
|
--headerbar-backdrop-color: #0f110e;
|
||||||
|
--headerbar-shade-color: rgba(0, 0, 0, 0.36);
|
||||||
|
--sidebar-bg-color: #161915;
|
||||||
|
--sidebar-fg-color: #ccd2cb;
|
||||||
|
--sidebar-backdrop-color: #0f110e;
|
||||||
|
--sidebar-shade-color: rgba(0, 0, 0, 0.36);
|
||||||
|
--secondary-sidebar-bg-color: #0f110e;
|
||||||
|
--secondary-sidebar-fg-color: #ccd2cb;
|
||||||
|
--secondary-sidebar-backdrop-color: #0c0d0b;
|
||||||
|
--card-bg-color: #161915;
|
||||||
|
--card-fg-color: #ccd2cb;
|
||||||
|
--card-shade-color: rgba(0, 0, 0, 0.36);
|
||||||
|
--dialog-bg-color: #161915;
|
||||||
|
--dialog-fg-color: #ccd2cb;
|
||||||
|
--popover-bg-color: #20241f;
|
||||||
|
--popover-fg-color: #ccd2cb;
|
||||||
|
--popover-shade-color: rgba(0, 0, 0, 0.36);
|
||||||
|
--thumbnail-bg-color: #20241f;
|
||||||
|
--thumbnail-fg-color: #ccd2cb;
|
||||||
|
--shade-color: rgba(0, 0, 0, 0.36);
|
||||||
|
--scrollbar-outline-color: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
@define-color accent_color #eef1ea;
|
||||||
|
@define-color accent_bg_color #bcc1bf;
|
||||||
|
@define-color accent_fg_color #090a08;
|
||||||
|
@define-color destructive_color #c8684f;
|
||||||
|
@define-color destructive_bg_color #c8684f;
|
||||||
|
@define-color destructive_fg_color #090a08;
|
||||||
|
@define-color error_color #c8684f;
|
||||||
|
@define-color error_bg_color #c8684f;
|
||||||
|
@define-color error_fg_color #090a08;
|
||||||
|
@define-color warning_color #c9b27c;
|
||||||
|
@define-color warning_bg_color #c9b27c;
|
||||||
|
@define-color warning_fg_color #090a08;
|
||||||
|
@define-color success_color #8fa37e;
|
||||||
|
@define-color success_bg_color #8fa37e;
|
||||||
|
@define-color success_fg_color #090a08;
|
||||||
|
@define-color window_bg_color #0f110e;
|
||||||
|
@define-color window_fg_color #ccd2cb;
|
||||||
|
@define-color view_bg_color #0c0d0b;
|
||||||
|
@define-color view_fg_color #ccd2cb;
|
||||||
|
@define-color headerbar_bg_color #161915;
|
||||||
|
@define-color headerbar_fg_color #ccd2cb;
|
||||||
|
@define-color headerbar_border_color #2a2f28;
|
||||||
|
@define-color headerbar_backdrop_color #0f110e;
|
||||||
|
@define-color headerbar_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color sidebar_bg_color #161915;
|
||||||
|
@define-color sidebar_fg_color #ccd2cb;
|
||||||
|
@define-color sidebar_backdrop_color #0f110e;
|
||||||
|
@define-color sidebar_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color secondary_sidebar_bg_color #0f110e;
|
||||||
|
@define-color secondary_sidebar_fg_color #ccd2cb;
|
||||||
|
@define-color secondary_sidebar_backdrop_color #0c0d0b;
|
||||||
|
@define-color card_bg_color #161915;
|
||||||
|
@define-color card_fg_color #ccd2cb;
|
||||||
|
@define-color card_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color dialog_bg_color #161915;
|
||||||
|
@define-color dialog_fg_color #ccd2cb;
|
||||||
|
@define-color popover_bg_color #20241f;
|
||||||
|
@define-color popover_fg_color #ccd2cb;
|
||||||
|
@define-color popover_shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color thumbnail_bg_color #20241f;
|
||||||
|
@define-color thumbnail_fg_color #ccd2cb;
|
||||||
|
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||||
|
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Settings]
|
||||||
|
gtk-theme-name=adw-gtk3-dark
|
||||||
|
gtk-icon-theme-name=Papirus-Dark
|
||||||
|
gtk-font-name=Noto Sans 11
|
||||||
|
gtk-cursor-theme-name=Bibata-Modern-Classic
|
||||||
|
gtk-cursor-theme-size=24
|
||||||
|
gtk-application-prefer-dark-theme=1
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
||||||
|
"runtime.version": "Lua 5.4",
|
||||||
|
"workspace.library": [
|
||||||
|
"/usr/share/hypr/stubs"
|
||||||
|
],
|
||||||
|
"diagnostics.globals": [
|
||||||
|
"hl"
|
||||||
|
]
|
||||||
|
}
|
||||||
Submodule hypr/catppuccin-hyprland deleted from c388ac5556.
Submodule hypr/catppuccin-hyprlock deleted from f650895064.
@@ -1,18 +0,0 @@
|
|||||||
|
|
||||||
# narls hyprland dotfiles
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/monitors.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/programs.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/autostart.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/env.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/theme.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/input.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/keybinds.conf
|
|
||||||
|
|
||||||
source = ~/.config/hypr/modules/window_rules.conf
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
-- narls hyprland dotfiles
|
||||||
|
--
|
||||||
|
-- Hyprland 0.55+ reads this file instead of hyprland.conf. Every part lives in
|
||||||
|
-- lua/, and each require() is its own scope: an error in one file does not stop
|
||||||
|
-- the others from loading.
|
||||||
|
--
|
||||||
|
-- Order matters only in three places: palette must exist before anything
|
||||||
|
-- paints with it, monitors must exist before the lid handler binds to them,
|
||||||
|
-- and game mode reads the look and the animations as configured. All three are
|
||||||
|
-- handled by the requires below, top to bottom.
|
||||||
|
|
||||||
|
-- what the desktop looks like
|
||||||
|
require("lua/palette")
|
||||||
|
require("lua/look")
|
||||||
|
require("lua/animations")
|
||||||
|
|
||||||
|
-- what it runs on
|
||||||
|
require("lua/env")
|
||||||
|
require("lua/monitors")
|
||||||
|
require("lua/lid")
|
||||||
|
require("lua/input")
|
||||||
|
|
||||||
|
-- what it runs
|
||||||
|
require("lua/apps")
|
||||||
|
require("lua/autostart")
|
||||||
|
|
||||||
|
-- how windows behave
|
||||||
|
require("lua/rules/windows")
|
||||||
|
require("lua/rules/layers")
|
||||||
|
|
||||||
|
-- after look and animations: it reads their values to put back
|
||||||
|
require("lua/gamemode")
|
||||||
|
|
||||||
|
-- how it is driven
|
||||||
|
require("lua/binds/apps")
|
||||||
|
require("lua/binds/windows")
|
||||||
|
require("lua/binds/workspaces")
|
||||||
|
require("lua/binds/shell")
|
||||||
|
require("lua/binds/media")
|
||||||
|
require("lua/binds/capture")
|
||||||
@@ -1,545 +0,0 @@
|
|||||||
# For more information visit https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/
|
|
||||||
|
|
||||||
source = ~/.config/hypr/catppuccin-hyprland/themes/mocha.conf
|
|
||||||
|
|
||||||
$scrPath = ~/.config/hypr/hyprlock/
|
|
||||||
$imgPath = ~/.config/hypr/hyprlock/assets/
|
|
||||||
|
|
||||||
$USER = narl # Your Alias
|
|
||||||
$host = uname -n #Your Alias
|
|
||||||
$wifi-mode = false # Change the WiFi output. true = show SSID, false = Connected.
|
|
||||||
$bt-mode = false # Change the Bluetooth output. true = show Device name, false = Connected.
|
|
||||||
|
|
||||||
# Default geolocation provider is IP-API.COM, hardcode it if the location does not match the current location.
|
|
||||||
# Hardcode your location (If hardcode does not recognize your City, change it to IP Geolocation provider in weatherinfo.sh)
|
|
||||||
$CITY =
|
|
||||||
$COUNTRY =
|
|
||||||
|
|
||||||
# WALLPAPER
|
|
||||||
# Just comment and uncomment to select
|
|
||||||
$wallpaper = screenshot
|
|
||||||
#$wallpaper = ~/your/wallpaper-path.png
|
|
||||||
$blur = 2
|
|
||||||
|
|
||||||
# ADJUST HERE
|
|
||||||
$rounding = 12
|
|
||||||
$shape-rd = -1
|
|
||||||
$font-text = GeistMono Nerd Font Bold
|
|
||||||
$font-text0 = GeistMono Nerd Font
|
|
||||||
$font-display = PP Neue Machina Ultra-Bold
|
|
||||||
$font-symbol = JetBrainsMono Nerd Font Mono
|
|
||||||
# Input Var
|
|
||||||
$weight = 2
|
|
||||||
$inner-color = rgba($baseAlpha80)
|
|
||||||
$border-color = rgba($mauveAlpha80)
|
|
||||||
|
|
||||||
# Colors
|
|
||||||
$clock-color = $text
|
|
||||||
$fg0 = $text
|
|
||||||
$fg1 = $base
|
|
||||||
$shape-col0 = $mauve
|
|
||||||
$shape-col1 = rgba($surface0Alpha80)
|
|
||||||
$shape-col2 = rgba($surface1Alpha80)
|
|
||||||
$shadow-pass = 2
|
|
||||||
$shadow-size = 3
|
|
||||||
$shadow-color = $crust
|
|
||||||
$shadow-boost = 1.2
|
|
||||||
$text-shadow-pass = 1
|
|
||||||
$text-shadow-boost = 0.5
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# GENERAL
|
|
||||||
general {
|
|
||||||
no_fade_in = true
|
|
||||||
grace = 1
|
|
||||||
disable_loading_bar = false
|
|
||||||
hide_cursor = true
|
|
||||||
ignore_empty_input = true
|
|
||||||
text_trim = true
|
|
||||||
}
|
|
||||||
|
|
||||||
#BACKGROUND
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = $wallpaper
|
|
||||||
|
|
||||||
blur_passes = $blur
|
|
||||||
contrast = 0.8916
|
|
||||||
brightness = 0.7172
|
|
||||||
vibrancy = 0.1696
|
|
||||||
vibrancy_darkness = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# PROFILE PICTURE
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = $imgPath/profile.jpg
|
|
||||||
size = 120 # lesser side if not 1:1 ratio
|
|
||||||
opacity = 0.25
|
|
||||||
|
|
||||||
shadow_pass = $shadow-pass
|
|
||||||
shadow_size = $shadow-size
|
|
||||||
shadow_color = $shadow-color
|
|
||||||
shadow_boost = $shadow-boost
|
|
||||||
|
|
||||||
rounding = $rounding # negative values mean circle
|
|
||||||
border_size = 4
|
|
||||||
border_color = $mauve
|
|
||||||
rotate = 0 # degrees, counter-clockwise
|
|
||||||
|
|
||||||
position = 20, -20
|
|
||||||
halign = left
|
|
||||||
valign = top
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# USER INFO
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$USER\n $($host)\n\n$(uname -r)\nPackages: $(pacman -Q | wc -l) pacman"
|
|
||||||
|
|
||||||
shadow_passes = 1
|
|
||||||
shadow_boost = 0.5
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 170, -35
|
|
||||||
halign = left
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# WEATHERCAST & LOCATION
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(bash $scrPath/weatherinfo.sh)"
|
|
||||||
|
|
||||||
shadow_passes = 1
|
|
||||||
shadow_boost = 0.5
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -20
|
|
||||||
halign = center
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# INPUT FIELD
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 275, 55
|
|
||||||
rounding = $rounding
|
|
||||||
|
|
||||||
outline_thickness = $weight
|
|
||||||
outer_color = $border-color
|
|
||||||
dots_size = 0.1 # Scale of input-field height, 0.2 - 0.8
|
|
||||||
dots_spacing = 1 # Scale of dots' absolute size, 0.0 - 1.0
|
|
||||||
dots_center = true
|
|
||||||
|
|
||||||
inner_color = $inner-color
|
|
||||||
font_color = $fg0
|
|
||||||
fade_on_empty = false
|
|
||||||
|
|
||||||
font_family = $font-text
|
|
||||||
placeholder_text = <span foreground="##$textAlpha"> $USER</span>
|
|
||||||
hide_input = false
|
|
||||||
check_color = $mauve
|
|
||||||
fail_color = $red
|
|
||||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
|
||||||
capslock_color = $yellow
|
|
||||||
|
|
||||||
position = 0, -240
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 10
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME HR
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$(date +"%H")" # 24-Hour Format
|
|
||||||
#text = cmd[update:1000] echo -e "$(date +"%I")" # 12-Hour Format
|
|
||||||
color = $clock-color
|
|
||||||
|
|
||||||
shadow_pass = $shadow-pass
|
|
||||||
shadow_size = $shadow-size
|
|
||||||
shadow_color = $shadow-color
|
|
||||||
shadow_boost = $shadow-boost
|
|
||||||
|
|
||||||
font_size = 150
|
|
||||||
font_family = $font-display
|
|
||||||
|
|
||||||
position = 0, -155
|
|
||||||
halign = center
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME MM
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$(date +"%M")"
|
|
||||||
color = $clock-color
|
|
||||||
|
|
||||||
shadow_pass = $shadow-pass
|
|
||||||
shadow_size = $shadow-size
|
|
||||||
shadow_color = $shadow-color
|
|
||||||
shadow_boost = $shadow-boost
|
|
||||||
|
|
||||||
font_size = 150
|
|
||||||
font_family = $font-display
|
|
||||||
|
|
||||||
position = 0, -325
|
|
||||||
halign = center
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# AM/PM for 12-Hour Format
|
|
||||||
#label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$(date +"%p")"
|
|
||||||
color = $clock-color
|
|
||||||
|
|
||||||
shadow_pass = $shadow-pass
|
|
||||||
shadow_size = $shadow-size
|
|
||||||
shadow_color = $shadow-color
|
|
||||||
shadow_boost = $shadow-boost
|
|
||||||
|
|
||||||
font_size = 16
|
|
||||||
font_family = $font-display
|
|
||||||
|
|
||||||
position = 0, 17
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# AM/PM BG
|
|
||||||
#shape {
|
|
||||||
monitor =
|
|
||||||
size = 70, 40
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $shape-col2
|
|
||||||
rounding = $rounding
|
|
||||||
border_size =
|
|
||||||
border_color =
|
|
||||||
|
|
||||||
position = 0, 20
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# GREETING
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(bash $scrPath/greeting.sh)"
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -55
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# TODAY IS
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] bash -c 'day=$(date +%A); echo "Today is $day"'
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -75
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] bash -c 'day=$(date +%d); case "$day" in 1) suffix="st";; 2) suffix="nd";; 3) suffix="rd";; *) suffix="th";; esac; echo -e "$(date +"%B %e")'$day'$suffix, $(date +%Y)"'
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 14
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -115
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# BATTERY
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$($scrPath/battery.sh)"
|
|
||||||
|
|
||||||
color = $fg1
|
|
||||||
font_size = 12
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = -37, 29
|
|
||||||
halign = right
|
|
||||||
valign = bottom
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# NETWORK
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$($scrPath/network.sh)"
|
|
||||||
|
|
||||||
color = $fg1
|
|
||||||
font_size = 12
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 37, 29
|
|
||||||
halign = left
|
|
||||||
valign = bottom
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# BLUETOOTH
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo -e "$(~/.config/hypr/hyprlock/bluetooth.sh)"
|
|
||||||
|
|
||||||
color = $fg1
|
|
||||||
font_size = 12
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 37, 85
|
|
||||||
halign = left
|
|
||||||
valign = bottom
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# BATTERY BG
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 90, 40
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $shape-col0
|
|
||||||
rounding = $shape-rd
|
|
||||||
border_size =
|
|
||||||
border_color =
|
|
||||||
|
|
||||||
position = -20, 20
|
|
||||||
halign = right
|
|
||||||
valign = bottom
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# NETWORK BG
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 150, 40
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $shape-col0
|
|
||||||
rounding = $shape-rd
|
|
||||||
border_size =
|
|
||||||
border_color =
|
|
||||||
|
|
||||||
position = 20, 20
|
|
||||||
halign = left
|
|
||||||
valign = bottom
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# BLUETOOTH BG
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 150, 40
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $shape-col0
|
|
||||||
rounding = $shape-rd
|
|
||||||
border_size =
|
|
||||||
border_color =
|
|
||||||
|
|
||||||
position = 20, 75
|
|
||||||
halign = left
|
|
||||||
valign = bottom
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# MEDIA BG
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = $imgPath/media-bg-dark-25.png
|
|
||||||
size = 8%
|
|
||||||
opacity = 0.25
|
|
||||||
|
|
||||||
rounding = 5
|
|
||||||
border_size = 0
|
|
||||||
rotate = 0
|
|
||||||
|
|
||||||
position = 0, -10%
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 35%, 8%
|
|
||||||
|
|
||||||
shadow_passes = $text-shadow-pass
|
|
||||||
shadow_boost = $text-shadow-boost
|
|
||||||
|
|
||||||
color = $shape-col1
|
|
||||||
rounding = $rounding
|
|
||||||
border_size =
|
|
||||||
border_color =
|
|
||||||
|
|
||||||
position = 0, 5%
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
zindex = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER TITLE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --title)"
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 14
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -40%
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER ARTIST
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --artist)"
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 0, -42%
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER ALBUM
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --album)"
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 11
|
|
||||||
font_family = $font-text0
|
|
||||||
|
|
||||||
position = 0, -44%
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER STATUS SYMBOL
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --status-symbol)"
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 16
|
|
||||||
font_family = $font-symbol
|
|
||||||
|
|
||||||
position = 33.5%, -38%
|
|
||||||
halign = left
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER STATUS
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --status)"
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 10
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = 35%, -38%
|
|
||||||
halign = left
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER SOURCE SYMBOL
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --source-symbol)"
|
|
||||||
|
|
||||||
color = rgba($subtext0Alpha99)
|
|
||||||
font_size = 16
|
|
||||||
font_family = $font-symbol
|
|
||||||
|
|
||||||
position = -33.5%, -38%
|
|
||||||
halign = right
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
# PLAYER SOURCE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$($scrPath/playerctl.sh --source)"
|
|
||||||
|
|
||||||
color = rgba($subtext0Alpha99)
|
|
||||||
font_size = 10
|
|
||||||
font_family = $font-text
|
|
||||||
|
|
||||||
position = -35%, -38%
|
|
||||||
halign = right
|
|
||||||
valign = center
|
|
||||||
zindex = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text =
|
|
||||||
|
|
||||||
color = $fg0
|
|
||||||
font_size = 24
|
|
||||||
font_family = $font-symbol
|
|
||||||
|
|
||||||
position = 0, 1%
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,155 +0,0 @@
|
|||||||
source = $HOME/.config/hypr/catppuccin-hyprland/themes/mocha.conf
|
|
||||||
|
|
||||||
$accent = $mauve
|
|
||||||
$accentAlpha = $mauveAlpha
|
|
||||||
$font = JetBrainsMono Nerd Font
|
|
||||||
|
|
||||||
# GENERAL
|
|
||||||
general {
|
|
||||||
hide_cursor = true
|
|
||||||
no_fade_in = false
|
|
||||||
grace = 0
|
|
||||||
disable_loading_bar = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# BACKGROUND
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = $HOME/Pictures/reze/reze.png
|
|
||||||
blur_passes = 3
|
|
||||||
blur_size = 7
|
|
||||||
noise = 0.0117
|
|
||||||
contrast = 0.8916
|
|
||||||
brightness = 0.8172
|
|
||||||
vibrancy = 0.1696
|
|
||||||
vibrancy_darkness = 0.0
|
|
||||||
color = $base
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = $TIME
|
|
||||||
color = $text
|
|
||||||
font_size = 120
|
|
||||||
font_family = $font
|
|
||||||
position = 0, 300
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:43200000] date +"%A, %d %B %Y"
|
|
||||||
color = $text
|
|
||||||
font_size = 30
|
|
||||||
font_family = $font
|
|
||||||
position = 0, 200
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# USER AVATAR (Center)
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = $HOME/.face
|
|
||||||
size = 120
|
|
||||||
border_color = rgba(255, 255, 255, 0.1)
|
|
||||||
position = 0, 50
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# INPUT FIELD (Center)
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 300, 60
|
|
||||||
outline_thickness = 2
|
|
||||||
dots_size = 0.2
|
|
||||||
dots_spacing = 0.2
|
|
||||||
dots_center = true
|
|
||||||
outer_color = rgba(255, 255, 255, 0.1)
|
|
||||||
inner_color = rgba(0, 0, 0, 0.2)
|
|
||||||
font_color = $text
|
|
||||||
fade_on_empty = false
|
|
||||||
placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
|
|
||||||
hide_input = false
|
|
||||||
check_color = $accent
|
|
||||||
fail_color = $red
|
|
||||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
|
||||||
capslock_color = $yellow
|
|
||||||
position = 0, -60
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- MUSIC DASHBOARD (TOP RIGHT) ---
|
|
||||||
|
|
||||||
# ALBUM ART (At the very top right, 80px high, adjusted -3px for perfect alignment)
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = /tmp/hyprlock_art.png
|
|
||||||
size = 80
|
|
||||||
rounding = 15
|
|
||||||
border_color = rgba(255, 255, 255, 0.1)
|
|
||||||
reload_time = 2
|
|
||||||
reload_cmd = ~/.config/hypr/scripts/album_art.sh
|
|
||||||
position = -20, -17
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# MUSIC TEXT BOX (To the left of the image, same height)
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 300, 80
|
|
||||||
color = rgba(0, 0, 0, 0.3)
|
|
||||||
rounding = 15
|
|
||||||
border_size = 1
|
|
||||||
border_color = rgba(255, 255, 255, 0.1)
|
|
||||||
position = -110, -20
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
# MUSIC TEXT (Right aligned and vertically centered inside the 80px box)
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] ~/.config/hypr/scripts/songdetail.sh
|
|
||||||
color = $text
|
|
||||||
font_size = 14
|
|
||||||
font_family = $font
|
|
||||||
position = -125, -37
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
text_align = right
|
|
||||||
}
|
|
||||||
|
|
||||||
# --- STATUS DASHBOARD (BOTTOM RIGHT) ---
|
|
||||||
|
|
||||||
# SYSTEM INFO BOX (Vertical stack container)
|
|
||||||
shape {
|
|
||||||
monitor =
|
|
||||||
size = 300, 100
|
|
||||||
color = rgba(0, 0, 0, 0.3)
|
|
||||||
rounding = 15
|
|
||||||
border_size = 1
|
|
||||||
border_color = rgba(255, 255, 255, 0.1)
|
|
||||||
position = -20, 20
|
|
||||||
halign = right
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
# SYSTEM INFO TEXT (3 lines, top of each other, right aligned)
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:5000] ~/.config/hypr/scripts/status_info.sh
|
|
||||||
color = $text
|
|
||||||
font_size = 14
|
|
||||||
font_family = $font
|
|
||||||
position = -35, 35
|
|
||||||
halign = right
|
|
||||||
valign = bottom
|
|
||||||
text_align = right
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB |
@@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Get the current battery percentage
|
|
||||||
battery_percentage=$(cat /sys/class/power_supply/BAT0/capacity)
|
|
||||||
|
|
||||||
# Get the battery status (Charging or Discharging)
|
|
||||||
battery_status=$(cat /sys/class/power_supply/BAT0/status)
|
|
||||||
|
|
||||||
# Define the battery icons for each 10% segment
|
|
||||||
battery_icons=("" "" "" "" "" "" "" "" "" "")
|
|
||||||
|
|
||||||
# Define the charging icon
|
|
||||||
charging_icon=""
|
|
||||||
|
|
||||||
# Calculate the index for the icon array
|
|
||||||
# Ensure the index is within bounds (0 to 9) for battery percentages 0 to 100
|
|
||||||
icon_index=$((battery_percentage / 10))
|
|
||||||
|
|
||||||
# If the battery is 100%, use the last icon (index 9)
|
|
||||||
if [ "$battery_percentage" -eq 100 ]; then
|
|
||||||
icon_index=9
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the corresponding icon
|
|
||||||
battery_icon=${battery_icons[$icon_index]}
|
|
||||||
|
|
||||||
# Check if the battery is charging
|
|
||||||
if [ "$battery_status" = "Charging" ]; then
|
|
||||||
battery_icon="$charging_icon"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Output the battery percentage and icon
|
|
||||||
echo "$battery_percentage% $battery_icon"
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Path to the Hyprland configuration file
|
|
||||||
config_file="$HOME/.config/hypr/hyprlock.conf"
|
|
||||||
|
|
||||||
# Read the bt-mode value from the configuration file
|
|
||||||
bt_mode=$(grep -oP '^\$bt-mode\s*=\s*\K\S+' ~/.config/hypr/hyprlock.conf)
|
|
||||||
|
|
||||||
# Get Bluetooth power status
|
|
||||||
bluetooth_status=$(bluetoothctl show | grep "Powered:" | awk '{print $2}')
|
|
||||||
|
|
||||||
# Check if Bluetooth is powered on
|
|
||||||
if [ "$bluetooth_status" != "yes" ]; then
|
|
||||||
echo " Bluetooth Off"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Initialize connected devices
|
|
||||||
connected_devices=$(echo "$connected_devices" | sed 's/[[:space:]]*$//')
|
|
||||||
|
|
||||||
# Process Bluetooth devices
|
|
||||||
while read -r line; do
|
|
||||||
echo "Processing line: $line" >&2
|
|
||||||
device_mac=$(echo "$line" | awk '{print $2}')
|
|
||||||
device_name=$(echo "$line" | cut -d' ' -f3-)
|
|
||||||
echo "Device MAC: $device_mac" >&2
|
|
||||||
echo "Device Name: $device_name" >&2
|
|
||||||
if bluetoothctl info "$device_mac" | grep -q "Connected: yes"; then
|
|
||||||
connected_devices+="$device_name "
|
|
||||||
fi
|
|
||||||
echo "Finished processing $device_mac" >&2
|
|
||||||
echo "---" >&2
|
|
||||||
done < <(bluetoothctl devices)
|
|
||||||
|
|
||||||
# If no connected devices, show "No Devices"
|
|
||||||
if [ -z "$connected_devices" ]; then
|
|
||||||
echo " No Devices"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Display output based on bt-mode
|
|
||||||
if [ "$bt_mode" = "true" ]; then
|
|
||||||
echo " $connected_devices"
|
|
||||||
else
|
|
||||||
echo " Connected"
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Only works if you use SWWW for your wallpapers
|
|
||||||
|
|
||||||
SWWW_DIR="$HOME/.cache/swww/"
|
|
||||||
HYPRLOCK="$HOME/.config/hypr/hyprlock.conf"
|
|
||||||
|
|
||||||
# Get a Monitor Cache File
|
|
||||||
FIRST_FILE=$(find "$SWWW_DIR" -type f | head -n 1)
|
|
||||||
|
|
||||||
# Check if SWWW file exists
|
|
||||||
if [ -n "$FIRST_FILE" ] && [ -f "$FIRST_FILE" ]; then
|
|
||||||
WALLPAPER=$(sed -n '2p' "$FIRST_FILE")
|
|
||||||
|
|
||||||
sed -i "s|^\(\$wallpaper[[:space:]]*=[[:space:]]*\).*|\1$WALLPAPER # (screenshot or /path/to/your/wallpaper.jpg)|" "$HYPRLOCK"
|
|
||||||
echo "Wallpaper path updated to $WALLPAPER"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Error
|
|
||||||
echo "Fehler: kein Wallpaper gefunden."
|
|
||||||
exit 1
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Set your Username
|
|
||||||
# username="TamarindX"
|
|
||||||
|
|
||||||
# Read the username alias from hyprlock.conf
|
|
||||||
username=$(grep -oP '^\$USER\s*=\s*\K\S+' ~/.config/hypr/hyprlock.conf)
|
|
||||||
|
|
||||||
# Check if the username was successfully extracted
|
|
||||||
if [ -z "$username" ]; then
|
|
||||||
echo "Username not found in hyprlock.conf."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the current hour
|
|
||||||
hour=$(date +%H)
|
|
||||||
|
|
||||||
# Determine the greeting based on the time
|
|
||||||
if [ "$hour" -ge 5 ] && [ "$hour" -lt 12 ]; then
|
|
||||||
greeting="Good Morning"
|
|
||||||
elif [ "$hour" -ge 12 ] && [ "$hour" -lt 17 ]; then
|
|
||||||
greeting="Good Afternoon"
|
|
||||||
elif [ "$hour" -ge 17 ] && [ "$hour" -lt 21 ]; then
|
|
||||||
greeting="Good Evening"
|
|
||||||
elif [ "$hour" -ge 21 ] && [ "$hour" -lt 24 ]; then
|
|
||||||
greeting="Good Night"
|
|
||||||
else
|
|
||||||
greeting="GO TO SLEEP!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Output the combined text
|
|
||||||
echo -e "Hello, $username! $greeting"
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Set this variable to control the output
|
|
||||||
# Set to "true" to show SSID, "false" to show "Connected"
|
|
||||||
# show_ssid=false
|
|
||||||
|
|
||||||
# Read the wifi-mode alias from hyprlock.conf
|
|
||||||
show_ssid=$(grep -oP '^\$wifi-mode\s*=\s*\K\S+' ~/.config/hypr/hyprlock.conf)
|
|
||||||
|
|
||||||
# Check if the SSID was successfully extracted else fallback?!
|
|
||||||
if [ -z "$show_ssid" ]; then
|
|
||||||
show_ssid=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if any Ethernet connection is active
|
|
||||||
ethernet_connected=$(nmcli -t -f DEVICE,TYPE,STATE dev | grep -E 'ethernet:connected')
|
|
||||||
|
|
||||||
# If Ethernet
|
|
||||||
if [ -n "$ethernet_connected" ]; then
|
|
||||||
echo " Ethernet"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get Wi-Fi connection status
|
|
||||||
wifi_status=$(nmcli -t -f WIFI g)
|
|
||||||
|
|
||||||
# Check if Wi-Fi is enabled
|
|
||||||
if [ "$wifi_status" != "enabled" ]; then
|
|
||||||
echo " Wi-Fi Off"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get active Wi-Fi connection details
|
|
||||||
wifi_info=$(nmcli -t -f ACTIVE,SSID,SIGNAL dev wifi | grep '^yes')
|
|
||||||
|
|
||||||
# If no active connection, show "Disconnected"
|
|
||||||
if [ -z "$wifi_info" ]; then
|
|
||||||
echo " No Wi-Fi"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Extract SSID
|
|
||||||
ssid=$(echo "$wifi_info" | cut -d':' -f2)
|
|
||||||
|
|
||||||
# Extract signal strength
|
|
||||||
signal_strength=$(echo "$wifi_info" | cut -d':' -f3)
|
|
||||||
|
|
||||||
# Define Wi-Fi icons based on signal strength
|
|
||||||
wifi_icons=("" "" "" "" "") # From low to high signal
|
|
||||||
|
|
||||||
# Clamp signal strength between 0 and 100
|
|
||||||
signal_strength=$((signal_strength < 0 ? 0 : (signal_strength > 100 ? 100 : signal_strength)))
|
|
||||||
|
|
||||||
# Calculate the icon index based on signal strength
|
|
||||||
icon_index=$((signal_strength / 25))
|
|
||||||
|
|
||||||
# Get the corresponding icon
|
|
||||||
wifi_icon=${wifi_icons[$icon_index]}
|
|
||||||
|
|
||||||
# Output based on show_ssid variable
|
|
||||||
if [ "$show_ssid" = true ]; then
|
|
||||||
echo "$wifi_icon $ssid"
|
|
||||||
else
|
|
||||||
echo "$wifi_icon Connected"
|
|
||||||
fi
|
|
||||||
@@ -1,116 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
echo "Usage: $0 --title | --artist | --album | --source | --source-symbol"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Function to get metadata using playerctl
|
|
||||||
get_metadata() {
|
|
||||||
key=$1
|
|
||||||
playerctl metadata --player=%any,chromium,firefox --format "{{ $key }}" 2>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
# Check for arguments
|
|
||||||
|
|
||||||
# Function to determine the source and return an icon and text
|
|
||||||
get_source_info_symbol() {
|
|
||||||
trackid=$(get_metadata "mpris:trackid")
|
|
||||||
if [[ "$trackid" == *"firefox"* ]]; then
|
|
||||||
echo -e ""
|
|
||||||
elif [[ "$trackid" == *"spotify"* ]]; then
|
|
||||||
echo -e ""
|
|
||||||
elif [[ "$trackid" == *"chromium"* ]]; then
|
|
||||||
echo -e ""
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
get_source_info() {
|
|
||||||
trackid=$(get_metadata "mpris:trackid")
|
|
||||||
if [[ "$trackid" == *"firefox"* ]]; then
|
|
||||||
echo -e "Firefox"
|
|
||||||
elif [[ "$trackid" == *"spotify"* ]]; then
|
|
||||||
echo -e "Spotify"
|
|
||||||
elif [[ "$trackid" == *"chromium"* ]]; then
|
|
||||||
echo -e "Chrome"
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to truncate text with ellipsis if necessary
|
|
||||||
truncate_with_ellipsis() {
|
|
||||||
text=$1
|
|
||||||
max_length=$2
|
|
||||||
if [ ${#text} -gt $max_length ]; then
|
|
||||||
echo "${text:0:$((max_length - 3))}..."
|
|
||||||
else
|
|
||||||
echo "$text"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse the argument
|
|
||||||
case "$1" in
|
|
||||||
--title)
|
|
||||||
title=$(get_metadata "xesam:title")
|
|
||||||
if [ -z "$title" ]; then
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
truncate_with_ellipsis "$title" 28 # Limit the output to 50 characters
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
--artist)
|
|
||||||
artist=$(get_metadata "xesam:artist")
|
|
||||||
if [ -z "$artist" ]; then
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
truncate_with_ellipsis "$artist" 28 # Limit the output to 50 characters
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
--status-symbol)
|
|
||||||
status=$(playerctl status 2>/dev/null)
|
|
||||||
if [[ $status == "Playing" ]]; then
|
|
||||||
echo ""
|
|
||||||
elif [[ $status == "Paused" ]]; then
|
|
||||||
echo ""
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
--status)
|
|
||||||
status=$(playerctl status 2>/dev/null)
|
|
||||||
if [[ $status == "Playing" ]]; then
|
|
||||||
echo "Playing Now"
|
|
||||||
elif [[ $status == "Paused" ]]; then
|
|
||||||
echo "Paused"
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
--album)
|
|
||||||
album=$(playerctl metadata --player=%any,chromium,firefox --format "{{ xesam:album }}" 2>/dev/null)
|
|
||||||
if [[ -n $album ]]; then
|
|
||||||
echo "$album"
|
|
||||||
else
|
|
||||||
status=$(playerctl status 2>/dev/null)
|
|
||||||
if [[ -n $status ]]; then
|
|
||||||
echo "Not album"
|
|
||||||
else
|
|
||||||
truncate_with_ellipsis "$album" 28 # Limit the output to 50 characters
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
--source-symbol)
|
|
||||||
get_source_info_symbol
|
|
||||||
;;
|
|
||||||
--source)
|
|
||||||
get_source_info
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Invalid option: $1"
|
|
||||||
echo "Usage: $0 --title | --artist | --album | --source | --source-symbol"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Get location data using IP Geolocation
|
|
||||||
|
|
||||||
# Recommended with API, but you can try w/o API [IPINFO.IO]
|
|
||||||
# API_TOKEN="YOUR_API_TOKEN"
|
|
||||||
# location_data=$(curl -s "https://ipinfo.io?token=$API_TOKEN" 2>/dev/null)
|
|
||||||
# location_data=$(curl -s https://ipinfo.io 2>/dev/null) #[Limited requests. Require API to send 50k request/month]
|
|
||||||
|
|
||||||
# Extract city and country code (ISO 3166-1 alpha-2 code)
|
|
||||||
# CITY=$(echo "$location_data" | jq -r '.city // empty')
|
|
||||||
# COUNTRY=$(echo "$location_data" | jq -r '.country // empty')
|
|
||||||
|
|
||||||
# IPINFO Alternative [IP-API.COM]
|
|
||||||
location_data=$(curl -s "http://ip-api.com/json/" 2>/dev/null)
|
|
||||||
|
|
||||||
# Extract city and country code
|
|
||||||
CITY=$(echo "$location_data" | jq -r '.city // empty')
|
|
||||||
COUNTRY=$(echo "$location_data" | jq -r '.countryCode // empty')
|
|
||||||
# Visit http://ip-api.com/json/ to find other variables
|
|
||||||
|
|
||||||
# HARDCODE Location
|
|
||||||
# CITY=$(grep -oP '^\$CITY\s*=\s*\K.+' ~/.config/hypr/hyprlock.conf)
|
|
||||||
# COUNTRY=$(grep -oP '^\$COUNTRY\s*=\s*\K.+' ~/.config/hypr/hyprlock.conf)
|
|
||||||
|
|
||||||
# Check if CITY and COUNTRY are valid
|
|
||||||
if [[ -n "$CITY" && -n "$COUNTRY" ]]; then
|
|
||||||
# Fetch weather info for the detected city from wttr.in
|
|
||||||
weather_info=$(curl -s "wttr.in/$CITY?format=%c+%C+%t" 2>/dev/null)
|
|
||||||
|
|
||||||
# Check if the weather info is valid
|
|
||||||
if [[ -n "$weather_info" ]]; then
|
|
||||||
echo "$COUNTRY, $CITY: $weather_info"
|
|
||||||
else
|
|
||||||
echo "Weather info unavailable for $COUNTRY, $CITY"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "Unable to determine your location"
|
|
||||||
fi
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
wallpaper {
|
wallpaper {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/.wallpapers/takemi_1.jpg
|
path = ~/.wallpapers/space-1.jpg
|
||||||
fit_mode = cover
|
fit_mode = cover
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,97 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Set paths
|
|
||||||
CONFIG_DIR="$HOME/.config/hypr"
|
|
||||||
BACKUP_DIR="$CONFIG_DIR/hyprlock-backup-$(date +%Y%m%d%H%M%S)"
|
|
||||||
REPO_URL="https://github.com/Tamarindtype/googlish-hyprlock-theme.git"
|
|
||||||
TEMP_DIR="$(mktemp -d)"
|
|
||||||
|
|
||||||
read -p "Do you want to see every command executed? [y/N]: " choice
|
|
||||||
choice=${choice,,}
|
|
||||||
|
|
||||||
if [[ "$choice" == "y" ]]; then
|
|
||||||
SHOW_COMMANDS=true
|
|
||||||
else
|
|
||||||
SHOW_COMMANDS=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
run_cmd() {
|
|
||||||
local desc="$1"
|
|
||||||
local cmd="$2"
|
|
||||||
|
|
||||||
if [[ "$SHOW_COMMANDS" == true ]]; then
|
|
||||||
echo -e "\n$desc"
|
|
||||||
echo "-> $cmd"
|
|
||||||
read -p "Run command? [Y/n]: " confirm
|
|
||||||
confirm=${confirm,,}
|
|
||||||
|
|
||||||
if [[ "$confirm" == "n" ]]; then
|
|
||||||
echo "⏭ Skipped."
|
|
||||||
else
|
|
||||||
eval "$cmd"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
eval "$cmd"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Backup existing config
|
|
||||||
if [ -d "$CONFIG_DIR/hyprlock" ] || [ -f "$CONFIG_DIR/hyprlock.conf" ]; then
|
|
||||||
read -p "Do you want to create a backup of your config? [Y/n]: " choice
|
|
||||||
choice=${choice,,}
|
|
||||||
|
|
||||||
if [[ "$choice" != "n" ]]; then
|
|
||||||
run_cmd "Creating backup folder" "mkdir -p \"$BACKUP_DIR\""
|
|
||||||
|
|
||||||
if [ -d "$CONFIG_DIR/hyprlock" ]; then
|
|
||||||
run_cmd "Backing up folder" "mv \"$CONFIG_DIR/hyprlock\" \"$BACKUP_DIR/\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$CONFIG_DIR/hyprlock.conf" ]; then
|
|
||||||
run_cmd "Backing up file" "mv \"$CONFIG_DIR/hyprlock.conf\" \"$BACKUP_DIR/\""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "No existing hyprlock config found. Skipping backup."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clone the repo
|
|
||||||
run_cmd "Cloning repository..." "git clone \"$REPO_URL\" \"$TEMP_DIR\""
|
|
||||||
|
|
||||||
# Move files
|
|
||||||
run_cmd "Creating config directory" "mkdir -p \"$CONFIG_DIR\""
|
|
||||||
|
|
||||||
if [ -d "$TEMP_DIR/hyprlock" ]; then
|
|
||||||
run_cmd "Moving hyprlock folder" "mv \"$TEMP_DIR/hyprlock\" \"$CONFIG_DIR/\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$TEMP_DIR/hyprlock.conf" ]; then
|
|
||||||
run_cmd "Moving hyprlock.conf" "mv \"$TEMP_DIR/hyprlock.conf\" \"$CONFIG_DIR/\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make scripts executable
|
|
||||||
if [ -d "$CONFIG_DIR/hyprlock" ]; then
|
|
||||||
run_cmd "Making scripts executable..." "chmod +x \"$CONFIG_DIR/hyprlock\"/*.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Optional: Run hyprlock
|
|
||||||
run_cmd "Running Hyprlock" "hyprlock"
|
|
||||||
|
|
||||||
read -p "Do you want to install the 'hyprlock-change-wallpaper' command? [Y/n]: " choice
|
|
||||||
choice=${choice,,}
|
|
||||||
|
|
||||||
if [[ "$choice" != "n" ]]; then
|
|
||||||
run_cmd "Installing hyprlock-change-wallpaper shortcut" "sudo ln -sf $CONFIG_DIR/hyprlock/change_wallpaper.sh /usr/local/bin/hyprlock-change-wallpaper"
|
|
||||||
run_cmd "Make command runable" "chmod +x $CONFIG_DIR/hyprlock/change_wallpaper.sh"
|
|
||||||
|
|
||||||
if command -v hyprlock-change-wallpaper &>/dev/null; then
|
|
||||||
echo "hyprlock-change-wallpaper was succesfully installed"
|
|
||||||
else
|
|
||||||
echo "Error while installing hyprlock-change-wallpaper."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "⏭ installation of hyprlock-change-wallpaper skipped"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
run_cmd "Cleaning up temp files..." "rm -rf \"$TEMP_DIR\""
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
|
||||||
|
--
|
||||||
|
-- YoRHa motion: calm and mechanical. Things glide in, settle and stop; nothing
|
||||||
|
-- overshoots, nothing pops. Matches Theme.easeSnap / easeGlide in
|
||||||
|
-- ~/.config/quickshell/config/Theme.qml.
|
||||||
|
--
|
||||||
|
-- The screen is a porthole: the hull (quickshell/bar/Frame.qml) sits on the
|
||||||
|
-- top layer, so anything that moves past the edge of the opening passes
|
||||||
|
-- behind the frame instead of over the bar.
|
||||||
|
--
|
||||||
|
-- windows resolve in from a hair smaller and fade, the way a NieR menu
|
||||||
|
-- panel appears rather than arrives; leave the same way, faster.
|
||||||
|
-- workspaces drift: the old one sinks a little way behind the rim as it
|
||||||
|
-- fades, the new one rises into its place. A short, slow
|
||||||
|
-- vertical drift rather than a full-screen sweep, which on a
|
||||||
|
-- 2560px panel is a lot of motion for "you are somewhere else
|
||||||
|
-- now". Direction follows workspace order.
|
||||||
|
-- scratchpad a drawer: SUPER+S lowers it out from under the bar, the same
|
||||||
|
-- gesture as the dashboard and the popouts, and raises it back.
|
||||||
|
-- layers only fade; quickshell animates its own surfaces.
|
||||||
|
--
|
||||||
|
-- Nothing overshoots and the border angle never animates.
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------- curves
|
||||||
|
-- outQuint: fast off the mark, long quiet settle.
|
||||||
|
hl.curve("glide", { type = "bezier", points = { { 0.22, 1.00 }, { 0.36, 1.00 } } })
|
||||||
|
-- Material standard, for things that move from one place to another.
|
||||||
|
hl.curve("standard", { type = "bezier", points = { { 0.40, 0.00 }, { 0.20, 1.00 } } })
|
||||||
|
-- Leaving: ease in, so the exit gathers pace and is gone.
|
||||||
|
hl.curve("exit", { type = "bezier", points = { { 0.55, 0.00 }, { 0.90, 0.35 } } })
|
||||||
|
hl.curve("linear", { type = "bezier", points = { { 0, 0 }, { 1, 1 } } })
|
||||||
|
-- easeInOutSine-ish with a long tail: starts without a jolt, settles slowly.
|
||||||
|
-- For motion big enough that a fast start would read as a shove.
|
||||||
|
hl.curve("drift", { type = "bezier", points = { { 0.35, 0.00 }, { 0.15, 1.00 } } })
|
||||||
|
|
||||||
|
-- --------------------------------------------------------------------- tree
|
||||||
|
-- speed is in ds (1ds = 100ms). Unset leaves inherit their parent.
|
||||||
|
hl.animation({ leaf = "global", enabled = true, speed = 4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "border", enabled = true, speed = 4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "borderangle", enabled = false })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "windows", enabled = true, speed = 4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "windowsIn", enabled = true, speed = 4, bezier = "glide", style = "popin 94%" })
|
||||||
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 2.4, bezier = "exit", style = "popin 96%" })
|
||||||
|
hl.animation({ leaf = "windowsMove", enabled = true, speed = 4, bezier = "standard" })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "fade", enabled = true, speed = 3.4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "fadeIn", enabled = true, speed = 3.4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "fadeOut", enabled = true, speed = 2.2, bezier = "exit" })
|
||||||
|
hl.animation({ leaf = "fadeSwitch", enabled = true, speed = 3, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "fadeShadow", enabled = true, speed = 3.4, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "fadeDim", enabled = true, speed = 3, bezier = "glide" })
|
||||||
|
|
||||||
|
-- Quickshell animates its own surfaces; the compositor only fades them, so the
|
||||||
|
-- two motions never stack.
|
||||||
|
hl.animation({ leaf = "layers", enabled = true, speed = 2.6, bezier = "glide" })
|
||||||
|
hl.animation({ leaf = "layersIn", enabled = true, speed = 2.6, bezier = "glide", style = "fade" })
|
||||||
|
hl.animation({ leaf = "layersOut", enabled = true, speed = 2, bezier = "exit", style = "fade" })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 5.5, bezier = "drift", style = "slidefadevert 18%" })
|
||||||
|
hl.animation({ leaf = "workspacesIn", enabled = true, speed = 5.5, bezier = "drift", style = "slidefadevert 18%" })
|
||||||
|
hl.animation({ leaf = "workspacesOut", enabled = true, speed = 4.5, bezier = "drift", style = "slidefadevert 18%" })
|
||||||
|
|
||||||
|
hl.animation({ leaf = "specialWorkspace", enabled = true, speed = 4.5, bezier = "glide", style = "slidevert" })
|
||||||
|
hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 4.5, bezier = "glide", style = "slidevert" })
|
||||||
|
hl.animation({ leaf = "specialWorkspaceOut", enabled = true, speed = 3.5, bezier = "exit", style = "slidevert" })
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
-- The programs the binds reach for. Exported so lua/binds/* name them once.
|
||||||
|
|
||||||
|
return {
|
||||||
|
terminal = "alacritty",
|
||||||
|
fileManager = "nautilus",
|
||||||
|
-- The launcher lives in the Quickshell process (quickshell/launcher/), so
|
||||||
|
-- the bind toggles it over IPC instead of spawning anything. Nothing to
|
||||||
|
-- start up means it is on screen on the same frame as the keypress.
|
||||||
|
menu = "qs ipc call shell launcher",
|
||||||
|
|
||||||
|
-- Clipboard history. Opens the launcher already in its ":" mode, which
|
||||||
|
-- reads cliphist itself and copies the chosen entry back — so the picker is
|
||||||
|
-- the same window, with the same keys, as everything else.
|
||||||
|
clipboard = "qs ipc call shell prompt :",
|
||||||
|
|
||||||
|
-- Proton Drive search. --fzf re-queries the daemon on every keystroke, so
|
||||||
|
-- results appear as you type; a dmenu could only filter a list it was
|
||||||
|
-- handed once, which made searching a two-step. It spawns its own terminal
|
||||||
|
-- (class pdfs-prompt, floated in lua/rules/windows.lua).
|
||||||
|
pdfs = "pdfs-prompt --gtk",
|
||||||
|
|
||||||
|
-- bluetooth menu
|
||||||
|
bluetooth = "fluxo bt menu",
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Autostart/
|
||||||
|
--
|
||||||
|
-- Everything that used to be exec-once now runs off the start event.
|
||||||
|
|
||||||
|
hl.on("hyprland.start", function()
|
||||||
|
-- Takemi shell — bar, popouts, notifications, OSD, power menu and lock
|
||||||
|
-- screen. Config lives in ~/.config/quickshell. It owns
|
||||||
|
-- org.freedesktop.Notifications, so dunst must stay masked
|
||||||
|
-- (systemctl --user mask dunst.service).
|
||||||
|
hl.exec_cmd("uwsm app -- qs")
|
||||||
|
|
||||||
|
hl.exec_cmd("uwsm app -- nm-applet --indicator")
|
||||||
|
-- hyprpaper is not started here: its systemd unit is enabled for
|
||||||
|
-- graphical-session.target, and a second copy here ran alongside it.
|
||||||
|
|
||||||
|
-- clipboard history, text and images
|
||||||
|
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||||
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||||
|
|
||||||
|
-- pdfs-prompt has no hidden/resident mode, so the first search of the
|
||||||
|
-- session is cold. Run one throwaway query once the Proton Drive daemon
|
||||||
|
-- is up to pull the binary into the page cache and warm the daemon's index.
|
||||||
|
hl.exec_cmd("uwsm app -- pdfs-prompt --preload")
|
||||||
|
|
||||||
|
-- hl.exec_cmd("uwsm app -- nextcloud --background")
|
||||||
|
-- hl.exec_cmd("uwsm app -- rclone mount google_drive: ~/gdrive")
|
||||||
|
-- hl.exec_cmd("uwsm app -- protonvpn-app")
|
||||||
|
-- hl.exec_cmd("uwsm app -- /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized")
|
||||||
|
-- hl.exec_cmd("uwsm app -- /usr/lib/xdg-desktop-portal-hyprland")
|
||||||
|
-- hl.exec_cmd("sleep 5 && ~/.config/hypr/scripts/replay-ctrl.sh start")
|
||||||
|
end)
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
-- Launching things.
|
||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Binds/
|
||||||
|
|
||||||
|
local apps = require("lua/apps")
|
||||||
|
local mod = "SUPER" -- Sets "Windows" key as main modifier
|
||||||
|
|
||||||
|
hl.bind(mod .. " + RETURN", hl.dsp.exec_cmd(apps.terminal), { description = "terminal" })
|
||||||
|
hl.bind(mod .. " + E", hl.dsp.exec_cmd(apps.fileManager), { description = "file manager" })
|
||||||
|
hl.bind(mod .. " + SPACE", hl.dsp.exec_cmd(apps.menu), { description = "app launcher" })
|
||||||
|
hl.bind(mod .. " + M", hl.dsp.exec_cmd(apps.pdfs), { description = "pdf picker" })
|
||||||
|
hl.bind(mod .. " + B", hl.dsp.exec_cmd(apps.bluetooth), { description = "bluetooth menu" })
|
||||||
|
|
||||||
|
-- Clipboard history. On release so the picker does not inherit the held ALT.
|
||||||
|
hl.bind("ALT + m", hl.dsp.exec_cmd(apps.clipboard), { release = true, description = "clipboard history" })
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
-- Screenshots, replay buffer, webcam. Everything that records something.
|
||||||
|
|
||||||
|
local scripts = os.getenv("HOME") .. "/.config/hypr/scripts/"
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------- screenshots
|
||||||
|
-- PRINT selects a region, CTRL grabs the focused window, SHIFT saves to disk
|
||||||
|
-- instead of the clipboard.
|
||||||
|
-- All four go through scripts/shot.sh, which also posts a notification with
|
||||||
|
-- the capture as its thumbnail (Open, Edit with satty, Save).
|
||||||
|
local shot = scripts .. "shot.sh "
|
||||||
|
hl.bind("PRINT", hl.dsp.exec_cmd(shot .. "region copy"), { description = "screenshot an area to the clipboard" })
|
||||||
|
hl.bind("SHIFT + PRINT", hl.dsp.exec_cmd(shot .. "region save"), { description = "screenshot an area to a file" })
|
||||||
|
hl.bind("CTRL + PRINT", hl.dsp.exec_cmd(shot .. "window copy"), { description = "screenshot the window to the clipboard" })
|
||||||
|
hl.bind("CTRL + SHIFT + PRINT", hl.dsp.exec_cmd(shot .. "window save"), { description = "screenshot the window to a file" })
|
||||||
|
|
||||||
|
-- ------------------------------------------------------- replay and camera
|
||||||
|
-- On release, so the shortcut is not caught mid-chord.
|
||||||
|
local on_release = { release = true }
|
||||||
|
|
||||||
|
hl.bind("ALT + z", hl.dsp.exec_cmd(scripts .. "replay-ctrl.sh toggle"), on_release)
|
||||||
|
hl.bind("ALT + SHIFT + z", hl.dsp.exec_cmd(scripts .. "replay-ctrl.sh save"), on_release)
|
||||||
|
hl.bind("ALT + SHIFT + c", hl.dsp.exec_cmd(scripts .. "droidcam-ctrl.sh toggle"), on_release)
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
-- Laptop multimedia keys: volume, mic, brightness, transport.
|
||||||
|
-- `locked` keeps them working over the lock screen.
|
||||||
|
|
||||||
|
-- Volume and brightness repeat when held.
|
||||||
|
local held = { locked = true, repeating = true }
|
||||||
|
|
||||||
|
-- wpctl rather than `fluxo vol`, which goes up to 150%; `-l 1` stops at 100%.
|
||||||
|
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), held)
|
||||||
|
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), held)
|
||||||
|
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("fluxo vol mute"), held)
|
||||||
|
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("fluxo mic mute"), held)
|
||||||
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl s +10%"), held)
|
||||||
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl s 10%-"), held)
|
||||||
|
|
||||||
|
-- Transport. Requires playerctl.
|
||||||
|
local locked = { locked = true }
|
||||||
|
|
||||||
|
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), locked)
|
||||||
|
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), locked)
|
||||||
|
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), locked)
|
||||||
|
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), locked)
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
-- Takemi shell (quickshell) IPC. Config lives in ~/.config/quickshell.
|
||||||
|
|
||||||
|
local mod = "SUPER"
|
||||||
|
|
||||||
|
local function shell(call, opts)
|
||||||
|
hl.bind(opts.key, hl.dsp.exec_cmd("qs ipc call shell " .. call), { description = opts.description })
|
||||||
|
end
|
||||||
|
|
||||||
|
shell("lock", { key = mod .. " + CTRL + L", description = "lock screen" })
|
||||||
|
shell("power", { key = mod .. " + P", description = "power menu" })
|
||||||
|
shell("ask", { key = mod .. " + A", description = "ask claude" })
|
||||||
|
shell("dashboard", { key = mod .. " + D", description = "dashboard" })
|
||||||
|
shell("overview", { key = mod .. " + W", description = "overview of every workspace" })
|
||||||
|
|
||||||
|
-- Alt+Tab: hold Alt, tap Tab through focus history, let go to switch. The
|
||||||
|
-- overview sees the release itself; the release bind is a backstop for the
|
||||||
|
-- case where Alt comes up before the overview has the keyboard.
|
||||||
|
shell("overviewNext", { key = "ALT + Tab", description = "switch windows" })
|
||||||
|
shell("overviewPrev", { key = "ALT + SHIFT + Tab", description = "switch windows, backwards" })
|
||||||
|
hl.bind("ALT + ALT_L", hl.dsp.exec_cmd("qs ipc call shell overviewCommit"), { release = true })
|
||||||
|
shell("toggleDnd", { key = mod .. " + SHIFT + N", description = "toggle do not disturb" })
|
||||||
|
shell("toggleStayAwake", { key = mod .. " + SHIFT + I", description = "keep the screen awake" })
|
||||||
|
shell("clearNotifications", { key = mod .. " + CTRL + SHIFT + N", description = "clear notifications" })
|
||||||
|
shell("reloadConfig", { key = mod .. " + SHIFT + R", description = "reload shell config" })
|
||||||
|
|
||||||
|
-- Not a shell call, but it lives with the other session toggles.
|
||||||
|
local mirror = require("lua/mirror")
|
||||||
|
hl.bind(mod .. " + SHIFT + P", mirror.toggle, { description = "mirror laptop to all screens" })
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
-- Focus, layout and groups — everything that acts on the window under you.
|
||||||
|
|
||||||
|
local mod = "SUPER"
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------- window
|
||||||
|
hl.bind(mod .. " + SHIFT + Q", hl.dsp.window.close())
|
||||||
|
hl.bind(mod .. " + V", hl.dsp.window.float())
|
||||||
|
hl.bind(mod .. " + F", hl.dsp.window.fullscreen())
|
||||||
|
-- hl.bind(mod .. " + t", hl.dsp.layout("togglesplit")) -- dwindle
|
||||||
|
|
||||||
|
-- -------------------------------------------------------------------- focus
|
||||||
|
local directions = { h = "l", l = "r", k = "u", j = "d" }
|
||||||
|
|
||||||
|
for key, direction in pairs(directions) do
|
||||||
|
hl.bind(mod .. " + " .. key, hl.dsp.focus({ direction = direction }))
|
||||||
|
hl.bind(mod .. " + SHIFT + " .. key:upper(), hl.dsp.window.move({ direction = direction, group_aware = true }))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------- groups
|
||||||
|
hl.bind(mod .. " + n", hl.dsp.group.toggle())
|
||||||
|
-- Alt+Tab belongs to the overview (lua/binds/shell.lua), so tabs in a group
|
||||||
|
-- cycle on Super+Tab.
|
||||||
|
hl.bind(mod .. " + Tab", hl.dsp.group.next(), { description = "next window in group" })
|
||||||
|
hl.bind(mod .. " + SHIFT + Tab", hl.dsp.group.prev(), { description = "previous window in group" })
|
||||||
|
|
||||||
|
-- -------------------------------------------------------------------- mouse
|
||||||
|
hl.bind(mod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
|
hl.bind(mod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
|
-- ----------------------------------------------------------------- keyboard
|
||||||
|
-- cycle keyboard layout (dvorak-intl <-> us-intl), see lua/input.lua
|
||||||
|
hl.bind(mod .. " + ALT + SPACE", hl.dsp.exec_cmd("hyprctl switchxkblayout all next"))
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
-- Workspaces, including the scratchpad.
|
||||||
|
|
||||||
|
local mod = "SUPER"
|
||||||
|
|
||||||
|
-- Switch with mod + [0-9], move the active window with mod + SHIFT + [0-9].
|
||||||
|
for i = 1, 10 do
|
||||||
|
local key = i % 10 -- 10 maps to key 0
|
||||||
|
hl.bind(mod .. " + " .. key, hl.dsp.focus({ workspace = i }))
|
||||||
|
hl.bind(mod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Scroll through existing workspaces with mod + scroll
|
||||||
|
hl.bind(mod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||||
|
hl.bind(mod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||||
|
|
||||||
|
-- Scratchpad: S holds anything virtual. Chat opens wherever it is launched.
|
||||||
|
hl.bind(mod .. " + S", hl.dsp.workspace.toggle_special("virtual"))
|
||||||
|
hl.bind(mod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:virtual" }))
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
||||||
|
--
|
||||||
|
-- Note: this session starts through uwsm, which would rather have these in
|
||||||
|
-- ~/.config/uwsm/env (toolkit, cursor, GPU) and ~/.config/uwsm/env-hyprland
|
||||||
|
-- (HYPR*, AQ_*). They are kept here for now so the config stays self-contained.
|
||||||
|
|
||||||
|
-- cursor
|
||||||
|
hl.env("HYPRCURSOR_THEME", "Bibata-Modern-Classic")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", "24")
|
||||||
|
hl.env("XCURSOR_THEME", "Bibata-Modern-Classic")
|
||||||
|
hl.env("XCURSOR_SIZE", "24")
|
||||||
|
|
||||||
|
-- session
|
||||||
|
hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
|
||||||
|
|
||||||
|
-- toolkits
|
||||||
|
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
|
||||||
|
hl.env("MOZ_ENABLE_WAYLAND", "1")
|
||||||
|
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "wayland")
|
||||||
|
|
||||||
|
-- AMD graphics / video acceleration
|
||||||
|
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
|
||||||
|
hl.env("VDPAU_DRIVER", "radeonsi")
|
||||||
|
hl.env("AMD_VULKAN_ICD", "RADV")
|
||||||
|
|
||||||
|
-- misc
|
||||||
|
hl.env("EDITOR", "nvim")
|
||||||
|
|
||||||
|
-- hl.env("INTEL_DEBUG", "noccs")
|
||||||
|
-- hl.env("WLR_DRM_NO_ATOMIC", "1")
|
||||||
|
-- hl.env("debug:full_cm_proto", "true")
|
||||||
|
|
||||||
|
|
||||||
|
-- headroom
|
||||||
|
|
||||||
|
hl.env("HEADROOM_ROLLOUT_CHANNEL", "beta")
|
||||||
|
|
||||||
|
hl.env("HEADROOM_OUTPUT_SHAPER", "1")
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
-- Game mode: while a fullscreen game is on screen, neither the compositor nor
|
||||||
|
-- the shell spends anything on the desktop it covers.
|
||||||
|
--
|
||||||
|
-- on <=> some monitor shows a game, fullscreen, on its active workspace
|
||||||
|
--
|
||||||
|
-- Like lua/lid.lua, the answer is re-derived from live state on every trigger
|
||||||
|
-- and nothing is remembered, so a reload mid-game simply finds the game again.
|
||||||
|
--
|
||||||
|
-- A game is a window that says so through the content-type protocol
|
||||||
|
-- (gamescope does), or one whose class gives it away: Proton names every Steam
|
||||||
|
-- game steam_app_<id>. Add to GAME_CLASSES for anything else.
|
||||||
|
--
|
||||||
|
-- The shell is told through its IPC and pauses its own polling and animation
|
||||||
|
-- (quickshell/services/GameMode.qml).
|
||||||
|
|
||||||
|
-- Lua patterns, matched against the window class.
|
||||||
|
local GAME_CLASSES = {
|
||||||
|
"^steam_app_%d+$",
|
||||||
|
"^gamescope$",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- What game mode sets. What it puts back is read from the config as loaded, so
|
||||||
|
-- lua/look.lua and lua/animations.lua stay the only place those are decided. A
|
||||||
|
-- reload resets every option before the config runs, so this never reads game
|
||||||
|
-- mode's own values back.
|
||||||
|
local GAME = {
|
||||||
|
-- Nothing under a fullscreen window is worth animating, and leaving the
|
||||||
|
-- game should be instant.
|
||||||
|
["animations.enabled"] = false,
|
||||||
|
["decoration.shadow.enabled"] = false,
|
||||||
|
-- Hand the game's frames straight to the display instead of compositing
|
||||||
|
-- them every refresh. Only while playing: with it on all the time, some
|
||||||
|
-- ordinary fullscreen apps flicker or show the wrong colours.
|
||||||
|
["render.direct_scanout"] = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
local NORMAL = {}
|
||||||
|
for option in pairs(GAME) do
|
||||||
|
NORMAL[option] = hl.get_config(option)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------- reading state
|
||||||
|
|
||||||
|
local function is_game(win)
|
||||||
|
if win.content_type == "game" then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
local class = win.class or ""
|
||||||
|
for _, pattern in ipairs(GAME_CLASSES) do
|
||||||
|
if class:match(pattern) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
-- `ignore` is a window being closed: during window.close it can still be
|
||||||
|
-- listed, and counting it would keep game mode on after the game has gone.
|
||||||
|
-- Fullscreen 2 is real fullscreen; a maximised game (1) still shows the hull.
|
||||||
|
local function playing(ignore)
|
||||||
|
for _, win in ipairs(hl.get_windows()) do
|
||||||
|
if win ~= ignore
|
||||||
|
and win.mapped
|
||||||
|
and win.fullscreen >= 2
|
||||||
|
and win.monitor
|
||||||
|
and win.monitor.active_workspace == win.workspace
|
||||||
|
and is_game(win)
|
||||||
|
then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------- reconciling
|
||||||
|
|
||||||
|
-- A fresh config is the normal one, so only a game found at load needs
|
||||||
|
-- applying. The shell heard the last "false" before the reload.
|
||||||
|
local active = false
|
||||||
|
|
||||||
|
local function tell_shell()
|
||||||
|
hl.exec_cmd("qs ipc call shell gameMode " .. tostring(active))
|
||||||
|
end
|
||||||
|
|
||||||
|
local function reconcile(ignore)
|
||||||
|
local want = playing(ignore)
|
||||||
|
if want == active then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
active = want
|
||||||
|
hl.config(active and GAME or NORMAL)
|
||||||
|
tell_shell()
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------ triggers
|
||||||
|
|
||||||
|
for _, event in ipairs({
|
||||||
|
"window.open",
|
||||||
|
"window.fullscreen",
|
||||||
|
"window.move_to_workspace",
|
||||||
|
-- Proton sets the class after the window opens.
|
||||||
|
"window.class",
|
||||||
|
"workspace.active",
|
||||||
|
"monitor.removed",
|
||||||
|
}) do
|
||||||
|
hl.on(event, function()
|
||||||
|
reconcile()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
hl.on("window.close", function(win)
|
||||||
|
reconcile(win)
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- A shell started mid-game (Super+Shift+R, or a crash) begins with game mode
|
||||||
|
-- off. Its bar mapping is the sign it is up and listening.
|
||||||
|
hl.on("layer.opened", function(layer)
|
||||||
|
if active and layer.namespace == "takemi-bar" then
|
||||||
|
tell_shell()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
reconcile()
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Variables/#input
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
input = {
|
||||||
|
-- index 0 = dvorak-intl (default), index 1 = us-intl
|
||||||
|
-- switch with $mainMod ALT, SPACE (see lua/binds/windows.lua)
|
||||||
|
kb_layout = "us,us",
|
||||||
|
kb_variant = "dvorak-intl,intl",
|
||||||
|
kb_model = "",
|
||||||
|
kb_rules = "",
|
||||||
|
kb_options = "caps:backspace",
|
||||||
|
|
||||||
|
follow_mouse = 0,
|
||||||
|
|
||||||
|
accel_profile = "flat",
|
||||||
|
sensitivity = 0, -- -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Layouts are inherited from the global input block so that layout switching
|
||||||
|
-- applies to these too. Only bind resolution differs here.
|
||||||
|
-- https://wiki.hypr.land/Configuring/Advanced-and-Cool/Devices/
|
||||||
|
for _, name in ipairs({
|
||||||
|
"at-translated-set-2-keyboard",
|
||||||
|
"topre-corporation-hhkb-professional",
|
||||||
|
}) do
|
||||||
|
hl.device({ name = name, resolve_binds_by_sym = true })
|
||||||
|
end
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
-- Laptop lid handling.
|
||||||
|
--
|
||||||
|
-- One rule, applied from several triggers:
|
||||||
|
--
|
||||||
|
-- panel off <=> lid is shut AND something else is plugged in
|
||||||
|
--
|
||||||
|
-- Both halves are re-checked every time, so the session can never end up with
|
||||||
|
-- zero outputs. Undocking with the lid shut brings the panel back; booting
|
||||||
|
-- alone after a docked shutdown just works, because nothing about the previous
|
||||||
|
-- session is remembered.
|
||||||
|
--
|
||||||
|
-- That last part is the fix for the old design: scripts/lid_handler.sh wrote a
|
||||||
|
-- lid_state.conf that got sourced on the next start, so a laptop that was shut
|
||||||
|
-- while docked came up believing it still had an external display and blanked
|
||||||
|
-- its own panel. Lid state now comes from the kernel instead, and the external
|
||||||
|
-- check is a live one.
|
||||||
|
|
||||||
|
local monitors = require("lua/monitors")
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------- reading state
|
||||||
|
|
||||||
|
-- The kernel's own view of the hinge. Present on this machine as
|
||||||
|
-- /proc/acpi/button/lid/LID/state; the device name differs per vendor, hence
|
||||||
|
-- the glob. Returns nil if the file is missing or unparseable.
|
||||||
|
local function acpi_lid_closed()
|
||||||
|
local pipe = io.popen("cat /proc/acpi/button/lid/*/state 2>/dev/null")
|
||||||
|
if not pipe then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local out = pipe:read("a") or ""
|
||||||
|
pipe:close()
|
||||||
|
|
||||||
|
if out:find("closed", 1, true) then
|
||||||
|
return true
|
||||||
|
elseif out:find("open", 1, true) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Whatever the last switch event said, used only when ACPI has nothing for us.
|
||||||
|
local last_switch_closed = nil
|
||||||
|
|
||||||
|
local function lid_closed()
|
||||||
|
local acpi = acpi_lid_closed()
|
||||||
|
if acpi ~= nil then
|
||||||
|
return acpi
|
||||||
|
end
|
||||||
|
return last_switch_closed == true
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------- reconciling
|
||||||
|
|
||||||
|
-- nil until the first decision, so the first pass always applies.
|
||||||
|
local panel_off = nil
|
||||||
|
|
||||||
|
-- `ignore` is the output being unplugged: during monitor.removed it can still
|
||||||
|
-- be listed, and counting it would keep the panel switched off.
|
||||||
|
local function reconcile(ignore)
|
||||||
|
-- Nothing enumerated yet means we are still parsing the config on a cold
|
||||||
|
-- start. Leave the defaults from lua/monitors.lua alone and wait for the
|
||||||
|
-- start event.
|
||||||
|
local all = hl.get_monitors()
|
||||||
|
if #all == 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local externals = 0
|
||||||
|
for _, mon in ipairs(monitors.externals_present()) do
|
||||||
|
if mon.name ~= ignore then
|
||||||
|
externals = externals + 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local want_off = lid_closed() and externals > 0
|
||||||
|
|
||||||
|
if want_off == panel_off then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
panel_off = want_off
|
||||||
|
|
||||||
|
if want_off then
|
||||||
|
monitors.disable_builtin()
|
||||||
|
else
|
||||||
|
monitors.enable_builtin()
|
||||||
|
end
|
||||||
|
monitors.apply_external()
|
||||||
|
|
||||||
|
-- Quickshell follows monitor hotplug by itself, wallpaper included.
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------ triggers
|
||||||
|
|
||||||
|
hl.bind("switch:on:Lid Switch", function()
|
||||||
|
last_switch_closed = true
|
||||||
|
reconcile()
|
||||||
|
end, { locked = true })
|
||||||
|
|
||||||
|
hl.bind("switch:off:Lid Switch", function()
|
||||||
|
last_switch_closed = false
|
||||||
|
reconcile()
|
||||||
|
end, { locked = true })
|
||||||
|
|
||||||
|
-- Docking and undocking. Removal passes the output that is going away.
|
||||||
|
hl.on("monitor.added", function()
|
||||||
|
reconcile()
|
||||||
|
end)
|
||||||
|
|
||||||
|
hl.on("monitor.removed", function(mon)
|
||||||
|
reconcile(mon and mon.name)
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Cold start: outputs are not up yet at this point, so this settles once they
|
||||||
|
-- are. On `hyprctl reload` the start event does not fire again, but the
|
||||||
|
-- monitor list is already populated, so run it inline too.
|
||||||
|
hl.on("hyprland.start", function()
|
||||||
|
reconcile()
|
||||||
|
end)
|
||||||
|
|
||||||
|
reconcile()
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
-- YoRHa dark — NieR:Automata's interface language on the space-1 wallpaper's
|
||||||
|
-- palette, matched to ~/.config/quickshell.
|
||||||
|
--
|
||||||
|
-- Everything static about how the desktop is painted. Motion lives next door
|
||||||
|
-- in lua/animations.lua.
|
||||||
|
|
||||||
|
local c = require("lua/palette")
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Variables/
|
||||||
|
general = {
|
||||||
|
-- Measured from the quickshell hull's opening, not the screen edge: the
|
||||||
|
-- hull reserves its own exclusive zones. 10px clears the opening's 18px
|
||||||
|
-- corner radius, so a tiled window never touches the rim.
|
||||||
|
gaps_in = 5,
|
||||||
|
gaps_out = 10,
|
||||||
|
|
||||||
|
border_size = 1,
|
||||||
|
|
||||||
|
col = {
|
||||||
|
active_border = c.activeBorder,
|
||||||
|
-- Overlay, not outline: an idle window's frame is structure,
|
||||||
|
-- and the outline grey was bright enough to compete with the
|
||||||
|
-- focused border.
|
||||||
|
inactive_border = c.overlay,
|
||||||
|
},
|
||||||
|
|
||||||
|
resize_on_border = false,
|
||||||
|
|
||||||
|
-- Please see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Tearing/
|
||||||
|
-- before you turn this on
|
||||||
|
allow_tearing = false,
|
||||||
|
|
||||||
|
layout = "dwindle",
|
||||||
|
},
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
-- Concentric with the porthole: the opening's corners are 18px and
|
||||||
|
-- the windows sit 10px inside them, so 8px keeps every gap the same
|
||||||
|
-- width all the way round the curve. Matches Theme.frameRadius -
|
||||||
|
-- gaps_out; change one and the other has to follow.
|
||||||
|
rounding = 8,
|
||||||
|
rounding_power = 2,
|
||||||
|
|
||||||
|
-- Fully opaque, both states. Flat ink on flat ground.
|
||||||
|
active_opacity = 1.0,
|
||||||
|
inactive_opacity = 1.0,
|
||||||
|
|
||||||
|
-- A soft, wide shadow: windows float in the opening rather than
|
||||||
|
-- being printed onto it. Dark against the planet light, invisible
|
||||||
|
-- against the void, which is how a shadow behaves out there.
|
||||||
|
shadow = {
|
||||||
|
enabled = true,
|
||||||
|
sharp = false,
|
||||||
|
range = 24,
|
||||||
|
render_power = 3,
|
||||||
|
offset = { 0, 6 },
|
||||||
|
color = "rgba(000000aa)",
|
||||||
|
color_inactive = "rgba(00000066)",
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Off. Every surface here is opaque, so there is nothing to blur, and
|
||||||
|
-- blur would cost three render passes for no visible result.
|
||||||
|
blur = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 0,
|
||||||
|
disable_hyprland_logo = true,
|
||||||
|
-- 0 = off, 1 = always, 2 = fullscreen only (G7 is a 240Hz VRR panel)
|
||||||
|
vrr = 0,
|
||||||
|
font_family = "JetBrainsMono Nerd Font",
|
||||||
|
background_color = c.base,
|
||||||
|
focus_on_activate = true,
|
||||||
|
-- The shell powers displays down after idle (quickshell/services/Idle.qml)
|
||||||
|
-- and back up when idle ends; these wake them even if it is not running.
|
||||||
|
key_press_enables_dpms = true,
|
||||||
|
mouse_move_enables_dpms = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
group = {
|
||||||
|
col = {
|
||||||
|
border_active = c.activeBorder,
|
||||||
|
border_inactive = c.overlay,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Tabs are thin rounded lines, not titled slabs. The bar already
|
||||||
|
-- writes the focused title and its place in the group ("2/3", in
|
||||||
|
-- quickshell/bar/ActiveWindow.qml), so titles here only repeated it in
|
||||||
|
-- a second font. Hyprland paints a tab's indicator in the same colour
|
||||||
|
-- as its fill, so with no fill the current tab is simply the light one.
|
||||||
|
groupbar = {
|
||||||
|
render_titles = false,
|
||||||
|
gradients = false,
|
||||||
|
|
||||||
|
indicator_height = 3,
|
||||||
|
indicator_gap = 0,
|
||||||
|
rounding = 2,
|
||||||
|
round_only_edges = false,
|
||||||
|
keep_upper_gap = false,
|
||||||
|
gaps_in = 4,
|
||||||
|
gaps_out = 0,
|
||||||
|
|
||||||
|
col = {
|
||||||
|
active = c.accent,
|
||||||
|
inactive = c.overlay,
|
||||||
|
locked_active = c.alarm,
|
||||||
|
locked_inactive = c.overlay,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/
|
||||||
|
dwindle = {
|
||||||
|
preserve_split = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- https://wiki.hypr.land/Configuring/Layouts/Master-Layout/
|
||||||
|
master = {
|
||||||
|
new_status = "master",
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
-- Presentation mode: every external output shows the laptop panel.
|
||||||
|
--
|
||||||
|
-- Toggled from lua/binds/shell.lua. Mirroring is just a `mirror` field on the
|
||||||
|
-- monitor rule, so switching it off clears that field and re-applies the specs
|
||||||
|
-- from lua/monitors.lua to put the Samsung back where it belongs.
|
||||||
|
--
|
||||||
|
-- Anything plugged in while mirroring is on gets mirrored too, which is the
|
||||||
|
-- usual order at a talk: press the key, then find the HDMI cable.
|
||||||
|
|
||||||
|
local monitors = require("lua/monitors")
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
local function notify(text)
|
||||||
|
hl.notification.create({ text = text, timeout = 3000 })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The panel is off while docked with the lid shut, see lua/lid.lua. Mirroring
|
||||||
|
-- a disabled output would leave every screen black.
|
||||||
|
local function builtin()
|
||||||
|
for _, mon in ipairs(hl.get_monitors()) do
|
||||||
|
if mon.name == monitors.laptop then
|
||||||
|
return mon
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
-- A mirroring output drops out of hl.get_monitors(), so the only place left
|
||||||
|
-- to find it is the panel's own `mirrors` list. That list is also the state:
|
||||||
|
-- a Lua flag would reset on every config reload while the outputs stay
|
||||||
|
-- mirrored.
|
||||||
|
local function mirroring(panel)
|
||||||
|
local names = {}
|
||||||
|
for _, mon in ipairs(panel and panel.mirrors or {}) do
|
||||||
|
table.insert(names, mon.name)
|
||||||
|
end
|
||||||
|
return names
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Outputs keep their own mode while mirroring, and the panel image gets
|
||||||
|
-- rescaled to fit it every frame. The Dells at 1920x1200 flicker with that,
|
||||||
|
-- so match the panel's resolution; Hyprland falls back to the preferred mode
|
||||||
|
-- if the output cannot do it.
|
||||||
|
local function mirror_all(panel)
|
||||||
|
local mode = panel.width .. "x" .. panel.height
|
||||||
|
for _, mon in ipairs(monitors.externals_present()) do
|
||||||
|
hl.monitor({ output = mon.name, mirror = monitors.laptop, mode = mode, position = "auto" })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The bar, popouts and wallpaper stay on the outputs they were created for,
|
||||||
|
-- so respawn the shell the same way lua/autostart.lua starts it.
|
||||||
|
local function restart_clients()
|
||||||
|
hl.exec_cmd("sh -c 'qs kill; exec uwsm app -- qs'")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- hl.monitor() only takes effect after the calling handler returns, so
|
||||||
|
-- anything that has to see the new layout goes on a timer.
|
||||||
|
local function later(fn)
|
||||||
|
hl.timer(fn, { timeout = 500, type = "oneshot" })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Clearing `mirror` alone brings the image back, but Hyprland never
|
||||||
|
-- re-announces the output to clients: hyprpaper and Quickshell keep seeing
|
||||||
|
-- only the panel, however often they restart. Cycling the output through
|
||||||
|
-- disabled makes it a fresh wl_output. Undeclared outputs get their auto
|
||||||
|
-- defaults back, apply_external() then overrides what lua/monitors.lua knows
|
||||||
|
-- better.
|
||||||
|
local function unmirror_all(names)
|
||||||
|
for _, name in ipairs(names) do
|
||||||
|
hl.monitor({ output = name, mirror = "", disabled = true })
|
||||||
|
end
|
||||||
|
later(function()
|
||||||
|
for _, name in ipairs(names) do
|
||||||
|
hl.monitor({ output = name, disabled = false, mode = "preferred", position = "auto" })
|
||||||
|
end
|
||||||
|
monitors.apply_external()
|
||||||
|
later(restart_clients)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.toggle()
|
||||||
|
local panel = builtin()
|
||||||
|
local mirrored = mirroring(panel)
|
||||||
|
|
||||||
|
if #mirrored > 0 then
|
||||||
|
unmirror_all(mirrored)
|
||||||
|
notify("Mirroring off")
|
||||||
|
elseif panel then
|
||||||
|
mirror_all(panel)
|
||||||
|
later(restart_clients)
|
||||||
|
notify("Mirroring " .. monitors.laptop .. " to all screens")
|
||||||
|
else
|
||||||
|
notify("Laptop panel is off, open the lid first")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
hl.on("monitor.added", function()
|
||||||
|
local panel = builtin()
|
||||||
|
if #mirroring(panel) > 0 then
|
||||||
|
mirror_all(panel)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
return M
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Monitors/
|
||||||
|
--
|
||||||
|
-- Declares every display once and exports the table, so lua/lid.lua can turn
|
||||||
|
-- the laptop panel on and off without duplicating any of these numbers.
|
||||||
|
--
|
||||||
|
-- Load-time behaviour is deliberately dumb: the built-in panel is always
|
||||||
|
-- enabled here. Deciding to switch it off needs to know whether anything else
|
||||||
|
-- is actually plugged in, and during a cold start the outputs are not
|
||||||
|
-- enumerated yet — so that decision lives in lua/lid.lua, which re-runs it on
|
||||||
|
-- every lid and hotplug event. Worst case the panel flickers on for a moment
|
||||||
|
-- while docked; the alternative failure is a black screen.
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
M.laptop = "eDP-1"
|
||||||
|
|
||||||
|
M.external = {
|
||||||
|
-- samsung home monitor. Other modes it has run at, if you ever need them:
|
||||||
|
-- "2560x1440@144", "1920x1080@144", "1280x720@240"
|
||||||
|
{ output = "desc:Samsung Electric Company LC27G7xT H4ZRA00734", mode = "2560x1440@240", position = "-2560x0", scale = 1 },
|
||||||
|
}
|
||||||
|
|
||||||
|
-- `disabled = false` is load-bearing, not decoration. hl.monitor() merges into
|
||||||
|
-- whatever rule the output already has, so a spec that simply omits the flag
|
||||||
|
-- leaves an earlier `disabled = true` in place: the panel stays dark and the
|
||||||
|
-- mode/position are applied to a monitor nobody can see. Opening the lid while
|
||||||
|
-- docked hit exactly that.
|
||||||
|
M.builtin = { output = M.laptop, mode = "1920x1080@60", position = "0x0", scale = 1, disabled = false }
|
||||||
|
|
||||||
|
-- Anything not declared above falls back to Hyprland's auto placement, so a
|
||||||
|
-- borrowed projector or a monitor at the office still lights up.
|
||||||
|
|
||||||
|
function M.apply_external()
|
||||||
|
for _, mon in ipairs(M.external) do
|
||||||
|
hl.monitor(mon)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.enable_builtin()
|
||||||
|
hl.monitor(M.builtin)
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.disable_builtin()
|
||||||
|
hl.monitor({ output = M.laptop, disabled = true })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Every connected output except the laptop panel. Empty during early startup,
|
||||||
|
-- which callers have to treat as "do not know yet", never as "nothing here".
|
||||||
|
function M.externals_present()
|
||||||
|
local found = {}
|
||||||
|
for _, mon in ipairs(hl.get_monitors()) do
|
||||||
|
if mon.name ~= M.laptop then
|
||||||
|
table.insert(found, mon)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return found
|
||||||
|
end
|
||||||
|
|
||||||
|
M.enable_builtin()
|
||||||
|
M.apply_external()
|
||||||
|
|
||||||
|
return M
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
-- YoRHa dark palette — kept in step with ~/.config/quickshell/config/Theme.qml.
|
||||||
|
--
|
||||||
|
-- The wallpaper's grey-green void for the ground, its planet light as the
|
||||||
|
-- accent, the hull's red indicator as the alarm. Nothing else carries hue.
|
||||||
|
--
|
||||||
|
-- Returned as a table, so every module that paints something does
|
||||||
|
-- local c = require("lua/palette")
|
||||||
|
-- and there is exactly one place the colours are written.
|
||||||
|
|
||||||
|
local c = {}
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------- THE KNOBS
|
||||||
|
-- Two colours in this setup: the planet light for anything live (window
|
||||||
|
-- borders, group indicators, focus), the hull red for anything wrong. Change these lines and every
|
||||||
|
-- painted edge recolours with them.
|
||||||
|
--
|
||||||
|
-- Keep them in step with `accent` / `alarm` in
|
||||||
|
-- ~/.config/quickshell/config/Theme.qml, which is what colours the shell.
|
||||||
|
-- Those are the only places the colours are written.
|
||||||
|
c.accent = "rgb(eef1ea)"
|
||||||
|
c.alarm = "rgb(c8684f)"
|
||||||
|
|
||||||
|
c.accentDim = "rgb(8e978d)"
|
||||||
|
c.accentSoft = "rgb(bcc1bf)"
|
||||||
|
|
||||||
|
-- ------------------------------------------------------------------ neutrals
|
||||||
|
c.ink = "rgb(090a08)"
|
||||||
|
|
||||||
|
c.base = "rgb(0f110e)"
|
||||||
|
c.mantle = "rgb(0c0d0b)"
|
||||||
|
c.surface = "rgb(161915)"
|
||||||
|
c.surfaceAlt = "rgb(20241f)"
|
||||||
|
c.overlay = "rgb(383e35)"
|
||||||
|
c.outline = "rgb(545c52)"
|
||||||
|
|
||||||
|
c.text = "rgb(ccd2cb)"
|
||||||
|
c.subtext = "rgb(9fa7a2)"
|
||||||
|
c.muted = "rgb(79847a)"
|
||||||
|
|
||||||
|
-- Semantic aliases, so existing references resolve without inventing hues.
|
||||||
|
c.primary = c.text
|
||||||
|
c.primaryDim = "rgb(8e978d)"
|
||||||
|
c.glow = c.accent
|
||||||
|
c.blue = c.accent
|
||||||
|
c.deep = c.surfaceAlt
|
||||||
|
c.warn = c.alarm
|
||||||
|
c.ok = c.text
|
||||||
|
|
||||||
|
-- The focused window is lit by the planet: full light at the top-left, the
|
||||||
|
-- suit's grey at the far corner. One family, so it reads as light falling
|
||||||
|
-- across the frame rather than as two colours.
|
||||||
|
c.activeBorder = { colors = { c.accent, c.accentDim }, angle = 135 }
|
||||||
|
|
||||||
|
return c
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Window-Rules/#layer-rules
|
||||||
|
--
|
||||||
|
-- Quickshell surfaces: the bar, popouts, the OSD and the launcher. Note
|
||||||
|
-- decoration.blur is off in lua/look.lua, so these only take effect if blur is
|
||||||
|
-- switched back on.
|
||||||
|
|
||||||
|
for _, namespace in ipairs({ "bottom", "top", "takemi-launcher" }) do
|
||||||
|
hl.layer_rule({
|
||||||
|
match = { namespace = namespace },
|
||||||
|
blur = true,
|
||||||
|
ignore_alpha = 0.5,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The hull shares the top layer with the bar and the rail, which draw on it,
|
||||||
|
-- so they are ordered above it whatever order they map in. See
|
||||||
|
-- quickshell/bar/Frame.qml.
|
||||||
|
for _, namespace in ipairs({ "takemi-bar", "takemi-rail" }) do
|
||||||
|
hl.layer_rule({
|
||||||
|
match = { namespace = namespace },
|
||||||
|
order = -1,
|
||||||
|
})
|
||||||
|
end
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
-- https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
||||||
|
--
|
||||||
|
-- Rules are evaluated top to bottom and the last match wins, so order matters.
|
||||||
|
-- Named rules are all evaluated before anonymous ones.
|
||||||
|
|
||||||
|
-- ==========================================
|
||||||
|
-- MATCHERS
|
||||||
|
-- ==========================================
|
||||||
|
-- Dialogs and utility apps that should float in the center
|
||||||
|
local DIALOG_TITLES = "^(Open Form|Open File|Select a File|Choose a file|Open Workspace|Choose Directory.*|Save As.*|Save File.*|branchdialog|pinentry-gtk-2|Confirm to replace files|File Operation Progress|Open Files.*|Anmelden.*|File Upload.*|TRuDI-Export laden)$"
|
||||||
|
-- pdfs-prompt is the Proton Drive search: io.narl.* is its GTK window, plain
|
||||||
|
-- pdfs-prompt the terminal `pdfs-prompt --fzf` spawns for itself. Every
|
||||||
|
-- terminal it knows how to start sets that same class, so this one rule holds
|
||||||
|
-- whichever is installed.
|
||||||
|
local DIALOG_CLASSES = "^(pavucontrol|blueman-manager|nm-connection-editor|org.pulseaudio.pavucontrol|io.narl.proton-drive-linux-prompt|pdfs-prompt)$"
|
||||||
|
|
||||||
|
local STEAM = "^(steam)$"
|
||||||
|
local GAMESCOPE = "^(gamescope)$"
|
||||||
|
|
||||||
|
-- ==========================================
|
||||||
|
-- GENERAL & FIXES
|
||||||
|
-- ==========================================
|
||||||
|
-- Ignore maximize requests from apps. You'll probably like this.
|
||||||
|
-- hl.window_rule({ match = { class = ".*" }, suppress_event = "maximize" })
|
||||||
|
|
||||||
|
-- Fix some dragging issues with XWayland
|
||||||
|
-- hl.window_rule({
|
||||||
|
-- match = { class = "^$", title = "^$", xwayland = true, float = true, fullscreen = false, pin = false },
|
||||||
|
-- no_focus = true,
|
||||||
|
-- })
|
||||||
|
hl.window_rule({ match = { class = "^$", title = "^$" }, no_blur = true })
|
||||||
|
|
||||||
|
-- Hold idle off while any window is fullscreen. Players do not all ask for
|
||||||
|
-- that themselves (Brave goes through D-Bus, which nothing here listens to),
|
||||||
|
-- and the shell's dim and lock (quickshell/services/Idle.qml) respect inhibitors.
|
||||||
|
hl.window_rule({ match = { class = ".*" }, idle_inhibit = "fullscreen" })
|
||||||
|
|
||||||
|
-- ==========================================
|
||||||
|
-- FLOATING & CENTERED DIALOGS
|
||||||
|
-- ==========================================
|
||||||
|
-- Float, size, center, no blur — one rule per matcher instead of four.
|
||||||
|
for _, match in ipairs({ { title = DIALOG_TITLES }, { class = DIALOG_CLASSES } }) do
|
||||||
|
hl.window_rule({
|
||||||
|
match = match,
|
||||||
|
float = true,
|
||||||
|
size = { 800, 600 },
|
||||||
|
center = true,
|
||||||
|
no_blur = true,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ==========================================
|
||||||
|
-- WORKSPACE ASSIGNMENTS
|
||||||
|
-- ==========================================
|
||||||
|
-- hl.window_rule({ match = { class = "^(firefox)$" }, workspace = "1" })
|
||||||
|
-- hl.window_rule({ match = { class = "^(kitty)$" }, workspace = "2" })
|
||||||
|
-- hl.window_rule({ match = { class = "^(Code)$" }, workspace = "3" })
|
||||||
|
hl.window_rule({ match = { class = GAMESCOPE }, workspace = "1" })
|
||||||
|
|
||||||
|
-- Special workspaces
|
||||||
|
hl.window_rule({ match = { class = "^(Spotify|spotify)$" }, workspace = "special:virtual" })
|
||||||
|
|
||||||
|
-- ==========================================
|
||||||
|
-- STEAM & GAMING
|
||||||
|
-- ==========================================
|
||||||
|
-- hl.window_rule({ match = { class = STEAM, title = "^(Steam)$" }, workspace = "3 silent" })
|
||||||
|
|
||||||
|
-- Fixed sizes for specific Steam windows
|
||||||
|
hl.window_rule({ match = { class = STEAM, title = "^(Friends List)$" }, size = { 400, 800 } })
|
||||||
|
hl.window_rule({ match = { class = STEAM, title = "^(Steam Settings)$" }, size = { 1000, 800 } })
|
||||||
|
hl.window_rule({ match = { class = STEAM, title = "^(Add Non-Steam Game)$" }, size = { 1000, 800 } })
|
||||||
|
|
||||||
|
-- Float and disable blur for Steam windows that aren't the main window
|
||||||
|
hl.window_rule({
|
||||||
|
match = { class = STEAM, title = "negative:^(Steam)$" },
|
||||||
|
float = true,
|
||||||
|
no_blur = true,
|
||||||
|
-- center = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Allow tearing for games started with Gamescope
|
||||||
|
hl.window_rule({ match = { class = GAMESCOPE }, immediate = true })
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
|
|
||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
# Or execute your favorite apps at launch like this:
|
|
||||||
|
|
||||||
# Takemi shell — bar, popouts, notifications, OSD, power menu and lock screen.
|
|
||||||
# Config lives in ~/.config/quickshell. It owns org.freedesktop.Notifications,
|
|
||||||
# so dunst must stay masked (systemctl --user mask dunst.service).
|
|
||||||
exec-once = uwsm app -- qs
|
|
||||||
|
|
||||||
# exec-once = uwsm app -- waybar
|
|
||||||
# exec-once = uwsm app -- hyprpanel
|
|
||||||
# exec-once = uwsm app -- nextcloud --background
|
|
||||||
exec-once = uwsm app -- nm-applet --indicator
|
|
||||||
# exec-once = uwsm app -- rclone mount google_drive: ~/gdrive
|
|
||||||
# exec-once = uwsm app -- protonvpn-app
|
|
||||||
exec-once = uwsm app -- hyprpaper
|
|
||||||
# exec-once = uwsm app -- /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized &> /dev/null
|
|
||||||
# exec-once = sleep 5 && ~/.config/hypr/scripts/replay-ctrl.sh start
|
|
||||||
# exec-once = uwsm app -- /usr/lib/xdg-desktop-portal-hyprland
|
|
||||||
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
|
|
||||||
exec-once = wl-paste --type image --watch cliphist store # Stores only image data
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
# env = INTEL_DEBUG,noccs
|
|
||||||
# env = WLR_DRM_NO_ATOMIC,1
|
|
||||||
env = HYPRCURSOR_THEME,Bibata-Modern-Classic
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = XCURSOR_THEME,Bibata-Modern-Classic
|
|
||||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
|
||||||
# env = debug:full_cm_proto,true
|
|
||||||
env = QT_QPA_PLATFORMTHEME,qt6ct
|
|
||||||
env = LIBVA_DRIVER_NAME,radeonsi
|
|
||||||
env = VDPAU_DRIVER,radeonsi
|
|
||||||
env = AMD_VULKAN_ICD,RADV
|
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
|
||||||
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
|
|
||||||
env = EDITOR,nvim
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
|
||||||
input {
|
|
||||||
# index 0 = dvorak-intl (default), index 1 = us-intl
|
|
||||||
# switch with $mainMod ALT, SPACE (see keybinds.conf)
|
|
||||||
kb_layout = us,us
|
|
||||||
kb_variant = dvorak-intl,intl
|
|
||||||
kb_model =
|
|
||||||
kb_rules =
|
|
||||||
kb_options = caps:backspace
|
|
||||||
|
|
||||||
follow_mouse = 0
|
|
||||||
|
|
||||||
accel_profile = flat
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Layouts are inherited from the global input block so that layout
|
|
||||||
# switching applies to these too. Only bind resolution differs here.
|
|
||||||
device {
|
|
||||||
name = at-translated-set-2-keyboard
|
|
||||||
resolve_binds_by_sym = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
device {
|
|
||||||
name = topre-corporation-hhkb-professional
|
|
||||||
resolve_binds_by_sym = 1
|
|
||||||
}
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
bindl=,switch:on:Lid Switch,exec,~/.config/hypr/scripts/lid_handler.sh close
|
|
||||||
bindl=,switch:off:Lid Switch,exec,~/.config/hypr/scripts/lid_handler.sh open
|
|
||||||
|
|
||||||
bindr = ALT, m, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
|
|
||||||
bind = , PRINT, exec, grim -g "$(slurp)" - | wl-copy
|
|
||||||
bind = SHIFT, PRINT, exec, grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S').png
|
|
||||||
bind = CTRL, PRINT, exec, ~/.config/hypr/scripts/screenshot_window.sh copy
|
|
||||||
bind = CTRL SHIFT, PRINT, exec, ~/.config/hypr/scripts/screenshot_window.sh save
|
|
||||||
bindr = ALT SHIFT, z, exec, ~/.config/hypr/scripts/replay-ctrl.sh save
|
|
||||||
bindr = ALT, z, exec, ~/.config/hypr/scripts/replay-ctrl.sh toggle
|
|
||||||
bindr = ALT SHIFT, c, exec, ~/.config/hypr/scripts/droidcam-ctrl.sh toggle
|
|
||||||
|
|
||||||
# general binds
|
|
||||||
bind = $mainMod, M, exec, pdfs-prompt --dmenu --menu 'fuzzel --dmenu --width 60'
|
|
||||||
bind = $mainMod, B, exec, fluxo bt menu
|
|
||||||
bind = $mainMod, RETURN, exec, $terminal
|
|
||||||
bind = $mainMod SHIFT, Q, killactive,
|
|
||||||
bind = $mainMod CTRL, L, exec, qs ipc call shell lock
|
|
||||||
bind = $mainMod, E, exec, $fileManager
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = $mainMod, F, fullscreen,
|
|
||||||
bind = $mainMod, SPACE, exec, $menu
|
|
||||||
bind = $mainMod, P, exec, qs ipc call shell power
|
|
||||||
|
|
||||||
# Takemi shell
|
|
||||||
bind = $mainMod SHIFT, N, exec, qs ipc call shell toggleDnd
|
|
||||||
bind = $mainMod CTRL SHIFT, N, exec, qs ipc call shell clearNotifications
|
|
||||||
bind = $mainMod SHIFT, R, exec, qs ipc call shell reloadConfig
|
|
||||||
# cycle keyboard layout (dvorak-intl <-> us-intl)
|
|
||||||
bind = $mainMod ALT, SPACE, exec, hyprctl switchxkblayout all next
|
|
||||||
# bind = $mainMod, t, togglesplit, # dwindle
|
|
||||||
bind = $mainMod, n, togglegroup
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, h, movefocus, l
|
|
||||||
bind = $mainMod, l, movefocus, r
|
|
||||||
bind = $mainMod, k, movefocus, u
|
|
||||||
bind = $mainMod, j, movefocus, d
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, movewindoworgroup, l
|
|
||||||
bind = $mainMod SHIFT, L, movewindoworgroup, r
|
|
||||||
bind = $mainMod SHIFT, K, movewindoworgroup, u
|
|
||||||
bind = $mainMod SHIFT, J, movewindoworgroup, d
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# groups
|
|
||||||
# bind = ALT, Tab, changegroupactive, prev
|
|
||||||
bind = ALT, Tab, changegroupactive, next
|
|
||||||
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, virtual
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:virtual
|
|
||||||
bind = $mainMod, D, togglespecialworkspace, discord
|
|
||||||
bind = $mainMod SHIFT, D, movetoworkspace, special:discord
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
|
||||||
bind = $mainMod, mouse_up, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, fluxo vol up 5
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, fluxo vol down 5
|
|
||||||
bindel = ,XF86AudioMute, exec, fluxo vol mute
|
|
||||||
bindel = ,XF86AudioMicMute, exec, fluxo mic mute
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s +10%
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
|
|
||||||
# laptop screen
|
|
||||||
monitor = eDP-1, 1920x1080@60, 0x0, 1
|
|
||||||
# samsung home monitor
|
|
||||||
# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 1280x720@240, 0x0, 1
|
|
||||||
monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@240, -2560x0, 1
|
|
||||||
# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@144, 0x0, 1
|
|
||||||
# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 1920x1080@144, 0x0, 1
|
|
||||||
# monitor = desc:Samsung Electric Company LC27G7xT H4ZRA00734, 2560x1440@60, 0x0, 1
|
|
||||||
|
|
||||||
|
|
||||||
# lid_state fallback
|
|
||||||
source = ~/.config/hypr/lid_state.conf
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = alacritty
|
|
||||||
$fileManager = nautilus
|
|
||||||
$menu = fuzzel
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
# Takemi palette — kept in step with ~/.config/quickshell/config/Theme.qml.
|
|
||||||
#
|
|
||||||
# Crimson, black, white. Nothing else carries hue.
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------- THE KNOB
|
|
||||||
# The one colour in this setup. Change this line and the window borders,
|
|
||||||
# group indicators and focus states all recolour with it.
|
|
||||||
#
|
|
||||||
# Keep it in step with `readonly property color accent` in
|
|
||||||
# ~/.config/quickshell/config/Theme.qml, which is what colours the shell.
|
|
||||||
# Those are the only two places the colour is written.
|
|
||||||
$accent = rgb(ff2d40)
|
|
||||||
|
|
||||||
$accentDim = rgb(8f1826)
|
|
||||||
$accentSoft = rgb(ff6b78)
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------ neutrals
|
|
||||||
$ink = rgb(000000)
|
|
||||||
|
|
||||||
$base = rgb(0a0a0c)
|
|
||||||
$mantle = rgb(0d0d10)
|
|
||||||
$surface = rgb(141418)
|
|
||||||
$surfaceAlt = rgb(1c1c22)
|
|
||||||
$overlay = rgb(26262e)
|
|
||||||
$outline = rgb(3a3a44)
|
|
||||||
|
|
||||||
$text = rgb(ffffff)
|
|
||||||
$subtext = rgb(c8c8ce)
|
|
||||||
$muted = rgb(6b6b70)
|
|
||||||
|
|
||||||
# Retired hues, kept as aliases so existing references resolve. The shell has
|
|
||||||
# no teal any more — the wallpaper is the colour in the composition.
|
|
||||||
$primary = $text
|
|
||||||
$primaryDim = rgb(9a9aa2)
|
|
||||||
$glow = $accent
|
|
||||||
$blue = $primaryDim
|
|
||||||
$deep = $surfaceAlt
|
|
||||||
$warn = $accentSoft
|
|
||||||
$ok = $text
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
# Takemi — Persona 5 flavoured theme, matched to ~/.config/quickshell.
|
|
||||||
source = ~/.config/hypr/modules/takemi.conf
|
|
||||||
|
|
||||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 6, 8, 8, 8
|
|
||||||
|
|
||||||
border_size = 2
|
|
||||||
|
|
||||||
# Crimson into its own shadow, on the diagonal. The accent is the only hue
|
|
||||||
# here — a gradient into a second colour is what put blue in the border.
|
|
||||||
col.active_border = $accent $accentDim 135deg
|
|
||||||
col.inactive_border = $outline
|
|
||||||
|
|
||||||
resize_on_border = false
|
|
||||||
|
|
||||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
# Persona 5 has no rounded corners. Neither do we.
|
|
||||||
rounding = 0
|
|
||||||
|
|
||||||
# Fully opaque, both states. Flat ink on flat ground.
|
|
||||||
active_opacity = 1.0
|
|
||||||
inactive_opacity = 1.0
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = true
|
|
||||||
range = 18
|
|
||||||
render_power = 3
|
|
||||||
offset = 0 4
|
|
||||||
color = rgba(000000ee)
|
|
||||||
color_inactive = rgba(00000088)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
|
||||||
#
|
|
||||||
# Off. Blur is the signature of the glass-and-frost look, which is the
|
|
||||||
# opposite of what this theme is doing — every surface here is opaque, flat
|
|
||||||
# and hard-edged. With nothing translucent left to blur it also costs three
|
|
||||||
# render passes for no visible result.
|
|
||||||
blur {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Animations/
|
|
||||||
# Quick and clean. Motion should get out of the way, not perform.
|
|
||||||
#
|
|
||||||
# The previous pass overdid it: a 1.56 overshoot on every window, an 88% popin
|
|
||||||
# scale, and a borderangle looping forever so the focused border was in constant
|
|
||||||
# motion. The bounce is dialled back to a hint, the popin barely scales, and the
|
|
||||||
# border angle no longer animates at all.
|
|
||||||
animations {
|
|
||||||
enabled = yes, please :)
|
|
||||||
|
|
||||||
bezier = snap, 0.16, 1.00, 0.30, 1.00
|
|
||||||
bezier = overshoot, 0.34, 1.12, 0.64, 1.00
|
|
||||||
bezier = hard, 0.55, 0.00, 0.90, 0.35
|
|
||||||
bezier = linear, 0, 0, 1, 1
|
|
||||||
|
|
||||||
animation = global, 1, 4, snap
|
|
||||||
animation = border, 1, 5, snap
|
|
||||||
|
|
||||||
animation = windows, 1, 4, snap
|
|
||||||
animation = windowsIn, 1, 4, overshoot, popin 96%
|
|
||||||
animation = windowsOut, 1, 2.6, hard, popin 97%
|
|
||||||
animation = windowsMove, 1, 3.6, snap
|
|
||||||
|
|
||||||
animation = fade, 1, 3, snap
|
|
||||||
animation = fadeIn, 1, 2.4, snap
|
|
||||||
animation = fadeOut, 1, 1.8, hard
|
|
||||||
animation = fadeSwitch, 1, 2, snap
|
|
||||||
animation = fadeShadow, 1, 3, snap
|
|
||||||
animation = fadeDim, 1, 2.4, snap
|
|
||||||
|
|
||||||
animation = layers, 1, 3, snap
|
|
||||||
animation = layersIn, 1, 3, snap, slide
|
|
||||||
animation = layersOut, 1, 2, hard, slide
|
|
||||||
|
|
||||||
animation = workspaces, 1, 3, snap, slidevert
|
|
||||||
animation = workspacesIn, 1, 3, snap, slidevert
|
|
||||||
animation = workspacesOut, 1, 2.4, hard, slidevert
|
|
||||||
|
|
||||||
animation = specialWorkspace, 1, 3, snap, slidevert
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
master {
|
|
||||||
new_status = master
|
|
||||||
}
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
preserve_split = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = 0
|
|
||||||
disable_hyprland_logo = true
|
|
||||||
# 0 = off, 1 = always, 2 = fullscreen only (G7 is a 240Hz VRR panel)
|
|
||||||
vrr = 2
|
|
||||||
font_family = FiraCode Nerd Font
|
|
||||||
background_color = $base
|
|
||||||
focus_on_activate = true
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
col.border_active = $accent $accentDim 135deg
|
|
||||||
col.border_inactive = $outline
|
|
||||||
|
|
||||||
groupbar {
|
|
||||||
font_family = JetBrainsMono Nerd Font
|
|
||||||
font_size = 11
|
|
||||||
|
|
||||||
height = 24
|
|
||||||
gradients = false
|
|
||||||
|
|
||||||
# --- Active Tab ---
|
|
||||||
col.active = $accent
|
|
||||||
text_color = $ink
|
|
||||||
|
|
||||||
# --- Inactive Tab ---
|
|
||||||
col.inactive = $surface
|
|
||||||
text_color_inactive = $muted
|
|
||||||
|
|
||||||
indicator_height = 3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,89 +0,0 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
|
||||||
|
|
||||||
# ==========================================
|
|
||||||
# VARIABLES
|
|
||||||
# ==========================================
|
|
||||||
# Dialogs and utility apps that should float in the center
|
|
||||||
$dialog_titles = ^(Open Form|Open File|Select a File|Choose a file|Open Workspace|Choose Directory.*|Save As.*|Save File.*|branchdialog|pinentry-gtk-2|Confirm to replace files|File Operation Progress|Open Files.*|Anmelden.*|File Upload.*|TRuDI-Export laden)$
|
|
||||||
$dialog_classes = ^(pavucontrol|blueman-manager|nm-connection-editor|org.pulseaudio.pavucontrol|io.narl.proton-drive-linux-prompt)$
|
|
||||||
|
|
||||||
# App classes
|
|
||||||
$steam = ^(steam)$
|
|
||||||
$gamescope = ^(gamescope)$
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================================
|
|
||||||
# GENERAL & FIXES
|
|
||||||
# ==========================================
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
|
||||||
# windowrule = suppress_event maximize, match:class .*
|
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
|
||||||
# windowrule = no_focus 1, match:class ^$, match:title ^$, match:xwayland 1, match:floating 1, match:fullscreen 0, match:pinned 0
|
|
||||||
windowrule = no_blur 1, match:class ^$, match:title ^$
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================================
|
|
||||||
# FLOATING & CENTERED DIALOGS
|
|
||||||
# ==========================================
|
|
||||||
# Make them float
|
|
||||||
windowrule = float 1, match:title $dialog_titles
|
|
||||||
windowrule = float 1, match:class $dialog_classes
|
|
||||||
|
|
||||||
# Set to 800x600
|
|
||||||
windowrule = size 800 600, match:title $dialog_titles
|
|
||||||
windowrule = size 800 600, match:class $dialog_classes
|
|
||||||
|
|
||||||
# Center them on the screen
|
|
||||||
windowrule = center 1, match:title $dialog_titles
|
|
||||||
windowrule = center 1, match:class $dialog_classes
|
|
||||||
|
|
||||||
# Disable blur
|
|
||||||
windowrule = no_blur 1, match:title $dialog_titles
|
|
||||||
windowrule = no_blur 1, match:class $dialog_classes
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================================
|
|
||||||
# WORKSPACE ASSIGNMENTS
|
|
||||||
# ==========================================
|
|
||||||
# Normal Workspaces
|
|
||||||
# windowrule = workspace 1, match:class ^(firefox)$
|
|
||||||
# windowrule = workspace 2, match:class ^(kitty)$
|
|
||||||
# windowrule = workspace 3, match:class ^(Code)$
|
|
||||||
windowrule = workspace 1, match:class $gamescope
|
|
||||||
|
|
||||||
# Special Workspaces
|
|
||||||
windowrule = workspace special:virtual, match:class ^(Spotify|spotify)$
|
|
||||||
windowrule = workspace special:discord, match:class ^(discord|vesktop)$
|
|
||||||
|
|
||||||
|
|
||||||
# ==========================================
|
|
||||||
# APP-SPECIFIC RULES: STEAM & GAMING
|
|
||||||
# ==========================================
|
|
||||||
# windowrule = workspace 3 silent, match:class $steam, match:title ^(Steam)$
|
|
||||||
|
|
||||||
# Fixed sizes for specific Steam windows
|
|
||||||
windowrule = size 400 800, match:title ^(Friends List)$, match:class $steam
|
|
||||||
windowrule = size 1000 800, match:title ^(Steam Settings)$, match:class $steam
|
|
||||||
windowrule = size 1000 800, match:title ^(Add Non-Steam Game)$, match:class $steam
|
|
||||||
|
|
||||||
# Float and disable blur for Steam windows that aren't the main window
|
|
||||||
windowrule = float 1, match:class $steam, match:title negative:^(Steam)$
|
|
||||||
windowrule = no_blur 1, match:class $steam, match:title negative:^(Steam)$
|
|
||||||
# windowrule = center 1, match:class $steam, match:title negative:^(Steam)$
|
|
||||||
|
|
||||||
# Allow tearing for games started with Gamescope
|
|
||||||
windowrule = immediate 1, match:class $gamescope
|
|
||||||
|
|
||||||
|
|
||||||
# Layer rules
|
|
||||||
|
|
||||||
# waybar blur
|
|
||||||
layerrule = blur on, match:namespace bottom
|
|
||||||
layerrule = blur on, match:namespace top
|
|
||||||
layerrule = ignore_alpha 0.5, match:namespace bottom
|
|
||||||
layerrule = ignore_alpha 0.5, match:namespace top
|
|
||||||
# launcher blur
|
|
||||||
layerrule = blur on, match:namespace launcher
|
|
||||||
layerrule = ignore_alpha 0.5, match:namespace launcher
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# ~/.config/hypr/scripts/lid_handler.sh
|
|
||||||
|
|
||||||
# The file that tells Hyprland to keep the lid off during reloads
|
|
||||||
LID_STATE_FILE="$HOME/.config/hypr/lid_state.conf"
|
|
||||||
|
|
||||||
restart_ui() {
|
|
||||||
# The Quickshell bar follows monitor hotplug on its own, so only the
|
|
||||||
# wallpaper daemon needs a kick.
|
|
||||||
systemctl restart --user hyprpaper
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "$1" == "close" ]]; then
|
|
||||||
# Check if ANY external monitor is connected and active
|
|
||||||
if hyprctl monitors all | grep -qE "Monitor (DP|HDMI|Type-C)-"; then
|
|
||||||
|
|
||||||
# Prevent laptop screen from turning on during manual config reloads
|
|
||||||
echo "monitor=eDP-1, disable" > "$LID_STATE_FILE"
|
|
||||||
|
|
||||||
# Extract the CURRENT live settings of all external monitors using jq
|
|
||||||
# This grabs the active resolution, refresh rate, position, and scale.
|
|
||||||
LIVE_MONITORS=$(hyprctl -j monitors | jq -c '.[] | select(.name != "eDP-1")')
|
|
||||||
|
|
||||||
# 3. Disable the laptop screen
|
|
||||||
hyprctl keyword monitor "eDP-1, disable"
|
|
||||||
|
|
||||||
# 4. Re-apply the live settings to external monitors so they don't reset
|
|
||||||
echo "$LIVE_MONITORS" | while read -r mon_json; do
|
|
||||||
NAME=$(echo "$mon_json" | jq -r '.name')
|
|
||||||
WIDTH=$(echo "$mon_json" | jq -r '.width')
|
|
||||||
HEIGHT=$(echo "$mon_json" | jq -r '.height')
|
|
||||||
REFRESH=$(echo "$mon_json" | jq -r '.refreshRate')
|
|
||||||
X=$(echo "$mon_json" | jq -r '.x')
|
|
||||||
Y=$(echo "$mon_json" | jq -r '.y')
|
|
||||||
SCALE=$(echo "$mon_json" | jq -r '.scale')
|
|
||||||
|
|
||||||
# Formats it exactly as Hyprland expects: DP-1, 1920x1080@240, 0x0, 1
|
|
||||||
hyprctl keyword monitor "$NAME, ${WIDTH}x${HEIGHT}@${REFRESH}, ${X}x${Y}, $SCALE"
|
|
||||||
done
|
|
||||||
|
|
||||||
# restart ui
|
|
||||||
restart_ui
|
|
||||||
fi
|
|
||||||
|
|
||||||
elif [[ "$1" == "open" ]]; then
|
|
||||||
# Clear the override file so the laptop screen is allowed to turn on again
|
|
||||||
echo "" > "$LID_STATE_FILE"
|
|
||||||
|
|
||||||
# Let Hyprland reload itself.
|
|
||||||
# This automatically re-enables eDP-1 based on your hardcoded hyprland.conf!
|
|
||||||
hyprctl reload
|
|
||||||
|
|
||||||
restart_ui
|
|
||||||
fi
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
options="Shutdown\nReboot\nLock\nLogout"
|
|
||||||
selected=$(echo -e $options | fuzzel --dmenu --prompt='Power:')
|
|
||||||
|
|
||||||
case $selected in
|
|
||||||
"Shutdown")
|
|
||||||
systemctl poweroff
|
|
||||||
;;
|
|
||||||
"Reboot")
|
|
||||||
systemctl reboot
|
|
||||||
;;
|
|
||||||
"Lock")
|
|
||||||
hyprlock
|
|
||||||
;;
|
|
||||||
"Logout")
|
|
||||||
hyprctl dispatch exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Get active window info in JSON format
|
|
||||||
WINDOW_INFO=$(hyprctl activewindow -j)
|
|
||||||
|
|
||||||
# Extract window class name (app name)
|
|
||||||
APP_NAME=$(echo "$WINDOW_INFO" | jq -r '.class')
|
|
||||||
|
|
||||||
# If app name is empty, null, or invalid, default to "unknown"
|
|
||||||
if [ -z "$APP_NAME" ] || [ "$APP_NAME" = "null" ]; then
|
|
||||||
APP_NAME="unknown"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Sanitize app name: convert to lowercase and replace characters that aren't letters, numbers, hyphens, or underscores with underscores
|
|
||||||
APP_NAME_SAFE=$(echo "$APP_NAME" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_-]/_/g')
|
|
||||||
|
|
||||||
# Extract geometry: "x,y wxh"
|
|
||||||
GEOMETRY=$(echo "$WINDOW_INFO" | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')
|
|
||||||
|
|
||||||
# Check if geometry is valid
|
|
||||||
if [ -z "$GEOMETRY" ] || [ "$GEOMETRY" = "null,null nullxnull" ]; then
|
|
||||||
notify-send -u normal "Screenshot Error" "No active window found to screenshot."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
ACTION=$1
|
|
||||||
|
|
||||||
case "$ACTION" in
|
|
||||||
copy)
|
|
||||||
grim -g "$GEOMETRY" - | wl-copy
|
|
||||||
notify-send -u low "Screenshot" "Active window ($APP_NAME) copied to clipboard"
|
|
||||||
;;
|
|
||||||
save)
|
|
||||||
SCREENSHOTS_DIR="$HOME/Pictures/Screenshots"
|
|
||||||
APP_DIR="$SCREENSHOTS_DIR/$APP_NAME_SAFE"
|
|
||||||
mkdir -p "$APP_DIR"
|
|
||||||
FILE_NAME="$(date +'%Y-%m-%d_%H-%M-%S').png"
|
|
||||||
FILE_PATH="$APP_DIR/$FILE_NAME"
|
|
||||||
|
|
||||||
grim -g "$GEOMETRY" "$FILE_PATH"
|
|
||||||
notify-send -u low "Screenshot" "Saved active window to $APP_NAME_SAFE/$FILE_NAME"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 {copy|save}"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
Executable
+73
@@ -0,0 +1,73 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Screenshots with a receipt: every capture lands on the clipboard and comes
|
||||||
|
# back as a notification with its own thumbnail, so a keypress that used to
|
||||||
|
# vanish silently now shows what it took.
|
||||||
|
#
|
||||||
|
# shot.sh region copy pick an area, copy it
|
||||||
|
# shot.sh region save pick an area, save it to ~/Pictures/Screenshots
|
||||||
|
# shot.sh window copy the focused window, copy it
|
||||||
|
# shot.sh window save the focused window, save it
|
||||||
|
#
|
||||||
|
# A copy is kept in $XDG_RUNTIME_DIR only so the notification has a picture
|
||||||
|
# to show; its Save action moves it into ~/Pictures/Screenshots. Edit opens
|
||||||
|
# satty when it is installed. Cancelling the region picker does nothing.
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
target=${1:-region}
|
||||||
|
mode=${2:-copy}
|
||||||
|
|
||||||
|
dir="$HOME/Pictures/Screenshots"
|
||||||
|
stamp=$(date +'%Y-%m-%d_%H-%M-%S')
|
||||||
|
|
||||||
|
case "$target" in
|
||||||
|
region)
|
||||||
|
geometry=$(slurp) || exit 0
|
||||||
|
name="$stamp.png"
|
||||||
|
;;
|
||||||
|
window)
|
||||||
|
info=$(hyprctl activewindow -j)
|
||||||
|
geometry=$(printf '%s' "$info" | jq -r 'if .at then "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])" else empty end')
|
||||||
|
if [ -z "$geometry" ]; then
|
||||||
|
notify-send -a Screenshot "Screenshot" "No window is focused."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
app=$(printf '%s' "$info" | jq -r '.class // "unknown"' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_-]/_/g')
|
||||||
|
name="${app}_$stamp.png"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: shot.sh region|window copy|save" >&2
|
||||||
|
exit 2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ "$mode" = save ]; then
|
||||||
|
mkdir -p "$dir"
|
||||||
|
file="$dir/$name"
|
||||||
|
else
|
||||||
|
file="${XDG_RUNTIME_DIR:-/tmp}/shot-$name"
|
||||||
|
fi
|
||||||
|
|
||||||
|
grim -g "$geometry" "$file"
|
||||||
|
wl-copy --type image/png < "$file"
|
||||||
|
|
||||||
|
title=$([ "$mode" = save ] && echo "Screenshot saved" || echo "Screenshot copied")
|
||||||
|
body=$([ "$mode" = save ] && echo "${file#"$HOME"/}" || echo "On the clipboard")
|
||||||
|
|
||||||
|
set -- --action=open=Open
|
||||||
|
command -v satty >/dev/null 2>&1 && set -- "$@" --action=edit=Edit
|
||||||
|
[ "$mode" = copy ] && set -- "$@" --action=save=Save
|
||||||
|
|
||||||
|
# notify-send waits for the notification to close and prints the action
|
||||||
|
# that was chosen, so run it in the background and act on the answer.
|
||||||
|
(
|
||||||
|
choice=$(notify-send -a Screenshot -i "$file" -h "string:image-path:$file" \
|
||||||
|
"$@" "$title" "$body") || exit 0
|
||||||
|
case "$choice" in
|
||||||
|
open) xdg-open "$file" ;;
|
||||||
|
edit) satty --filename "$file" --output-filename "$dir/edited_$name" --copy-command wl-copy ;;
|
||||||
|
save) mkdir -p "$dir" && mv "$file" "$dir/$name" \
|
||||||
|
&& notify-send -a Screenshot -i "$dir/$name" -h "string:image-path:$dir/$name" \
|
||||||
|
"Screenshot saved" "${dir#"$HOME"/}/$name" ;;
|
||||||
|
esac
|
||||||
|
) >/dev/null 2>&1 &
|
||||||
+3
-1
@@ -21,7 +21,8 @@ x-scheme-handler/claude-cli=claude-code-url-handler.desktop
|
|||||||
x-scheme-handler/msteams=teams-for-linux.desktop
|
x-scheme-handler/msteams=teams-for-linux.desktop
|
||||||
x-scheme-handler/slack=slack.desktop
|
x-scheme-handler/slack=slack.desktop
|
||||||
audio/flac=mpv.desktop
|
audio/flac=mpv.desktop
|
||||||
x-scheme-handler/codex=ChatGPT.desktop
|
x-scheme-handler/codex=chatgpt.desktop
|
||||||
|
x-scheme-handler/proton-inbox=proton-mail.desktop
|
||||||
|
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
|
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
|
||||||
@@ -40,3 +41,4 @@ application/xhtml+xml=zen.desktop;
|
|||||||
application/x-extension-xhtml=zen.desktop;
|
application/x-extension-xhtml=zen.desktop;
|
||||||
application/x-extension-xht=zen.desktop;
|
application/x-extension-xht=zen.desktop;
|
||||||
audio/flac=mpv.desktop;
|
audio/flac=mpv.desktop;
|
||||||
|
text/plain=org.neovim.nvim.desktop;
|
||||||
+1
-1
Submodule nvim updated: 8d657d0f8d...19e0db60a1.
@@ -3,6 +3,7 @@ aalib
|
|||||||
abseil-cpp
|
abseil-cpp
|
||||||
acl
|
acl
|
||||||
acpi
|
acpi
|
||||||
|
adw-gtk-theme
|
||||||
adwaita-cursors
|
adwaita-cursors
|
||||||
adwaita-fonts
|
adwaita-fonts
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
@@ -87,7 +88,6 @@ calibre
|
|||||||
cargo-audit
|
cargo-audit
|
||||||
catppuccin-gtk-theme-mocha
|
catppuccin-gtk-theme-mocha
|
||||||
catppuccin-qt5ct-git
|
catppuccin-qt5ct-git
|
||||||
catppuccinifier-cli-git
|
|
||||||
cbindgen
|
cbindgen
|
||||||
cblas
|
cblas
|
||||||
cdparanoia
|
cdparanoia
|
||||||
@@ -111,6 +111,7 @@ cups-pk-helper
|
|||||||
curl
|
curl
|
||||||
cxxbridge
|
cxxbridge
|
||||||
cython
|
cython
|
||||||
|
darkly-bin
|
||||||
dav1d
|
dav1d
|
||||||
db5.3
|
db5.3
|
||||||
dbus
|
dbus
|
||||||
@@ -178,7 +179,6 @@ fribidi
|
|||||||
fuse-common
|
fuse-common
|
||||||
fuse2
|
fuse2
|
||||||
fuse3
|
fuse3
|
||||||
fuzzel
|
|
||||||
fzf
|
fzf
|
||||||
gawk
|
gawk
|
||||||
gc
|
gc
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#ffccd2cb, #ff20241f, #ff383e35, #ff2a2f28, #ff0c0d0b, #ff161915, #ffccd2cb, #ffeef1ea, #ffccd2cb, #ff0c0d0b, #ff0f110e, #ff090a08, #ffbcc1bf, #ff090a08, #ffeef1ea, #ff9fa7a2, #ff161915, #ff0f110e, #ff20241f, #ffccd2cb, #ff79847a, #ffbcc1bf
|
||||||
|
inactive_colors=#ffccd2cb, #ff20241f, #ff383e35, #ff2a2f28, #ff0c0d0b, #ff161915, #ffccd2cb, #ffeef1ea, #ffccd2cb, #ff0c0d0b, #ff0f110e, #ff090a08, #ff383e35, #ffccd2cb, #ffeef1ea, #ff9fa7a2, #ff161915, #ff0f110e, #ff20241f, #ffccd2cb, #ff79847a, #ff383e35
|
||||||
|
disabled_colors=#ff545c52, #ff161915, #ff2a2f28, #ff20241f, #ff0c0d0b, #ff161915, #ff545c52, #ff79847a, #ff545c52, #ff0c0d0b, #ff0f110e, #ff090a08, #ff20241f, #ff545c52, #ff79847a, #ff545c52, #ff161915, #ff0f110e, #ff20241f, #ff545c52, #ff464d44, #ff20241f
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
[Appearance]
|
||||||
|
color_scheme_path=/home/narl/.config/qt6ct/colors/yorha.conf
|
||||||
|
custom_palette=true
|
||||||
|
icon_theme=Papirus-Dark
|
||||||
|
standard_dialogs=default
|
||||||
|
style=Darkly
|
||||||
|
|
||||||
|
[Fonts]
|
||||||
|
fixed="JetBrainsMono Nerd Font,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
||||||
|
general="Noto Sans,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
||||||
|
|
||||||
|
[Interface]
|
||||||
|
activate_item_on_single_click=1
|
||||||
|
buttonbox_layout=0
|
||||||
|
cursor_flash_time=1000
|
||||||
|
dialog_buttons_have_icons=1
|
||||||
|
double_click_interval=400
|
||||||
|
gui_effects=@Invalid()
|
||||||
|
keyboard_scheme=2
|
||||||
|
menus_have_icons=true
|
||||||
|
show_shortcuts_in_context_menus=true
|
||||||
|
stylesheets=@Invalid()
|
||||||
|
toolbutton_style=4
|
||||||
|
underline_shortcut=1
|
||||||
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
|
[SettingsWindow]
|
||||||
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\0\0\0\xe\xef\0\0\x4l\0\0\a\x80\0\0\0\0\0\0\xe\xef\0\0\x4l\0\0\0\x1\x2\0\0\0\a\x80\0\0\a\x80\0\0\0\0\0\0\xe\xef\0\0\x4l)
|
||||||
|
|
||||||
|
[Troubleshooting]
|
||||||
|
force_raster_widgets=1
|
||||||
|
ignored_applications=@Invalid()
|
||||||
+342
-105
@@ -1,20 +1,23 @@
|
|||||||
# Takemi
|
# Takemi — YoRHa dark
|
||||||
|
|
||||||
A Persona 5 flavoured Quickshell desktop for Hyprland. Crimson, black and white,
|
A NieR:Automata flavoured Quickshell desktop for Hyprland, kept dark and lit
|
||||||
with no gradients anywhere. Everything leans by the same 14°, corners are
|
like its wallpaper: a lone figure at a porthole, the void outside, one planet's
|
||||||
chopped rather than rounded, and every surface is one continuous slab divided by
|
light. The planet white for anything live, the hull red for anything wrong,
|
||||||
hairlines rather than a cluster of floating cards.
|
grey-green for everything else. Hairlines, small dots, soft rounded corners,
|
||||||
|
letter-spaced capitals, and selection shown by inverting the row. The bar, the
|
||||||
|
rail and a thin border are one hull around the desktop, and the desktop is the
|
||||||
|
porthole cut out of it.
|
||||||
|
|
||||||
Replaces Waybar, dunst and hyprlock.
|
Replaces Waybar, dunst and hyprlock.
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
qs # starts the shell (Hyprland does this via autostart.conf)
|
qs # starts the shell (Hyprland does this via autostart.lua)
|
||||||
qs -p lockpreview.qml # the lock screen in an ordinary window, for styling
|
qs -p lockpreview.qml # the lock screen in an ordinary window, for styling
|
||||||
```
|
```
|
||||||
|
|
||||||
Hyprland starts it from `~/.config/hypr/modules/autostart.conf`.
|
Hyprland starts it from `~/.config/hypr/lua/autostart.lua`.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
@@ -24,57 +27,119 @@ costs 2.5% of the width, where another 48px strip along the bottom would have
|
|||||||
cost 4.4% of the height on top of what the bar already takes.
|
cost 4.4% of the height on top of what the bar already takes.
|
||||||
|
|
||||||
```
|
```
|
||||||
┌────────────────────────────────────────────┐
|
████████████████████████████████████████████████
|
||||||
│ ◆ │ 1 2 3 │ window title ♪ TRACK │ 42% │ 00:09 │ bar — 48px exclusive
|
█ ◉ │ 1 2 3 │ window title ♪ TRACK │ CPU │ 20:04 █ bar — 40px, part of the hull
|
||||||
├────────────────────────────────────────────┤
|
█╭──────────────────────────────────────────╮ ▐▌█
|
||||||
│ ▐█▌│ rail — 48px exclusive
|
█│ │ ▐▌█ rail — 48px, part of the hull
|
||||||
│ windows ▐ ▌│
|
█│ windows │ ▐▌█
|
||||||
│ ▐ ▌│
|
█│ │ ▐▌█
|
||||||
│ ▐ ▌│
|
█╰──────────────────────────────────────────╯ █ frame — 8px left and bottom
|
||||||
└────────────────────────────────────────────┘
|
████████████████████████████████████████████████
|
||||||
```
|
```
|
||||||
|
|
||||||
- **bar** — one slab: identity and workspaces on the left; the focused window,
|
- **hull** — `bar/Frame.qml`: one surface round the whole screen, with the
|
||||||
the player, the CPU/MEM/GPU readout and the clock on the right.
|
desktop as a rounded opening. The bar and the rail sit on it.
|
||||||
- **rail** — one slab: network, bluetooth, audio, mic, backlight, battery, tray,
|
- **bar** — identity and workspaces on the left (a ring after them while the
|
||||||
notifications, power. Popouts open leftward, into the screen.
|
`Super+S` scratchpad holds windows, filled while it is open); the focused window, the
|
||||||
|
player, the CPU/MEM/GPU readout and the clock on the right.
|
||||||
|
- **rail** — network, bluetooth, audio, mic, backlight, battery, tray,
|
||||||
|
notifications, power. While something records the mic, uses a camera or
|
||||||
|
shares the screen, a lit icon heads the rail (`services/Privacy.qml`, read
|
||||||
|
from PipeWire). Popouts grow leftward out of it, into the screen.
|
||||||
|
|
||||||
Each permanent surface is a single continuous `ChromeSurface` with modules
|
Modules are divided by hairlines. `BarPill` is chromeless by default — a module
|
||||||
divided by sheared hairlines. `BarPill` is chromeless by default — a module is
|
is *content inside* the hull, not a surface of its own — and marks hover with
|
||||||
*content inside* a surface, not a surface of its own — and marks hover with a
|
an accent underline. Pass `standalone: true` for the rare thing that really is
|
||||||
crimson underline. Pass `standalone: true` for the rare thing that really is its
|
its own panel.
|
||||||
own panel.
|
|
||||||
|
|
||||||
The shell uses three deliberate surface tiers. **Chrome** (`ChromeSurface`) is
|
The shell uses three deliberate surface tiers. **Chrome** (the hull and
|
||||||
the calm, texture-free bar, rail, and tooltip layer. **Transient**
|
`ChromeSurface`) is the calm, texture-free bar, rail, and tooltip layer. **Transient**
|
||||||
(`PopoutSurface`) is reserved for expressive menus and detail panels, with one
|
(`PopoutSurface`) is reserved for expressive menus and detail panels, with one
|
||||||
clear composition and stronger separation from the desktop. **Cinematic**
|
clear composition and stronger separation from the desktop. **Scene**
|
||||||
(`P5Backdrop`) belongs only to scene-scale experiences such as power and lock;
|
surfaces — the lock screen and the power menu — have no panel at all: the
|
||||||
it is never used as decoration inside ordinary chrome or popouts.
|
desktop or the wallpaper dims, and one small group of type (the mark, a line of
|
||||||
|
thin display type, a short log, a menu or a field) stands in the dark.
|
||||||
|
|
||||||
```
|
```
|
||||||
shell.qml entrypoint — bar, rail, power menu, toasts, OSD per screen
|
shell.qml entrypoint — hull, bar, rail, dashboard, power menu, toasts, OSD per screen
|
||||||
config/ palette, type scale, geometry, motion curves
|
config/ palette, type scale, geometry, motion curves
|
||||||
components/ the P5 primitives: panels, gauges, sliders, split-ink text
|
components/ the primitives: panels, sliders, list rows, display text
|
||||||
services/ data sources, all singletons
|
services/ data sources, all singletons
|
||||||
bar/ the two surfaces and their modules
|
bar/ the two surfaces and their modules
|
||||||
popouts/ hover panels hanging off rail and bar modules
|
popouts/ hover panels hanging off rail and bar modules
|
||||||
overlays/ power menu, notification toasts, volume/brightness OSD
|
overlays/ power menu, notification toasts, the volume/brightness/keyboard OSD, idle dim
|
||||||
lock/ session lock
|
lock/ session lock
|
||||||
assets/ halftone and stripe tiles, generated with ImageMagick
|
overview/ every monitor, workspace and window at once
|
||||||
|
backdrop/ the wallpaper, drawn by the shell
|
||||||
|
assets/ the dot and scanline tiles, generated with ImageMagick
|
||||||
```
|
```
|
||||||
|
|
||||||
`P5Panel` is the base surface everything sits on. It does not auto-size —
|
`Panel` is the base surface everything sits on. It does not auto-size —
|
||||||
callers set implicit sizes from their own layout (`row.implicitWidth +
|
callers set implicit sizes from their own layout (`row.implicitWidth +
|
||||||
contentPad * 2`), which keeps the shape maths out of binding loops.
|
contentPad * 2`), which keeps the shape maths out of binding loops.
|
||||||
|
|
||||||
|
## Popouts
|
||||||
|
|
||||||
|
Hover panels (`components/Popout.qml`) are part of the hull, not cards
|
||||||
|
floating near their trigger. Each one sits flush against the frame edge it
|
||||||
|
opens from, is painted in the hull colour, joins the frame through concave
|
||||||
|
fillets, carries the rim round its open side, and slides out from behind the
|
||||||
|
frame. `PopoutSurface` notices it is inside a `Popout` and leaves the fill and
|
||||||
|
the frame to the hull; in the launcher and the ask panel it is still a
|
||||||
|
free-standing panel with corner ticks.
|
||||||
|
|
||||||
|
Placement is explicit: centred on the trigger, then — if that would land the
|
||||||
|
panel within `dockReach` of one of the opening's corners — docked into the
|
||||||
|
corner instead, attached to the bar and the rail at once (`dock` is `top`,
|
||||||
|
`right`, `topRight` or `bottomRight`). Without docking, a panel near the rail
|
||||||
|
left a thin strip of opening between itself and the rail.
|
||||||
|
|
||||||
|
## Notifications
|
||||||
|
|
||||||
|
The shell is the notification server (`services/Notifs.qml`). New ones arrive
|
||||||
|
as toasts in a corner drawer (`overlays/Toasts.qml`); the bell on the rail
|
||||||
|
opens the log (`popouts/NotifPopout.qml`), which is grouped by sender. A
|
||||||
|
sender with one notification is just that entry. A sender with several gets a
|
||||||
|
header — its name, a count, a mark to clear only that sender — over its
|
||||||
|
newest entry and a `+ 2 more` line; a click on either opens the rest.
|
||||||
|
|
||||||
|
## Dashboard
|
||||||
|
|
||||||
|
`dashboard/Dashboard.qml` is a drawer that slides down out of the underside of
|
||||||
|
the bar — clock click, `SUPER + D`, or `qs ipc call shell dashboard`. It is
|
||||||
|
painted in the hull colour and joins the bar through two concave fillets, so it
|
||||||
|
reads as more of the hull rather than as a floating card (caelestia's idea).
|
||||||
|
Four columns divided by hairlines: operator and time, the month, the system
|
||||||
|
meters, and what is playing. Escape or focusing anything else puts it away; a
|
||||||
|
`HyprlandFocusGrab` handles the latter, and `Actions.dashboardClosedAt` stops
|
||||||
|
the clock click that cleared the grab from opening it straight back up.
|
||||||
|
|
||||||
|
Under the columns, past a hairline, a row of switches: Wi-Fi, Bluetooth, do
|
||||||
|
not disturb and stay awake, plus night light when `hyprsunset` is installed
|
||||||
|
(it runs at 4200 K for as long as the switch is on). On is the light slab
|
||||||
|
with ink type, the same as a selection everywhere else; off is a hairline.
|
||||||
|
|
||||||
|
## Game mode
|
||||||
|
|
||||||
|
While a fullscreen game is on screen, Hyprland switches off its animations and
|
||||||
|
shadows and turns on direct scanout (`~/.config/hypr/lua/gamemode.lua`). It
|
||||||
|
also tells the shell through `qs ipc call shell gameMode true`. The game covers
|
||||||
|
the hull, but covered surfaces still render, so the shell stops what it does by
|
||||||
|
itself: the fluxo stream, the backlight poll, the media tick and equaliser, and
|
||||||
|
the rail and workspace pulses. Toasts wait in the log, except critical ones.
|
||||||
|
Both sides come back when the game leaves fullscreen, closes or is switched
|
||||||
|
away from.
|
||||||
|
|
||||||
|
A game is a window with the `game` content type, or one whose class matches
|
||||||
|
`GAME_CLASSES` in `gamemode.lua` (`steam_app_<id>` and `gamescope` so far).
|
||||||
|
|
||||||
## Modules
|
## Modules
|
||||||
|
|
||||||
| Module | Where | Left click | Right click | Middle | Scroll | Hover |
|
| Module | Where | Left click | Right click | Middle | Scroll | Hover |
|
||||||
|---|---|---|---|---|---|---|
|
|---|---|---|---|---|---|---|
|
||||||
| Sigil | bar | app menu | reload shell | | | |
|
| Sigil | bar | app menu | reload shell | | | |
|
||||||
| Workspaces | bar | switch | | | | |
|
| Workspaces | bar | switch | | | | |
|
||||||
| Clock | bar | pin calendar | | | | calendar |
|
| Clock | bar | dashboard | | | | calendar |
|
||||||
| Network | rail | pin details | | | | state + networks |
|
| Network | rail | pin details | | | | state + networks |
|
||||||
| Bluetooth | rail | pin details | | | | state + devices |
|
| Bluetooth | rail | pin details | | | | state + devices |
|
||||||
| Volume | rail | pin audio | | | volume | state + scroll hint + audio |
|
| Volume | rail | pin audio | | | volume | state + scroll hint + audio |
|
||||||
@@ -106,12 +171,17 @@ dismisses the screen.
|
|||||||
|
|
||||||
## Keybinds
|
## Keybinds
|
||||||
|
|
||||||
Set in `~/.config/hypr/modules/keybinds.conf`:
|
Set in `~/.config/hypr/lua/binds/shell.lua`:
|
||||||
|
|
||||||
- `Super+Ctrl+L` — lock
|
- `Super+Ctrl+L` — lock
|
||||||
- `Super+P` — power menu
|
- `Super+P` — power menu
|
||||||
- `Super+Shift+N` — toggle do not disturb
|
- `Super+Shift+N` — toggle do not disturb
|
||||||
|
- `Alt+Tab` / `Alt+Shift+Tab` — overview, walking focus history; let go of Alt to switch
|
||||||
|
- `Super+W` — overview, without the hold
|
||||||
|
- `Super+Tab` / `Super+Shift+Tab` — next / previous window in a group
|
||||||
|
- `Super+Shift+I` — stay awake (no dim, lock or screen-off until toggled back)
|
||||||
- `Super+Ctrl+Shift+N` — clear notifications
|
- `Super+Ctrl+Shift+N` — clear notifications
|
||||||
|
- `Super+A` — ask panel
|
||||||
- `Super+Shift+R` — reload the shell
|
- `Super+Shift+R` — reload the shell
|
||||||
|
|
||||||
All of these go through Quickshell's IPC, so they work from any script:
|
All of these go through Quickshell's IPC, so they work from any script:
|
||||||
@@ -120,10 +190,54 @@ All of these go through Quickshell's IPC, so they work from any script:
|
|||||||
qs ipc call shell lock
|
qs ipc call shell lock
|
||||||
qs ipc call shell power
|
qs ipc call shell power
|
||||||
qs ipc call shell toggleDnd
|
qs ipc call shell toggleDnd
|
||||||
|
qs ipc call shell toggleStayAwake
|
||||||
|
qs ipc call shell wallpaper ~/.wallpapers/space-1.jpg
|
||||||
|
qs ipc call shell ask
|
||||||
|
qs ipc call shell askAbout "why is the sky blue"
|
||||||
qs ipc call shell clearNotifications
|
qs ipc call shell clearNotifications
|
||||||
qs ipc call shell reloadConfig
|
qs ipc call shell reloadConfig
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Ask
|
||||||
|
|
||||||
|
`Super+A` drops a panel off the top edge and hands whatever you type to
|
||||||
|
`claude -p`, streamed token by token. It is the subscription that answers —
|
||||||
|
the CLI already holds the credentials, so nothing here has an API key and
|
||||||
|
nothing here has to be given one.
|
||||||
|
|
||||||
|
The panel is a chat, not a coding session. Settings sources, MCP servers and
|
||||||
|
project files are switched off by default, which keeps a question asked from
|
||||||
|
the desktop from arriving with the last project's hooks, `CLAUDE.md` and tone
|
||||||
|
attached. The thread survives closing the panel; `Ctrl+L` starts a new one.
|
||||||
|
|
||||||
|
| Key | Does |
|
||||||
|
|---|---|
|
||||||
|
| `Enter` | ask |
|
||||||
|
| `Shift+Enter` | newline |
|
||||||
|
| `Ctrl+M` | next model, written back to `ask.json` |
|
||||||
|
| `Ctrl+Y` | copy the last answer |
|
||||||
|
| `Ctrl+L` | new conversation |
|
||||||
|
| `Ctrl+S` | stop the answer |
|
||||||
|
| `Escape` | hide, keeping the thread |
|
||||||
|
|
||||||
|
Configured in `ask.json`, watched and reloaded live:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"model": "sonnet",
|
||||||
|
"systemPrompt": "…",
|
||||||
|
"keepContext": true,
|
||||||
|
"settingSources": "",
|
||||||
|
"allowedTools": ["WebSearch", "WebFetch"],
|
||||||
|
"disallowedTools": ["Bash", "Edit", "Write"],
|
||||||
|
"workingDirectory": "/home/narl",
|
||||||
|
"maxTurns": 6
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`settingSources` is the escape hatch: set it to `"user,project,local"` and the
|
||||||
|
panel becomes your ordinary Claude Code, hooks and all.
|
||||||
|
|
||||||
## Data sources
|
## Data sources
|
||||||
|
|
||||||
Hardware telemetry comes from `fluxo`, whose hardware modules are configured to
|
Hardware telemetry comes from `fluxo`, whose hardware modules are configured to
|
||||||
@@ -136,6 +250,55 @@ NetworkManager for Wi-Fi, UPower for battery, MPRIS for media, and Quickshell's
|
|||||||
own notification server. These are event-driven, so the bar and OSD react the
|
own notification server. These are event-driven, so the bar and OSD react the
|
||||||
instant a volume key is pressed instead of on the next poll.
|
instant a volume key is pressed instead of on the next poll.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
`overview/Overview.qml`. Each monitor is a row of small portholes, one per
|
||||||
|
workspace at that monitor's aspect ratio, with live captures of the windows
|
||||||
|
where they sit (`ScreencopyView`, so windows on hidden workspaces show too).
|
||||||
|
The monitor's name heads its row once there is more than one. A group shows
|
||||||
|
the member in front with a `1/3` tag; picking a hidden member puts it in
|
||||||
|
front.
|
||||||
|
|
||||||
|
`Alt+Tab` opens it with the previous window picked, more Tabs walk back
|
||||||
|
through focus history, and letting go of Alt switches. Hyprland keeps the
|
||||||
|
Alt+Tab bind while the overview has the keyboard, so those presses arrive
|
||||||
|
over IPC (`overviewNext` / `overviewPrev`); the Alt release comes to the
|
||||||
|
overview itself, with a release bind on `ALT_L` as a backstop. Hover picks
|
||||||
|
only once the pointer moves, so a resting pointer cannot override the
|
||||||
|
keyboard. Enter, a click, or `1`–`9` for a workspace also go; Escape or a
|
||||||
|
click on the dark cancels.
|
||||||
|
|
||||||
|
Focus is dispatched a moment after the overview lets go of the keyboard:
|
||||||
|
Hyprland ignores focus changes while a layer holds it exclusively.
|
||||||
|
|
||||||
|
## Wallpaper
|
||||||
|
|
||||||
|
`backdrop/Backdrop.qml` draws it on the background layer; there is no
|
||||||
|
hyprpaper. The picture is drawn 8% larger than the screen and drifts with the
|
||||||
|
workspace: 1 sits at the top of it and each step down moves it a fixed
|
||||||
|
distance, a little slower than Hyprland's own slide, so the windows arrive
|
||||||
|
first and the scene behind catches up. It never moves on its own, so an idle
|
||||||
|
desktop costs the compositor nothing. While the workspace holds windows it
|
||||||
|
settles a shade darker.
|
||||||
|
|
||||||
|
The choice is one line in `quickshell/wallpaper` (`~` allowed), watched live.
|
||||||
|
`qs ipc call shell wallpaper <path>` rewrites it.
|
||||||
|
|
||||||
|
## Idle
|
||||||
|
|
||||||
|
`services/Idle.qml`, on Wayland's idle-notify protocol instead of hypridle:
|
||||||
|
|
||||||
|
| After | Does |
|
||||||
|
|---|---|
|
||||||
|
| 4 min | the screen dims slowly (`overlays/IdleDim.qml`); any input lifts it |
|
||||||
|
| 5 min | lock |
|
||||||
|
| 6 min | displays off; any input wakes them |
|
||||||
|
| 15 min | suspend, on battery only |
|
||||||
|
|
||||||
|
Every stage respects idle inhibitors, so a fullscreen video holds them all
|
||||||
|
off. `Super+Shift+I` does the same by hand and puts a cup on the rail while it
|
||||||
|
is on.
|
||||||
|
|
||||||
## Lock screen
|
## Lock screen
|
||||||
|
|
||||||
Authenticates through `/etc/pam.d/hyprlock`, which on this box is just
|
Authenticates through `/etc/pam.d/hyprlock`, which on this box is just
|
||||||
@@ -143,6 +306,14 @@ Authenticates through `/etc/pam.d/hyprlock`, which on this box is just
|
|||||||
styled in an ordinary window (`qs -p lockpreview.qml`) without locking the
|
styled in an ordinary window (`qs -p lockpreview.qml`) without locking the
|
||||||
session.
|
session.
|
||||||
|
|
||||||
|
It is the wallpaper, barely softened, with the face set in the dark of the
|
||||||
|
porthole: the mark, the time in light display type, the date, "Take your
|
||||||
|
time." glowing faintly with the odd flicker (`components/GlowText.qml`), a
|
||||||
|
status log
|
||||||
|
(battery, network, what is playing, unread notices), and a rounded field that
|
||||||
|
fills with dots as you type. The dots breathe while PAM checks; a wrong
|
||||||
|
password turns them and the field's rim to rust and nudges the field once.
|
||||||
|
|
||||||
If the shell ever dies while the session is locked, the compositor keeps the
|
If the shell ever dies while the session is locked, the compositor keeps the
|
||||||
session secured by protocol and there is no unlocker left to talk to — recovery
|
session secured by protocol and there is no unlocker left to talk to — recovery
|
||||||
means restarting Hyprland from a TTY.
|
means restarting Hyprland from a TTY.
|
||||||
@@ -150,6 +321,9 @@ means restarting Hyprland from a TTY.
|
|||||||
## What was retired
|
## What was retired
|
||||||
|
|
||||||
- `waybar.service` — disabled. Its config is still in `~/.config/waybar`.
|
- `waybar.service` — disabled. Its config is still in `~/.config/waybar`.
|
||||||
|
- `hyprpaper` — replaced by `backdrop/`. Turn its unit off with
|
||||||
|
`systemctl --user disable --now hyprpaper`.
|
||||||
|
- `hypridle` — never installed; `services/Idle.qml` does the job.
|
||||||
- `dunst.service` — masked, so it cannot be D-Bus activated and steal
|
- `dunst.service` — masked, so it cannot be D-Bus activated and steal
|
||||||
`org.freedesktop.Notifications`. Undo with
|
`org.freedesktop.Notifications`. Undo with
|
||||||
`systemctl --user unmask dunst.service`.
|
`systemctl --user unmask dunst.service`.
|
||||||
@@ -160,88 +334,151 @@ means restarting Hyprland from a TTY.
|
|||||||
`power-profiles-daemon` is not installed (TLP is), so the power-profile
|
`power-profiles-daemon` is not installed (TLP is), so the power-profile
|
||||||
switching in `services/Battery.qml` stays dormant. Nothing else depends on it.
|
switching in `services/Battery.qml` stays dormant. Nothing else depends on it.
|
||||||
|
|
||||||
The display face is Archivo Black, set italic almost everywhere. Change
|
The display face is Noto Sans, upright and widely tracked — the nearest free
|
||||||
`Theme.fontDisplay` and everything follows.
|
face to NieR's FOT-Rodin that is already installed. Change `Theme.fontDisplay`
|
||||||
|
and everything follows.
|
||||||
|
|
||||||
## Palette discipline
|
## Palette discipline
|
||||||
|
|
||||||
Crimson, black, white. That is the whole palette.
|
YoRHa dark: NieR:Automata's interface language, painted from the wallpaper
|
||||||
|
(`~/.wallpapers/space-1.jpg`) rather than from the game's beige. Two hues, and
|
||||||
|
**hue is meaning**; nothing gets a colour for decoration.
|
||||||
|
|
||||||
**Changing the accent.** The colour is written in exactly three places, one per
|
- **Light (`accent`, `#eef1ea`)** means live: the focused workspace, the
|
||||||
program:
|
selected row, the hovered control, a channel that is on, an unread badge. It
|
||||||
|
is the planet's white, barely a colour at all — NieR marks attention with
|
||||||
|
brightness and inversion, not with hue.
|
||||||
|
- **Red (`alarm`, `#c8684f`)** means wrong or destructive: critical battery, an
|
||||||
|
urgent workspace, a critical notification, reboot and shut down. It is the
|
||||||
|
hull's indicator lights, the only warm thing in the wallpaper.
|
||||||
|
- **Grey-green** is everything else, and that includes *off*. A muted speaker,
|
||||||
|
a muted mic and Do Not Disturb drop to `muted` grey with their off glyph.
|
||||||
|
- **Ink** is the text on an inverted slab and the faint drop under display
|
||||||
|
type.
|
||||||
|
|
||||||
| File | Line | Covers |
|
**Selection is the NieR cursor.** Focus and selection invert the row: a slab of
|
||||||
|---|---|---|
|
the light with ink punched out of it. Hover lifts the surface one step and
|
||||||
| `quickshell/config/Theme.qml` | `readonly property color accent: "#ff2d40"` | the shell |
|
brings the marker up to full light, but never inverts. Destructive-active is
|
||||||
| `hypr/modules/takemi.conf` | `$accent = rgb(ff2d40)` | window borders, groups |
|
the same slab in red. The `treatment*` tokens in `Theme.qml` encode all of
|
||||||
| `alacritty/takemi.toml` | `red`, cursor, selection | the terminal |
|
this; use them rather than picking colours per widget.
|
||||||
|
|
||||||
Everything else derives. `accentDim` and `accentSoft` come off `accent` via
|
**Dots, not slashes.** The current row, a button under the pointer, the end of
|
||||||
`Qt.darker`/`Qt.lighter`, `glow` (the hover highlight) *is* `accent`, and every
|
a header rule and a notification's urgency carry a small dot (`Theme.marker`).
|
||||||
Hyprland border, group indicator and focus state references `$accent`. Change
|
Borders are structure and stay neutral.
|
||||||
those lines and the whole setup recolours — swap in Persona 4's yellow or
|
|
||||||
Persona 3's blue and nothing else needs touching.
|
**Flicker, not print.** Display text (`SplitText`) is upright, tracked by
|
||||||
|
`Theme.tracking`, on a one-pixel soft drop. The two ghosts either side of it
|
||||||
|
appear only while `glitch()` runs — NieR's brief data-corruption flicker.
|
||||||
|
|
||||||
|
**Texture is rare.** Chrome (bar, rail, tooltips), transient panels (popouts,
|
||||||
|
OSD, toasts) and the two scene surfaces are flat. Depth comes from the hull's
|
||||||
|
dark, the rim hairline and the wallpaper, not from patterns.
|
||||||
|
|
||||||
|
**Type has a floor.** Nothing renders below `Theme.fsMicro` (10px).
|
||||||
|
|
||||||
|
**Changing the palette.** The colours are written once per program:
|
||||||
|
|
||||||
|
| File | Covers |
|
||||||
|
|---|---|
|
||||||
|
| `quickshell/config/Theme.qml` | the shell: `accent`, `alarm`, the neutral ramp, the hull |
|
||||||
|
| `hypr/lua/palette.lua` | window borders, groups |
|
||||||
|
| `alacritty/yorha.toml` | the terminal |
|
||||||
|
| `fish/conf.d/yorha_theme.fish` | the prompt and pager |
|
||||||
|
| `nvim/lua/yorha.lua` | the editor and its statusline |
|
||||||
|
| `btop/themes/yorha.theme` | the resource monitor |
|
||||||
|
| `gtk-3.0/gtk.css`, `gtk-4.0/gtk.css` | GTK and libadwaita apps |
|
||||||
|
| `qt6ct/colors/yorha.conf` | Qt apps |
|
||||||
|
| `zathura/yorha` | the document viewer |
|
||||||
|
|
||||||
|
Everything else derives. `glow` *is* `accent`, and `primary` is plain `text`.
|
||||||
|
`Theme.heat()` is a continuous text → light → red ramp, so a CPU figure that
|
||||||
|
has gone red means the same thing as a battery that has gone red. Tray icons
|
||||||
|
are flattened to one colour (subtext, the accent on hover) for the same reason:
|
||||||
|
app brand colours wreck the palette faster than anything else in the shell.
|
||||||
|
nm-applet and blueman are hidden from the tray, since the rail already shows
|
||||||
|
network and bluetooth, but keep running as the secret and pairing agents.
|
||||||
|
|
||||||
## The rest of the desktop
|
## The rest of the desktop
|
||||||
|
|
||||||
- **Alacritty** — `alacritty/takemi.toml`, selected by the `import` in
|
- **Hyprland** — `hypr/lua/look.lua`. Windows round at 8px, concentric with
|
||||||
`alacritty.toml`. The Catppuccin files are left in place, just unreferenced.
|
the opening's 18px corners at a 10px gap (`Theme.frameRadius - gaps_out`);
|
||||||
Near-black ground, white text, crimson cursor and selection. The sixteen ANSI
|
change one and the others follow. No blur, both opacities at `1.0`, 1px
|
||||||
slots keep their hues because syntax highlighters need to tell them apart, but
|
borders running from the light into the suit's grey. The shadow is soft and
|
||||||
every one is desaturated so nothing competes with the accent.
|
wide, so windows float in the opening. Group tabs are thin rounded lines with
|
||||||
- **Neovim** — `nvim/lua/takemi.lua`, loaded through `nvim/colors/takemi.lua`
|
no titles, the current one in the light; the bar writes the title once and
|
||||||
so `:colorscheme takemi` and `require("takemi").lualine()` both work. Same
|
adds the window's place in the group (`2/3`). Motion
|
||||||
palette, same rule: crimson is spent only on keywords, types and errors,
|
(`hypr/lua/animations.lua`) glides and settles with no overshoot: windows
|
||||||
functions are plain white-bold, and `terminal_color_0..15` mirror
|
resolve in from a hair smaller, workspaces drift a short way vertically and
|
||||||
`takemi.toml` slot for slot so `:terminal` matches the shell around it.
|
fade (sliding behind the hull), the `SUPER+S` scratchpad lowers out from
|
||||||
- **Fish** — `fish/conf.d/takemi_theme.fish`, with a preview copy in
|
under the bar like the dashboard, and layers only fade, since quickshell
|
||||||
`fish/themes/Takemi.theme` for `fish_config`. Replaced the Catppuccin
|
animates its own surfaces.
|
||||||
`fish_frozen_theme.fish` that fish 4.3 generated on upgrade. The prompt arrow
|
- **Alacritty** — `alacritty/yorha.toml`, selected by the `import` in
|
||||||
is white and turns crimson on a non-zero exit — the shell's one "wrong"
|
`alacritty.toml`. Muted earth hues on the void; selection inverts.
|
||||||
signal, and so the one place that earns the accent.
|
Alacritty only live-reloads when `alacritty.toml` itself changes, so touch
|
||||||
- **Fuzzel** — `fuzzel/takemi.ini`, selected by the `include` in `fuzzel.ini`.
|
it after editing the palette.
|
||||||
Square corners rather than the stock radius, and a fully opaque ground.
|
The Catppuccin and `takemi.toml` files are left in place, unreferenced.
|
||||||
|
- **Neovim** — `nvim/lua/yorha.lua` (loaded by `colors/yorha.lua`, with a
|
||||||
|
matching lualine theme). Syntax in the terminal's earth hues, floats as hull
|
||||||
|
surfaces with rounded rims, menus selecting with the light slab.
|
||||||
|
- **btop** — `btop/themes/yorha.theme`. Hairline boxes; gradients climb from
|
||||||
|
grey to the light, and only temperature and CPU load run on into rust.
|
||||||
|
- **GTK** — the `adw-gtk3-dark` theme (package `adw-gtk-theme`) for the
|
||||||
|
libadwaita shapes, recoloured by `gtk-3.0/gtk.css` and `gtk-4.0/gtk.css`.
|
||||||
|
libadwaita apps such as Nautilus read the same overrides as CSS variables.
|
||||||
|
Selection is the light slab with ink text; only destructive actions are red.
|
||||||
|
The theme name is also in `xsettingsd/xsettingsd.conf` and has to be set with
|
||||||
|
`gsettings` for portal-aware apps.
|
||||||
|
- **Type** — one sans and one mono everywhere: Noto Sans for interface text
|
||||||
|
and JetBrainsMono Nerd Font for figures and code, in the shell
|
||||||
|
(`Theme.fontDisplay` / `fontMono`), GTK (`settings.ini` and the gsettings
|
||||||
|
`font-name` / `monospace-font-name`), qt6ct and Hyprland's own text.
|
||||||
|
- **Qt** — qt6ct with `qt6ct/colors/yorha.conf`, the same palette in
|
||||||
|
`QPalette` roles, drawn with the Darkly style (package `darkly-bin`) for
|
||||||
|
rounded controls. Fusion is the fallback if Darkly is missing.
|
||||||
|
- **zathura** — `zathura/yorha`, included from `zathurarc`. Pages are
|
||||||
|
recoloured onto the hull with text in bone; images keep their colours.
|
||||||
|
Search hits are a soft bone wash, and the current hit is sand.
|
||||||
|
- **Fish** — `fish/conf.d/yorha_theme.fish`.
|
||||||
|
- **The launcher** — no external theming to keep in step, because it is part of
|
||||||
|
this shell (`launcher/`). Fuzzel is gone; `takemi-dmenu` stands in for
|
||||||
|
`fuzzel --dmenu` where a script needs a picker.
|
||||||
- **No glass anywhere.** Alacritty is `opacity = 1.0, blur = false`, and
|
- **No glass anywhere.** Alacritty is `opacity = 1.0, blur = false`, and
|
||||||
Hyprland's `decoration:blur` is disabled with both opacities at `1.0`. Blur is
|
Hyprland's `decoration:blur` is disabled.
|
||||||
the signature of the frosted-glass look, which is the opposite of flat ink on
|
|
||||||
flat ground — and with nothing translucent left it was costing three render
|
|
||||||
passes for no visible result.
|
|
||||||
|
|
||||||
White is the resting voice — text, icons, idle indicators. Crimson is the only
|
There are **no gradients in the chrome**; every fill is flat. `Theme.sheen`
|
||||||
accent and always means one thing: active, or wrong. Black is structure, used as
|
still exists as a no-op property so old call sites need not be chased down.
|
||||||
a hard keyline rather than as a soft shadow. **There are no gradients in this
|
|
||||||
shell**; every fill is flat. `Theme.sheen` still exists as a no-op property
|
|
||||||
because a teal-to-transparent wash on every panel was the single biggest source
|
|
||||||
of the murky blue cast the design used to have.
|
|
||||||
|
|
||||||
`primary`, `glow`, `blue`, `ok` and `warn` survive in `Theme.qml` only as
|
|
||||||
aliases onto white, crimson and grey, so the existing call sites keep working —
|
|
||||||
don't introduce new uses. `warn` used to alias `accentSoft`, which put a
|
|
||||||
washed-out pink-red wherever something was merely notable; there is no
|
|
||||||
half-crimson in this palette, so it aliases the real `accent` now and anything
|
|
||||||
merely informational (brightness, most readouts) is white instead. `Theme.heat()` is a continuous white→crimson ramp, so
|
|
||||||
a CPU figure that has gone red means the same thing as a battery that has gone
|
|
||||||
red. Tray icons are force-flattened to a single colour for the same reason: app
|
|
||||||
brand colours wreck the palette faster than anything else in the shell.
|
|
||||||
|
|
||||||
The wallpaper is teal. The UI used to be teal too, and the two fought each other
|
|
||||||
into a blue-grey mush. Going monochrome-plus-red is what lets the wallpaper be
|
|
||||||
the colour in the composition.
|
|
||||||
|
|
||||||
## Geometry discipline
|
## Geometry discipline
|
||||||
|
|
||||||
**One angle, one chamfer, everywhere.** `Theme.skew` is `tan(14°)` and every
|
**The hull.** Borrowed from caelestia's screen border: the bar, the rail and a
|
||||||
edge in the shell leans by exactly that, in the same direction; every corner is
|
thin band down the left and along the bottom (`Theme.frame`) are one surface,
|
||||||
chopped by exactly `Theme.cut`. A vertical panel (the rail) leans its horizontal
|
drawn by `bar/Frame.qml`, and the desktop is a rounded opening cut out of it
|
||||||
edges by a fraction of its *width*, which works out to the same 14°.
|
(`Theme.frameRadius`). Read against the wallpaper, you are inside the ship and
|
||||||
|
the windows sit in the porthole. The hull is on the top layer, over the
|
||||||
|
windows, with a transparent opening and no input region, so a window moving
|
||||||
|
past the opening's edge — a workspace switch, the scratchpad drawer — passes
|
||||||
|
behind the frame rather than over the bar. `hypr/lua/rules/layers.lua` orders
|
||||||
|
the bar and the rail above it. The bar and the rail draw
|
||||||
|
no surface of their own and ignore exclusive zones; Frame reserves all four
|
||||||
|
zones itself, so every piece is placed from the screen edge.
|
||||||
|
|
||||||
This is deliberate and was learned the hard way. An earlier pass gave every
|
**Soft, everywhere else.** The porthole is the shape the desktop is built
|
||||||
module a different lean, chamfer and height from per-index variance tables, on
|
around, and every smaller surface is a gentler echo of it. `Theme.skew` and
|
||||||
the theory that Persona geometry is "chaotic". It isn't — Persona UI is
|
`Theme.cut` are `0`; `Panel` and `Skew` draw `Geom.roundedRect` with
|
||||||
meticulously clean, and the chaos lives in composition and motion, not in each
|
`Theme.radiusS` (pills, chips, meter tracks), `radiusM` (rows, buttons) or
|
||||||
element being a different shape. Randomised geometry just reads as noise. If you
|
`radiusL`. `radiusL` is `frameRadius - padS`: anything inset by `padS` inside
|
||||||
find yourself adding a variance table, don't.
|
one of the frame's curves — a hovered notification in the drawer's corner —
|
||||||
|
gets a corner concentric with it, so the gap stays even and nothing pokes past
|
||||||
|
the curve. Free-standing panels (launcher, ask) take `frameRadius` itself.
|
||||||
|
Toggles, transport buttons, workspace pips and today's date are pills or
|
||||||
|
discs; album art is rounded via `ClippingRectangle`.
|
||||||
|
|
||||||
Each surface is **one continuous slab**, with modules divided by sheared
|
**Motion glides.** No overshoot anywhere: things ease in on `OutCubic` or
|
||||||
hairline rules rather than by gaps. A row of separate floating cards reads as
|
`OutExpo` and settle. Nothing scales up or nudges sideways on hover either;
|
||||||
clutter; that is what the dividers exist to avoid.
|
hover brightens and marks, the way NieR's menus do. Meters are one continuous
|
||||||
|
rounded line that glides to its level, and the bar's player shows a
|
||||||
|
five-line signal meter.
|
||||||
|
|
||||||
|
Each surface is **one continuous slab**, with modules divided by hairline rules
|
||||||
|
rather than by gaps. A row of separate floating cards reads as clutter; that is
|
||||||
|
what the dividers exist to avoid.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"model": "sonnet",
|
||||||
|
"fallbackModel": "",
|
||||||
|
"systemPrompt": "You are a desktop answer panel. Answer the question directly and compactly, in markdown, with no preamble. Prefer a few sentences over a list, and a list over an essay. Say plainly when you do not know.",
|
||||||
|
"keepContext": true,
|
||||||
|
"settingSources": "",
|
||||||
|
"allowedTools": ["WebSearch", "WebFetch"],
|
||||||
|
"disallowedTools": ["Bash", "Edit", "Write", "NotebookEdit", "Agent", "Task"],
|
||||||
|
"workingDirectory": "/home/narl",
|
||||||
|
"maxTurns": 6
|
||||||
|
}
|
||||||
@@ -0,0 +1,416 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Wayland
|
||||||
|
import "root:/config"
|
||||||
|
import "root:/components"
|
||||||
|
import "root:/popouts"
|
||||||
|
import "root:/services"
|
||||||
|
|
||||||
|
// The ask panel. It comes down off the top edge, takes the keyboard, and hands
|
||||||
|
// a question to Claude.
|
||||||
|
//
|
||||||
|
// Deliberately not the launcher: the launcher is a list you pick from in one
|
||||||
|
// keystroke, this is a conversation you read. The shape says so — full width of
|
||||||
|
// the question, answer below it, and the thing drops from the top rather than
|
||||||
|
// rising into the middle so the two are never mistaken for each other mid-type.
|
||||||
|
PanelWindow {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property var modelData
|
||||||
|
screen: modelData
|
||||||
|
|
||||||
|
// One screen at a time, latched at open — same reason as the launcher: the
|
||||||
|
// window takes focus, and a prompt should not hop monitors mid-question.
|
||||||
|
readonly property bool open: Actions.askOpen
|
||||||
|
&& Actions.askScreen === modelData.name
|
||||||
|
visible: root.open || closeAnim.running
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
|
WlrLayershell.namespace: "takemi-ask"
|
||||||
|
WlrLayershell.keyboardFocus: root.open
|
||||||
|
? WlrKeyboardFocus.Exclusive
|
||||||
|
: WlrKeyboardFocus.None
|
||||||
|
|
||||||
|
anchors { top: true; bottom: true; left: true; right: true }
|
||||||
|
color: "transparent"
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
|
||||||
|
readonly property int panelWidth: Math.min(860, root.width - Theme.padXL * 2)
|
||||||
|
readonly property int maxTranscript: Math.round(root.height * 0.55)
|
||||||
|
|
||||||
|
onOpenChanged: {
|
||||||
|
if (root.open) {
|
||||||
|
PopupCoordinator.dismissAll();
|
||||||
|
input.text = Actions.askSeed;
|
||||||
|
openAnim.restart();
|
||||||
|
input.forceActiveFocus();
|
||||||
|
input.cursorPosition = input.text.length;
|
||||||
|
if (Actions.askSeed !== "") root.send();
|
||||||
|
} else {
|
||||||
|
closeAnim.restart();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function send(): void {
|
||||||
|
const q = input.text.trim();
|
||||||
|
if (q === "" || Ask.busy) return;
|
||||||
|
Ask.ask(q);
|
||||||
|
input.text = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
function copyLast(): void {
|
||||||
|
for (let i = Ask.turns.length - 1; i >= 0; i--) {
|
||||||
|
if (Ask.turns[i].role === "assistant" && Ask.turns[i].text !== "") {
|
||||||
|
Actions.copyText(Ask.turns[i].text);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------- backdrop
|
||||||
|
Rectangle {
|
||||||
|
id: backdrop
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Theme.alpha(Theme.base, 0.6)
|
||||||
|
opacity: 0
|
||||||
|
|
||||||
|
TapHandler { onTapped: Actions.closeAsk() }
|
||||||
|
}
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------- panel
|
||||||
|
Item {
|
||||||
|
id: shell
|
||||||
|
|
||||||
|
width: root.panelWidth
|
||||||
|
height: header.height + divider.height + body.height + hint.height
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
y: 0
|
||||||
|
|
||||||
|
opacity: 0
|
||||||
|
// The drop. The offset is animated, never bound: binding it to the
|
||||||
|
// panel's own height means every height change — every streamed line —
|
||||||
|
// snaps the panel back off the top of the screen.
|
||||||
|
transform: Translate { id: drop; y: 0 }
|
||||||
|
|
||||||
|
PopoutSurface {
|
||||||
|
anchors.fill: parent
|
||||||
|
tone: Ask.busy ? Theme.accent : Theme.primary
|
||||||
|
padding: 0
|
||||||
|
slashWidth: Ask.busy ? 8 : 5
|
||||||
|
|
||||||
|
// -------------------------------------------------------- header
|
||||||
|
Item {
|
||||||
|
id: header
|
||||||
|
width: parent.width
|
||||||
|
height: 62
|
||||||
|
anchors.top: parent.top
|
||||||
|
|
||||||
|
Row {
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: Theme.padL
|
||||||
|
anchors.rightMargin: Theme.padL
|
||||||
|
spacing: Theme.padM
|
||||||
|
|
||||||
|
// Pulses rather than spins. Native text rendering is
|
||||||
|
// subpixel-antialiased, so a rotated glyph smears into
|
||||||
|
// colour fringes; scale keeps it on the pixel grid.
|
||||||
|
Icon {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
text: ""
|
||||||
|
color: Ask.busy ? Theme.accent : Theme.primary
|
||||||
|
font.pixelSize: Theme.fsTitle
|
||||||
|
pulsing: Ask.busy
|
||||||
|
pulseScale: 1.12
|
||||||
|
}
|
||||||
|
|
||||||
|
TextInput {
|
||||||
|
id: input
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
width: parent.width - x - modelChip.width - Theme.padM
|
||||||
|
color: Theme.text
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsLarge
|
||||||
|
selectionColor: Theme.accent
|
||||||
|
selectedTextColor: Theme.ink
|
||||||
|
clip: true
|
||||||
|
focus: true
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
|
||||||
|
Keys.priority: Keys.BeforeItem
|
||||||
|
Keys.onPressed: event => root.handleKey(event)
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
visible: input.text === ""
|
||||||
|
text: Ask.busy ? "thinking…"
|
||||||
|
: Ask.turns.length > 0 ? "follow up…" : "ask anything"
|
||||||
|
color: Theme.muted
|
||||||
|
font: input.font
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The model, which is also the control for it: Ctrl+M walks
|
||||||
|
// the ring and writes the choice back to ask.json, so the
|
||||||
|
// panel and the file never disagree.
|
||||||
|
Item {
|
||||||
|
id: modelChip
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
width: modelText.width + Theme.padM * 2
|
||||||
|
height: 24
|
||||||
|
|
||||||
|
Skew {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Theme.surface
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: modelText
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: Ask.model.toUpperCase()
|
||||||
|
color: Theme.accent
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsMicro
|
||||||
|
font.weight: Font.Bold
|
||||||
|
font.letterSpacing: 2
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onClicked: Ask.cycleModel()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Skew {
|
||||||
|
id: divider
|
||||||
|
anchors.top: header.bottom
|
||||||
|
width: parent.width
|
||||||
|
height: Theme.stroke
|
||||||
|
color: Theme.alpha(Theme.outline, 0.8)
|
||||||
|
lean: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// --------------------------------------------------- transcript
|
||||||
|
Item {
|
||||||
|
id: body
|
||||||
|
anchors.top: divider.bottom
|
||||||
|
width: parent.width
|
||||||
|
height: Math.min(transcript.contentHeight + Theme.padM * 2,
|
||||||
|
root.maxTranscript)
|
||||||
|
visible: Ask.turns.length > 0 || Ask.error !== ""
|
||||||
|
clip: true
|
||||||
|
|
||||||
|
Behavior on height {
|
||||||
|
NumberAnimation { duration: Theme.durBase; easing.type: Easing.OutExpo }
|
||||||
|
}
|
||||||
|
|
||||||
|
ListView {
|
||||||
|
id: transcript
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: Theme.padM
|
||||||
|
anchors.leftMargin: Theme.padL
|
||||||
|
anchors.rightMargin: Theme.padL
|
||||||
|
model: Ask.turns
|
||||||
|
spacing: Theme.padM
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
|
// Stay at the bottom while an answer streams in, but leave
|
||||||
|
// the view alone the moment it is scrolled by hand.
|
||||||
|
property bool pinned: true
|
||||||
|
onMovementEnded: pinned = atYEnd
|
||||||
|
onContentHeightChanged: if (pinned) positionViewAtEnd()
|
||||||
|
|
||||||
|
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded }
|
||||||
|
|
||||||
|
delegate: Column {
|
||||||
|
required property var modelData
|
||||||
|
width: transcript.width
|
||||||
|
spacing: Theme.padS
|
||||||
|
|
||||||
|
Text {
|
||||||
|
visible: modelData.role === "user"
|
||||||
|
text: "YOU"
|
||||||
|
color: Theme.muted
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsMicro
|
||||||
|
font.letterSpacing: 3
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
width: parent.width
|
||||||
|
text: modelData.text
|
||||||
|
textFormat: modelData.role === "assistant"
|
||||||
|
? Text.MarkdownText : Text.PlainText
|
||||||
|
color: modelData.role === "user" ? Theme.subtext : Theme.text
|
||||||
|
linkColor: Theme.accent
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsBody
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
onLinkActivated: link => Actions.run(["xdg-open", link])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
footer: Text {
|
||||||
|
width: transcript.width
|
||||||
|
visible: Ask.error !== ""
|
||||||
|
topPadding: visible ? Theme.padM : 0
|
||||||
|
text: Ask.error
|
||||||
|
color: Theme.alarm
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsSmall
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------- hints
|
||||||
|
Item {
|
||||||
|
id: hint
|
||||||
|
anchors.top: body.visible ? body.bottom : divider.bottom
|
||||||
|
width: parent.width
|
||||||
|
height: 28
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: Theme.padL
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
color: Theme.muted
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsMicro
|
||||||
|
font.letterSpacing: 3
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
text: Ask.busy
|
||||||
|
? "⏎ QUEUE CTRL+S STOP ESC HIDE"
|
||||||
|
: "⏎ ASK CTRL+M MODEL CTRL+Y COPY CTRL+L NEW ESC HIDE"
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: Theme.padL
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
visible: Ask.turns.length > 0
|
||||||
|
text: Math.floor(Ask.turns.length / 2) + " TURN"
|
||||||
|
+ (Ask.turns.length > 2 ? "S" : "")
|
||||||
|
color: Theme.muted
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsMicro
|
||||||
|
font.letterSpacing: 1
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------ keys
|
||||||
|
function handleKey(event: var): void {
|
||||||
|
if (!root.open) return;
|
||||||
|
|
||||||
|
const ctrl = (event.modifiers & Qt.ControlModifier) !== 0;
|
||||||
|
|
||||||
|
if (event.key === Qt.Key_Escape || (ctrl && event.key === Qt.Key_C)) {
|
||||||
|
// Hide, do not clear. The thread outlives the panel so that closing
|
||||||
|
// it to read something and reopening to ask about that is one
|
||||||
|
// conversation, not two.
|
||||||
|
Actions.closeAsk();
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||||
|
// Shift+Enter is a newline; a multi-line question is still one
|
||||||
|
// question. Plain Enter sends.
|
||||||
|
if ((event.modifiers & Qt.ShiftModifier) === 0) {
|
||||||
|
root.send();
|
||||||
|
event.accepted = true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctrl && event.key === Qt.Key_L) {
|
||||||
|
Ask.clear();
|
||||||
|
input.text = "";
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctrl && event.key === Qt.Key_S) {
|
||||||
|
Ask.stop();
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctrl && event.key === Qt.Key_M) {
|
||||||
|
Ask.cycleModel();
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctrl && event.key === Qt.Key_Y) {
|
||||||
|
root.copyLast();
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctrl && event.key === Qt.Key_U) {
|
||||||
|
input.text = "";
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The transcript scrolls on the arrows, because the input is one line
|
||||||
|
// and has nowhere for them to go.
|
||||||
|
if (event.key === Qt.Key_PageDown || (ctrl && event.key === Qt.Key_J)) {
|
||||||
|
transcript.flick(0, -900);
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.key === Qt.Key_PageUp || (ctrl && event.key === Qt.Key_K)) {
|
||||||
|
transcript.flick(0, 900);
|
||||||
|
event.accepted = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------------- animation
|
||||||
|
ParallelAnimation {
|
||||||
|
id: openAnim
|
||||||
|
NumberAnimation {
|
||||||
|
target: backdrop; property: "opacity"
|
||||||
|
to: 1; duration: Theme.durBase; easing.type: Easing.OutQuad
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: shell; property: "opacity"
|
||||||
|
to: 1; duration: Theme.durFast
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: drop; property: "y"
|
||||||
|
from: -shell.height; to: 0
|
||||||
|
duration: Theme.durSlow; easing.type: Easing.OutCubic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ParallelAnimation {
|
||||||
|
id: closeAnim
|
||||||
|
NumberAnimation {
|
||||||
|
target: backdrop; property: "opacity"
|
||||||
|
to: 0; duration: Theme.durFast
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: shell; property: "opacity"
|
||||||
|
to: 0; duration: Theme.durFast
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: drop; property: "y"
|
||||||
|
to: -shell.height; duration: Theme.durFast; easing.type: Easing.InQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 304 B |
Binary file not shown.
|
Before Width: | Height: | Size: 338 B |
Binary file not shown.
|
Before Width: | Height: | Size: 310 B |
Binary file not shown.
|
Before Width: | Height: | Size: 448 B |
@@ -0,0 +1,90 @@
|
|||||||
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Wayland
|
||||||
|
import "root:/config"
|
||||||
|
import "root:/services"
|
||||||
|
|
||||||
|
// The wallpaper, seen through the porthole. It is drawn a little larger than
|
||||||
|
// the screen and drifts when the workspace changes: windows slide past
|
||||||
|
// vertically (hypr/lua/animations.lua) and the scene behind them moves a few
|
||||||
|
// pixels the same way and a little later, the way distant things do out of a
|
||||||
|
// moving window. Only on switches — it never moves on its own, so an idle
|
||||||
|
// desktop costs the compositor nothing.
|
||||||
|
//
|
||||||
|
// It also settles a shade darker while the workspace holds windows, so the
|
||||||
|
// band of wallpaper round them reads as the far side of the glass rather than
|
||||||
|
// as part of the desktop.
|
||||||
|
PanelWindow {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property var modelData
|
||||||
|
screen: modelData
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
|
WlrLayershell.namespace: "takemi-backdrop"
|
||||||
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
anchors { top: true; bottom: true; left: true; right: true }
|
||||||
|
color: Theme.ink
|
||||||
|
mask: Region {}
|
||||||
|
|
||||||
|
readonly property HyprlandMonitor monitor: Hyprland.monitorFor(root.screen)
|
||||||
|
readonly property HyprlandWorkspace workspace: root.monitor?.activeWorkspace ?? null
|
||||||
|
|
||||||
|
// Overscan: how much bigger than the screen the picture is drawn, which is
|
||||||
|
// the room it has to drift in.
|
||||||
|
readonly property real overscan: 1.08
|
||||||
|
readonly property real slack: root.height * (root.overscan - 1)
|
||||||
|
|
||||||
|
// Workspaces 1–10 spread across the slack, so 1 sits at the top of the
|
||||||
|
// picture and each step down moves it a fixed distance. Special and
|
||||||
|
// named workspaces (negative ids) leave it where it was.
|
||||||
|
property real drift: 0
|
||||||
|
readonly property int wsId: root.workspace?.id ?? 1
|
||||||
|
onWsIdChanged: if (root.wsId > 0) root.drift = Math.min(root.wsId - 1, 9) / 9
|
||||||
|
|
||||||
|
readonly property bool occupied: (root.workspace?.toplevels?.values?.length ?? 0) > 0
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: picture
|
||||||
|
width: root.width * root.overscan
|
||||||
|
height: root.height * root.overscan
|
||||||
|
x: -(width - root.width) / 2
|
||||||
|
y: -root.drift * root.slack
|
||||||
|
source: Wallpaper.forMonitor(root.screen?.name ?? "")
|
||||||
|
sourceSize: Qt.size(width, height)
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
asynchronous: true
|
||||||
|
smooth: true
|
||||||
|
cache: false
|
||||||
|
|
||||||
|
opacity: status === Image.Ready ? 1 : 0
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation { duration: Theme.durLazy; easing.type: Easing.OutCubic }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Longer than Hyprland's 550ms workspace slide, on the same curve, so
|
||||||
|
// the windows arrive first and the scene catches up.
|
||||||
|
Behavior on y {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: 900
|
||||||
|
easing.type: Easing.BezierSpline
|
||||||
|
easing.bezierCurve: [0.35, 0.0, 0.15, 1.0, 1.0, 1.0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: Theme.ink
|
||||||
|
opacity: root.occupied ? 0.18 : 0
|
||||||
|
|
||||||
|
Behavior on opacity {
|
||||||
|
NumberAnimation { duration: Theme.durLazy; easing.type: Easing.InOutSine }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: root.drift = Math.min(Math.max(root.wsId, 1) - 1, 9) / 9
|
||||||
|
}
|
||||||
@@ -20,12 +20,43 @@ Item {
|
|||||||
|| toplevel.monitor.id === root.monitor.id)
|
|| toplevel.monitor.id === root.monitor.id)
|
||||||
|
|
||||||
readonly property string incomingTitle: mine && toplevel.title ? toplevel.title : "—"
|
readonly property string incomingTitle: mine && toplevel.title ? toplevel.title : "—"
|
||||||
|
|
||||||
|
// Where the focused window sits in its group, as "2/3", or "" when it is
|
||||||
|
// not grouped. Hyprland's group bar draws only indicator lines (see
|
||||||
|
// hypr/lua/look.lua), so the bar is the one place the title is written.
|
||||||
|
readonly property string groupLabel: {
|
||||||
|
const ipc = root.mine ? root.toplevel.lastIpcObject : null;
|
||||||
|
const members = ipc?.grouped ?? [];
|
||||||
|
if (members.length < 2) return "";
|
||||||
|
const bare = a => String(a).replace(/^0x/, "");
|
||||||
|
const at = members.findIndex(m => bare(m) === bare(root.toplevel.address));
|
||||||
|
return (at < 0 ? "?" : at + 1) + "/" + members.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
// lastIpcObject is a snapshot, refreshed only on request. Ask again
|
||||||
|
// whenever focus or group membership may have changed.
|
||||||
|
Connections {
|
||||||
|
target: Hyprland
|
||||||
|
function onRawEvent(event) {
|
||||||
|
const n = event.name;
|
||||||
|
if (n === "activewindowv2" || n === "togglegroup"
|
||||||
|
|| n === "moveintogroup" || n === "moveoutofgroup"
|
||||||
|
|| n === "closewindow" || n === "openwindow")
|
||||||
|
Hyprland.refreshToplevels();
|
||||||
|
}
|
||||||
|
}
|
||||||
property string displayedTitle: "—"
|
property string displayedTitle: "—"
|
||||||
|
|
||||||
|
// Which toplevel the landing transition last played for. The landing is a
|
||||||
|
// focus-change stamp, so it has to key off window identity rather than off
|
||||||
|
// the caption text — see commitTitle().
|
||||||
|
property var landedToplevel: null
|
||||||
|
|
||||||
// The bar shrinks this when the three clusters would otherwise collide.
|
// The bar shrinks this when the three clusters would otherwise collide.
|
||||||
property real maxWidth: 240
|
property real maxWidth: 240
|
||||||
|
|
||||||
implicitWidth: Math.min(maxWidth, Math.max(70, label.implicitWidth + 4))
|
implicitWidth: Math.min(maxWidth,
|
||||||
|
Math.max(70, label.implicitWidth + 4 + (groupTag.visible ? groupTag.width + Theme.padS : 0)))
|
||||||
implicitHeight: 20
|
implicitHeight: 20
|
||||||
|
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
@@ -40,24 +71,23 @@ Item {
|
|||||||
Text {
|
Text {
|
||||||
id: label
|
id: label
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: parent.width
|
width: parent.width - (groupTag.visible ? groupTag.width + Theme.padS : 0)
|
||||||
text: root.displayedTitle
|
text: root.displayedTitle
|
||||||
color: root.mine ? Theme.subtext : Theme.muted
|
color: root.mine ? Theme.subtext : Theme.muted
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font.pixelSize: Theme.fsSmall
|
font.pixelSize: Theme.fsSmall
|
||||||
font.family: Theme.fontDisplay
|
font.family: Theme.fontDisplay
|
||||||
font.italic: true
|
|
||||||
font.weight: Font.DemiBold
|
font.weight: Font.DemiBold
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
||||||
// Crimson duplicate: visible only during the landing transition. The
|
// Accent duplicate: visible only during the landing transition. The
|
||||||
// small opposing offset gives the title Persona's rough print snap
|
// small opposing offset gives the title NieR's brief corruption flicker
|
||||||
// without leaving permanent motion in the bar.
|
// without leaving permanent motion in the bar.
|
||||||
Text {
|
Text {
|
||||||
id: ghost
|
id: ghost
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: parent.width
|
width: label.width
|
||||||
text: root.displayedTitle
|
text: root.displayedTitle
|
||||||
color: Theme.accent
|
color: Theme.accent
|
||||||
opacity: 0
|
opacity: 0
|
||||||
@@ -65,14 +95,43 @@ Item {
|
|||||||
font: label.font
|
font: label.font
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: groupTag
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
visible: root.groupLabel !== ""
|
||||||
|
text: root.groupLabel
|
||||||
|
color: Theme.muted
|
||||||
|
font.family: Theme.fontMono
|
||||||
|
font.pixelSize: Theme.fsMicro
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adopt the settled caption, and stamp it only when focus actually moved.
|
||||||
|
//
|
||||||
|
// The landing used to restart on any title change, which is not the same
|
||||||
|
// thing: plenty of windows rewrite their own title on a timer — a terminal
|
||||||
|
// running a task with a spinner or a percentage, a browser tab with a live
|
||||||
|
// clock — and each rewrite restarted seven overlapping animations totalling
|
||||||
|
// over half a second. At a title churning twice a second on a 240 Hz screen
|
||||||
|
// the bar never stopped animating, and repainting it that hard measured at
|
||||||
|
// roughly 18% of a CPU core with nothing else happening. Keying the stamp to
|
||||||
|
// window identity restores what the effect was described as doing.
|
||||||
function commitTitle(): void {
|
function commitTitle(): void {
|
||||||
if (root.displayedTitle === root.incomingTitle)
|
const focusMoved = root.toplevel !== root.landedToplevel;
|
||||||
return;
|
|
||||||
|
if (root.displayedTitle !== root.incomingTitle)
|
||||||
root.displayedTitle = root.incomingTitle;
|
root.displayedTitle = root.incomingTitle;
|
||||||
|
else if (!focusMoved)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (focusMoved) {
|
||||||
|
root.landedToplevel = root.toplevel;
|
||||||
titleLanding.restart();
|
titleLanding.restart();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Browser tabs, terminals and editors can update titles several times in a
|
// Browser tabs, terminals and editors can update titles several times in a
|
||||||
// frame. Keep the old caption steady until the stream settles instead of
|
// frame. Keep the old caption steady until the stream settles instead of
|
||||||
@@ -85,9 +144,19 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onIncomingTitleChanged: titleSettle.restart()
|
onIncomingTitleChanged: titleSettle.restart()
|
||||||
Component.onCompleted: displayedTitle = incomingTitle
|
|
||||||
|
|
||||||
// A quick crimson wipe under the title on focus change.
|
// Focus can move to a window whose caption happens to match the outgoing
|
||||||
|
// one, which changes no title and so would otherwise never land.
|
||||||
|
onToplevelChanged: titleSettle.restart()
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
displayedTitle = incomingTitle;
|
||||||
|
// Adopt the current window silently, so a config reload does not play a
|
||||||
|
// focus-change stamp for a focus that did not change.
|
||||||
|
landedToplevel = toplevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
// A quick accent wipe under the title on focus change.
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: wipe
|
id: wipe
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
@@ -112,7 +181,7 @@ Item {
|
|||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: label; property: "x"
|
target: label; property: "x"
|
||||||
from: -10; to: 0
|
from: -10; to: 0
|
||||||
duration: Theme.durBase; easing.type: Easing.OutBack
|
duration: Theme.durBase; easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: label; property: "opacity"
|
target: label; property: "opacity"
|
||||||
|
|||||||
+12
-25
@@ -27,29 +27,16 @@ PanelWindow {
|
|||||||
right: true
|
right: true
|
||||||
}
|
}
|
||||||
|
|
||||||
margins {
|
// Flush with the screen edge and drawn on nothing: the hull behind it is
|
||||||
top: Theme.barMargin
|
// painted by Frame, which is what joins the bar, the rail and the border
|
||||||
left: Theme.barMargin
|
// into one surface. Exclusive zones are Frame's job too, so every piece
|
||||||
right: Theme.barMargin
|
// of the hull is placed from the screen edge rather than from whichever
|
||||||
}
|
// piece the compositor happened to arrange first.
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
implicitHeight: Theme.barHeight
|
implicitHeight: Theme.barHeight
|
||||||
exclusiveZone: Theme.barHeight + Theme.barMargin
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
// Calm permanent chrome: one opaque slab with no texture or offset copy.
|
readonly property real edgeInset: Theme.padM
|
||||||
ChromeSurface {
|
|
||||||
id: slab
|
|
||||||
anchors.fill: parent
|
|
||||||
lean: Theme.skew
|
|
||||||
chop: Theme.cut
|
|
||||||
chopCorners: [1, 3]
|
|
||||||
padding: 0
|
|
||||||
active: true
|
|
||||||
slashWidth: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly property real edgeInset: Theme.barHeight * Theme.skew + Theme.padM
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------ left
|
// ------------------------------------------------------------------ left
|
||||||
Row {
|
Row {
|
||||||
@@ -108,18 +95,18 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// A hairline rule between modules, sheared to the house angle. This is what
|
// A hairline rule between modules. This is what divides the bar — gaps
|
||||||
// divides the bar now — gaps between cards are what made it look scattered.
|
// between cards are what made it look scattered.
|
||||||
component Divider: Item {
|
component Divider: Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
implicitWidth: Theme.padM * 2
|
implicitWidth: Theme.padM * 2
|
||||||
implicitHeight: Theme.barHeight
|
implicitHeight: Theme.barHeight
|
||||||
|
|
||||||
Skew {
|
Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 1
|
width: 1
|
||||||
height: 20
|
height: 16
|
||||||
color: Theme.alpha(Theme.outline, 0.9)
|
color: Theme.alpha(Theme.outline, 0.6)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+21
-10
@@ -5,7 +5,7 @@ import "root:/components"
|
|||||||
// Shared chrome for every bar module.
|
// Shared chrome for every bar module.
|
||||||
//
|
//
|
||||||
// The bar is one continuous slab, so by default a module draws no panel of its
|
// The bar is one continuous slab, so by default a module draws no panel of its
|
||||||
// own — it is content inside the bar's surface, and marks hover with a crimson
|
// own — it is content inside the bar's surface, and marks hover with an accent
|
||||||
// underline rather than by lighting up a card. That is what stops the bar from
|
// underline rather than by lighting up a card. That is what stops the bar from
|
||||||
// reading as a row of floating islands.
|
// reading as a row of floating islands.
|
||||||
//
|
//
|
||||||
@@ -34,12 +34,18 @@ Item {
|
|||||||
//
|
//
|
||||||
// The rule used to be drawn into the same box as the content, so anything
|
// The rule used to be drawn into the same box as the content, so anything
|
||||||
// taller than about 32px — the media pill's art, the metric meters — had a
|
// taller than about 32px — the media pill's art, the metric meters — had a
|
||||||
// crimson line struck through its bottom edge on hover. Reserving the band
|
// accent line struck through its bottom edge on hover. Reserving the band
|
||||||
// and centring content in what is left is what keeps the rule under the
|
// and centring content in what is left is what keeps the rule under the
|
||||||
// module instead of across it.
|
// module instead of across it.
|
||||||
|
// The band reserved the full rule plus its inset — 7px off a 40px module,
|
||||||
|
// all of it taken from the bottom — so every module's content was centred
|
||||||
|
// 3.5px above the slab's own centre and the whole bar read as top-heavy.
|
||||||
|
// The rule is pushed closer to the edge now and the band keeps only enough
|
||||||
|
// clearance to stop the tallest content (the media pill's 24px art) from
|
||||||
|
// touching it, so content sits within a pixel of the slab's centre line.
|
||||||
readonly property real ruleHeight: 2
|
readonly property real ruleHeight: 2
|
||||||
readonly property real ruleInset: 5
|
readonly property real ruleInset: 3
|
||||||
readonly property real ruleBand: root.standalone ? 0 : root.ruleHeight + root.ruleInset
|
readonly property real ruleBand: root.standalone ? 0 : 2
|
||||||
|
|
||||||
// Modules with a notion of progress (the player's track position) draw it in
|
// Modules with a notion of progress (the player's track position) draw it in
|
||||||
// the same band, so it can never be struck through the content. A module
|
// the same band, so it can never be struck through the content. A module
|
||||||
@@ -67,7 +73,7 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
active: root.standalone
|
active: root.standalone
|
||||||
|
|
||||||
sourceComponent: P5Panel {
|
sourceComponent: Panel {
|
||||||
lean: root.lean
|
lean: root.lean
|
||||||
leanLeft: root.leanLeft
|
leanLeft: root.leanLeft
|
||||||
chop: root.chop
|
chop: root.chop
|
||||||
@@ -96,7 +102,7 @@ Item {
|
|||||||
anchors.bottomMargin: root.ruleBand
|
anchors.bottomMargin: root.ruleBand
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover mark for in-bar modules: a crimson rule under the content, wiping
|
// Hover mark for in-bar modules: an accent rule under the content, wiping
|
||||||
// out from the leading edge. Sheared to match the one angle everything uses.
|
// out from the leading edge. Sheared to match the one angle everything uses.
|
||||||
Item {
|
Item {
|
||||||
visible: !root.standalone && root.interactive
|
visible: !root.standalone && root.interactive
|
||||||
@@ -109,15 +115,20 @@ Item {
|
|||||||
|
|
||||||
// Track progress, shown until the pointer arrives and the hover rule
|
// Track progress, shown until the pointer arrives and the hover rule
|
||||||
// takes the band over.
|
// takes the band over.
|
||||||
|
//
|
||||||
|
// Deliberately untweened. MPRIS position is polled once a second, and a
|
||||||
|
// 480 ms ease on a 1 Hz input meant this rule was mid-animation roughly
|
||||||
|
// half of every second — about 115 animated frames per second on a
|
||||||
|
// 240 Hz screen, each one rebuilding this Skew's Shape geometry through
|
||||||
|
// the curve renderer and re-rendering the pill's layer textures with it.
|
||||||
|
// Stepping once per second costs 1 frame instead of 115, matches the rate
|
||||||
|
// the underlying data actually arrives at, and makes a seek land exactly
|
||||||
|
// where it was dropped instead of gliding there.
|
||||||
Skew {
|
Skew {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width * Math.max(0, Math.min(1, root.progress))
|
width: parent.width * Math.max(0, Math.min(1, root.progress))
|
||||||
color: Theme.accent
|
color: Theme.accent
|
||||||
visible: root.progress >= 0 && !root.hovered && !root.active
|
visible: root.progress >= 0 && !root.hovered && !root.active
|
||||||
|
|
||||||
Behavior on width {
|
|
||||||
NumberAnimation { duration: 480; easing.type: Easing.OutQuad }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Skew {
|
Skew {
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ import Quickshell
|
|||||||
import "root:/config"
|
import "root:/config"
|
||||||
import "root:/components"
|
import "root:/components"
|
||||||
import "root:/popouts"
|
import "root:/popouts"
|
||||||
|
import "root:/services"
|
||||||
|
|
||||||
// Centre-stage clock. Hovering drops the calendar.
|
// Centre-stage clock. Hovering drops the calendar; clicking drops the
|
||||||
|
// dashboard, which carries the calendar too.
|
||||||
BarPill {
|
BarPill {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
@@ -20,7 +22,7 @@ BarPill {
|
|||||||
precision: SystemClock.Minutes
|
precision: SystemClock.Minutes
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: calendar.pinned = !calendar.pinned
|
onClicked: Actions.toggleDashboard()
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: layout
|
id: layout
|
||||||
@@ -36,7 +38,8 @@ BarPill {
|
|||||||
color: Theme.accent
|
color: Theme.accent
|
||||||
font.family: Theme.fontMono
|
font.family: Theme.fontMono
|
||||||
font.pixelSize: Theme.fsMicro
|
font.pixelSize: Theme.fsMicro
|
||||||
font.letterSpacing: 2.5
|
font.weight: Font.Bold
|
||||||
|
font.letterSpacing: 3
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,19 +53,52 @@ BarPill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Skew {
|
// A hairline between the date and the time.
|
||||||
|
Rectangle {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: 2
|
width: 1
|
||||||
height: 22
|
height: 18
|
||||||
color: Theme.alpha(Theme.accent, 0.6)
|
color: Theme.alpha(Theme.outline, 0.6)
|
||||||
|
}
|
||||||
|
|
||||||
|
// The display face's digits are not all the same width, so a clock sized to
|
||||||
|
// its own text changed width as the minutes rolled over — 11:11 is
|
||||||
|
// several px narrower than 08:48 — and shoved the rest of the bar
|
||||||
|
// around. Reserve the widest possible reading and centre inside it.
|
||||||
|
TextMetrics {
|
||||||
|
id: timeMetrics
|
||||||
|
text: "88:88"
|
||||||
|
font.family: Theme.fontDisplay
|
||||||
|
font.pixelSize: Theme.fsTitle
|
||||||
|
font.weight: Theme.weightDisplay
|
||||||
|
font.letterSpacing: 0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
// Archivo Black reserves descender room the time never uses — "12:04"
|
||||||
|
// is all cap height — so centring the line box left the digits sitting
|
||||||
|
// above everything beside them. Centre the ink instead.
|
||||||
|
// `tightBoundingRect` is measured from the baseline, so the ink's top
|
||||||
|
// inside the line box is `ascent + ink.y`.
|
||||||
|
readonly property real timeInkOffset: {
|
||||||
|
const ink = timeMetrics.tightBoundingRect;
|
||||||
|
if (ink.height <= 0) return 0;
|
||||||
|
const inkCentre = timeFont.ascent + ink.y + ink.height / 2;
|
||||||
|
return Math.round(timeMetrics.boundingRect.height / 2 - inkCentre);
|
||||||
|
}
|
||||||
|
|
||||||
|
FontMetrics {
|
||||||
|
id: timeFont
|
||||||
|
font: timeMetrics.font
|
||||||
}
|
}
|
||||||
|
|
||||||
SplitText {
|
SplitText {
|
||||||
id: timeText
|
id: timeText
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.verticalCenterOffset: layout.timeInkOffset
|
||||||
|
width: timeMetrics.advanceWidth
|
||||||
text: Qt.formatDateTime(clock.date, "HH:mm")
|
text: Qt.formatDateTime(clock.date, "HH:mm")
|
||||||
pixelSize: Theme.fsTitle
|
pixelSize: Theme.fsTitle
|
||||||
split: 1.4
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -81,7 +117,8 @@ BarPill {
|
|||||||
CalendarPopout {
|
CalendarPopout {
|
||||||
id: calendar
|
id: calendar
|
||||||
anchorItem: root
|
anchorItem: root
|
||||||
triggerHovered: root.hovered
|
// Not while the dashboard is down: it already shows the month.
|
||||||
|
triggerHovered: root.hovered && !Actions.dashboardOpen
|
||||||
clockDate: clock.date
|
clockDate: clock.date
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Shapes
|
||||||
|
import Quickshell
|
||||||
|
import Quickshell.Wayland
|
||||||
|
import "root:/config"
|
||||||
|
|
||||||
|
// The hull: one surface for the bar, the rail and the thin band down the left
|
||||||
|
// and along the bottom, with the desktop as a rounded opening cut out of it.
|
||||||
|
// The idea is caelestia's screen border; the reading is the wallpaper's — you
|
||||||
|
// are inside the ship, and the windows sit in the porthole.
|
||||||
|
//
|
||||||
|
// The hull lives on the top layer, over every window, and its opening is
|
||||||
|
// transparent with no input region, so it covers nothing inside the opening
|
||||||
|
// and catches no clicks. Being above the windows is the point: a workspace
|
||||||
|
// switch slides windows *behind* the frame, the way things pass behind the
|
||||||
|
// rim of a porthole, instead of drawing over the bar. A fullscreen window
|
||||||
|
// still covers it, since Hyprland draws fullscreen above the top layer.
|
||||||
|
// hypr/lua/rules/layers.lua orders it under the bar and the rail.
|
||||||
|
//
|
||||||
|
// The bar and the rail draw no surface of their own and ignore exclusive
|
||||||
|
// zones, so every piece is placed from the screen edge. The four zones are
|
||||||
|
// reserved here instead, by windows that draw nothing — that way the usable
|
||||||
|
// area is exactly the opening, whichever surface the compositor arranges
|
||||||
|
// first.
|
||||||
|
Scope {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property var modelData
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
id: hull
|
||||||
|
|
||||||
|
screen: root.modelData
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Top
|
||||||
|
WlrLayershell.namespace: "takemi-frame"
|
||||||
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
top: true
|
||||||
|
bottom: true
|
||||||
|
left: true
|
||||||
|
right: true
|
||||||
|
}
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
mask: Region {}
|
||||||
|
|
||||||
|
// The opening, in window coordinates.
|
||||||
|
readonly property real x0: Theme.frame
|
||||||
|
readonly property real y0: Theme.barHeight
|
||||||
|
readonly property real x1: width - Theme.railWidth
|
||||||
|
readonly property real y1: height - Theme.frame
|
||||||
|
readonly property real r: Theme.frameRadius
|
||||||
|
|
||||||
|
readonly property string opening: {
|
||||||
|
const x0 = hull.x0, y0 = hull.y0, x1 = hull.x1, y1 = hull.y1, r = hull.r;
|
||||||
|
return `M ${x0 + r} ${y0} H ${x1 - r} A ${r} ${r} 0 0 1 ${x1} ${y0 + r}`
|
||||||
|
+ ` V ${y1 - r} A ${r} ${r} 0 0 1 ${x1 - r} ${y1}`
|
||||||
|
+ ` H ${x0 + r} A ${r} ${r} 0 0 1 ${x0} ${y1 - r}`
|
||||||
|
+ ` V ${y0 + r} A ${r} ${r} 0 0 1 ${x0 + r} ${y0} Z`;
|
||||||
|
}
|
||||||
|
|
||||||
|
Shape {
|
||||||
|
anchors.fill: parent
|
||||||
|
preferredRendererType: Shape.CurveRenderer
|
||||||
|
|
||||||
|
// The hull itself: the whole screen, minus the opening.
|
||||||
|
ShapePath {
|
||||||
|
fillColor: Theme.hull
|
||||||
|
fillRule: ShapePath.OddEvenFill
|
||||||
|
strokeColor: "transparent"
|
||||||
|
|
||||||
|
PathSvg {
|
||||||
|
path: `M 0 0 H ${hull.width} V ${hull.height} H 0 Z ` + hull.opening
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The rim — a hairline round the opening, the lit edge of the
|
||||||
|
// porthole in the wallpaper.
|
||||||
|
ShapePath {
|
||||||
|
fillColor: "transparent"
|
||||||
|
strokeColor: Theme.rim
|
||||||
|
strokeWidth: 1
|
||||||
|
|
||||||
|
PathSvg {
|
||||||
|
path: hull.opening
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ExclusionZone {
|
||||||
|
anchors.top: true
|
||||||
|
exclusiveZone: Theme.barHeight
|
||||||
|
}
|
||||||
|
|
||||||
|
ExclusionZone {
|
||||||
|
anchors.right: true
|
||||||
|
exclusiveZone: Theme.railWidth
|
||||||
|
}
|
||||||
|
|
||||||
|
ExclusionZone {
|
||||||
|
anchors.bottom: true
|
||||||
|
exclusiveZone: Theme.frame
|
||||||
|
}
|
||||||
|
|
||||||
|
ExclusionZone {
|
||||||
|
anchors.left: true
|
||||||
|
exclusiveZone: Theme.frame
|
||||||
|
}
|
||||||
|
|
||||||
|
component ExclusionZone: PanelWindow {
|
||||||
|
screen: root.modelData
|
||||||
|
WlrLayershell.layer: WlrLayer.Bottom
|
||||||
|
WlrLayershell.namespace: "takemi-frame-zone"
|
||||||
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
|
||||||
|
color: "transparent"
|
||||||
|
mask: Region {}
|
||||||
|
implicitWidth: 1
|
||||||
|
implicitHeight: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Shapes
|
import QtQuick.Shapes
|
||||||
|
import QtQuick.Window
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import Quickshell.Widgets
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
import "root:/components"
|
import "root:/components"
|
||||||
import "root:/services"
|
import "root:/services"
|
||||||
@@ -40,40 +42,28 @@ BarPill {
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
spacing: Theme.padS
|
spacing: Theme.padS
|
||||||
|
|
||||||
// Album art, chopped into the house shape.
|
// Album art, rounded, in a hairline frame.
|
||||||
Item {
|
ClippingRectangle {
|
||||||
id: artFrame
|
id: artFrame
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: 24
|
width: 24
|
||||||
height: 24
|
height: 24
|
||||||
|
radius: Theme.radiusS
|
||||||
Shape {
|
color: Theme.surface
|
||||||
id: artMask
|
border.width: 1
|
||||||
anchors.fill: parent
|
border.color: Theme.overlay
|
||||||
visible: false
|
|
||||||
layer.enabled: true
|
|
||||||
layer.smooth: true
|
|
||||||
preferredRendererType: Shape.CurveRenderer
|
|
||||||
ShapePath {
|
|
||||||
fillColor: "white"
|
|
||||||
strokeColor: "transparent"
|
|
||||||
PathPolyline {
|
|
||||||
path: Geom.chamfer(Geom.parallelogram(24, 24, 0.18), 5, [1, 3])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: art
|
id: art
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
anchors.margins: 1
|
||||||
source: Media.artUrl
|
source: Media.artUrl
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
cache: true
|
cache: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
layer.enabled: true
|
sourceSize.width: 48
|
||||||
layer.smooth: true
|
sourceSize.height: 48
|
||||||
layer.effect: MaskedArt { maskItem: artMask }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: the source app's glyph.
|
// Fallback: the source app's glyph.
|
||||||
@@ -108,7 +98,6 @@ BarPill {
|
|||||||
font.pixelSize: Theme.fsSmall
|
font.pixelSize: Theme.fsSmall
|
||||||
font.family: Theme.fontDisplay
|
font.family: Theme.fontDisplay
|
||||||
font.weight: Font.DemiBold
|
font.weight: Font.DemiBold
|
||||||
font.italic: true
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,37 +113,82 @@ BarPill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compact play-state equaliser. It moves only while audio is playing
|
// Signal meter: five thin rounded bars, NieR's audio readout rather than a
|
||||||
// and freezes into three quiet bars when paused.
|
// chunky equaliser. It moves only while audio is playing and settles
|
||||||
|
// into a row of dots when paused — the channel is open, there
|
||||||
|
// is just nothing on it.
|
||||||
|
//
|
||||||
|
// Sampled from a timer rather than tweened by an infinite
|
||||||
|
// NumberAnimation. DP-1 runs at 240 Hz, and a frame-synced animation
|
||||||
|
// here repainted the entire bar 240 times a second: this pill sits
|
||||||
|
// inside ancestors that use layer.enabled together with
|
||||||
|
// Shape.CurveRenderer, and the album art carries a MultiEffect pass, so
|
||||||
|
// every one of those frames re-rendered several layer textures. Measured
|
||||||
|
// on its own, this one animation cost about two thirds of a CPU core
|
||||||
|
// whenever anything was playing.
|
||||||
|
//
|
||||||
|
// The timer samples a sine, it does not step through arbitrary levels: a
|
||||||
|
// low tick rate only looks like the original if consecutive ticks stay
|
||||||
|
// near each other. Each bar keeps the eased breathing motion and the
|
||||||
|
// period it had before — the curve is just read 25 times a second
|
||||||
|
// instead of 240.
|
||||||
Row {
|
Row {
|
||||||
|
id: eq
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 2
|
spacing: 3
|
||||||
|
|
||||||
|
// Sampling interval — the one knob trading smoothness against cost.
|
||||||
|
// Frames are the whole expense: a full-bar repaint runs about 0.3% of
|
||||||
|
// a core (the bar spans 2544x40 on a 240 Hz output), so cost scales
|
||||||
|
// linearly with this rate. 16 ms holds 60 Hz, which is visually
|
||||||
|
// indistinguishable from the original frame-synced tween at a quarter
|
||||||
|
// of its ~75%.
|
||||||
|
readonly property int tickMs: 16
|
||||||
|
property int phase: 0
|
||||||
|
|
||||||
|
// Reproduces the original per-bar tween exactly, sampled instead of
|
||||||
|
// frame-synced. Each bar eased between two heights with its own pair
|
||||||
|
// of durations, so the three differed in both swing and period — the
|
||||||
|
// middle bar moved barely a pixel while the outer two ran in
|
||||||
|
// opposition. Giving all three the full swing, as a single symmetric
|
||||||
|
// sine would, is three times the motion and reads far busier than
|
||||||
|
// this meter is supposed to.
|
||||||
|
function level(i: int): real {
|
||||||
|
const lo = 2 + (i * 3) % 5;
|
||||||
|
const hi = 14 - (i * 4) % 7;
|
||||||
|
const d1 = 320 + i * 90; // ...and their durations
|
||||||
|
const d2 = 280 + i * 70;
|
||||||
|
|
||||||
|
const t = (eq.phase * eq.tickMs) % (d1 + d2);
|
||||||
|
// Easing.InOutSine, which is what both halves used.
|
||||||
|
const ease = x => (1 - Math.cos(Math.PI * x)) / 2;
|
||||||
|
|
||||||
|
return t < d1
|
||||||
|
? hi + (lo - hi) * ease(t / d1)
|
||||||
|
: lo + (hi - lo) * ease((t - d1) / d2);
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer {
|
||||||
|
interval: eq.tickMs
|
||||||
|
running: Media.playing && eq.visible && (eq.Window.window?.visible ?? true) && !GameMode.active
|
||||||
|
repeat: true
|
||||||
|
onTriggered: eq.phase++
|
||||||
|
// Restart the cycle from its trough, so playback always begins
|
||||||
|
// from a settled meter rather than mid-swing.
|
||||||
|
onRunningChanged: if (!running) eq.phase = 0
|
||||||
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: 3
|
model: 5
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
required property int index
|
required property int index
|
||||||
width: 3
|
width: 2
|
||||||
height: 6
|
radius: 1
|
||||||
|
height: Media.playing ? eq.level(index) : 2
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
color: Media.playing ? Theme.primary : Theme.muted
|
color: Media.playing ? Theme.primary : Theme.muted
|
||||||
|
|
||||||
SequentialAnimation on height {
|
|
||||||
running: Media.playing
|
|
||||||
loops: Animation.Infinite
|
|
||||||
NumberAnimation {
|
|
||||||
to: 4 + (index * 5) % 13
|
|
||||||
duration: 320 + index * 90
|
|
||||||
easing.type: Easing.InOutSine
|
|
||||||
}
|
|
||||||
NumberAnimation {
|
|
||||||
to: 14 - (index * 4) % 9
|
|
||||||
duration: 280 + index * 70
|
|
||||||
easing.type: Easing.InOutSine
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation { duration: Theme.durBase }
|
ColorAnimation { duration: Theme.durBase }
|
||||||
}
|
}
|
||||||
@@ -170,11 +204,16 @@ BarPill {
|
|||||||
function onTrackChanged() { titleGlitch.restart(); }
|
function onTrackChanged() { titleGlitch.restart(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A new track resolves in, the way NieR text does: a brief dip and back.
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
id: titleGlitch
|
id: titleGlitch
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: artFrame; property: "rotation"
|
target: meta; property: "opacity"
|
||||||
from: -8; to: 0; duration: Theme.durSlow; easing.type: Easing.OutBack
|
to: 0.25; duration: 60
|
||||||
|
}
|
||||||
|
NumberAnimation {
|
||||||
|
target: meta; property: "opacity"
|
||||||
|
to: 1; duration: Theme.durSlow; easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,72 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import Quickshell
|
|
||||||
import "root:/config"
|
|
||||||
import "root:/components"
|
|
||||||
import "root:/services"
|
|
||||||
import "root:/popouts"
|
|
||||||
|
|
||||||
// Notification bell with an unread badge. Click opens the history, right click
|
|
||||||
// toggles do-not-disturb.
|
|
||||||
BarPill {
|
|
||||||
id: root
|
|
||||||
|
|
||||||
required property var screenRef
|
|
||||||
|
|
||||||
accent: Notifs.dnd ? Theme.muted : Theme.primary
|
|
||||||
padding: Theme.padS
|
|
||||||
implicitWidth: Theme.barHeight - 4 + contentPad
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
popout.pinned = !popout.pinned;
|
|
||||||
Notifs.markRead();
|
|
||||||
}
|
|
||||||
onRightClicked: Notifs.toggleDnd()
|
|
||||||
|
|
||||||
Icon {
|
|
||||||
id: bell
|
|
||||||
anchors.centerIn: parent
|
|
||||||
text: Notifs.icon
|
|
||||||
font.pixelSize: Theme.fsLarge
|
|
||||||
color: {
|
|
||||||
if (Notifs.dnd) return Theme.muted;
|
|
||||||
if (Notifs.hasUnread) return Theme.accent;
|
|
||||||
return root.hovered ? Theme.glow : Theme.primary;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unread badge, chopped like everything else.
|
|
||||||
Skew {
|
|
||||||
visible: Notifs.unread > 0 && !Notifs.dnd
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.rightMargin: 2
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.topMargin: 4
|
|
||||||
width: Math.max(12, badge.implicitWidth + 5)
|
|
||||||
height: 12
|
|
||||||
color: Theme.accent
|
|
||||||
|
|
||||||
// The badge count stays upright. It used to inherit the shear from the
|
|
||||||
// transform on the block below, which at 8px left the digits smeared.
|
|
||||||
Text {
|
|
||||||
id: badge
|
|
||||||
anchors.centerIn: parent
|
|
||||||
text: Notifs.unread > 9 ? "9+" : Notifs.unread
|
|
||||||
color: Theme.text
|
|
||||||
font.family: Theme.fontMono
|
|
||||||
font.pixelSize: 8
|
|
||||||
font.weight: Font.Bold
|
|
||||||
renderType: Text.NativeRendering
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: Notifs
|
|
||||||
function onPopupRequested() { bell.bump(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
NotifPopout {
|
|
||||||
id: popout
|
|
||||||
anchorItem: root
|
|
||||||
triggerHovered: root.hovered
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import Quickshell
|
|
||||||
import "root:/config"
|
|
||||||
import "root:/components"
|
|
||||||
import "root:/services"
|
|
||||||
|
|
||||||
// Far right. Opens the full-screen power menu.
|
|
||||||
BarPill {
|
|
||||||
id: root
|
|
||||||
|
|
||||||
required property var screenRef
|
|
||||||
|
|
||||||
accent: Theme.accent
|
|
||||||
slash: true
|
|
||||||
padding: Theme.padS
|
|
||||||
active: Actions.powerMenuOpen
|
|
||||||
implicitWidth: Theme.barHeight - 4 + contentPad
|
|
||||||
|
|
||||||
onClicked: Actions.togglePowerMenu()
|
|
||||||
|
|
||||||
Icon {
|
|
||||||
id: glyph
|
|
||||||
anchors.centerIn: parent
|
|
||||||
text: ""
|
|
||||||
font.pixelSize: Theme.fsLarge
|
|
||||||
color: root.hovered || Actions.powerMenuOpen ? Theme.accent : Theme.subtext
|
|
||||||
}
|
|
||||||
|
|
||||||
// A crimson halo that swells under the pointer.
|
|
||||||
Rectangle {
|
|
||||||
anchors.centerIn: glyph
|
|
||||||
z: -1
|
|
||||||
width: root.hovered ? 26 : 0
|
|
||||||
height: width
|
|
||||||
radius: width / 2
|
|
||||||
color: Theme.alpha(Theme.accent, 0.18)
|
|
||||||
|
|
||||||
Behavior on width {
|
|
||||||
NumberAnimation { duration: Theme.durBase; easing.type: Easing.OutBack }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+43
-33
@@ -30,30 +30,14 @@ PanelWindow {
|
|||||||
right: true
|
right: true
|
||||||
}
|
}
|
||||||
|
|
||||||
margins {
|
// Hangs from the underside of the bar, flush with the screen edge. Like
|
||||||
top: Theme.barHeight + Theme.barMargin * 2
|
// the bar it draws no surface of its own; see Frame.
|
||||||
bottom: Theme.barMargin
|
margins.top: Theme.barHeight
|
||||||
right: Theme.barMargin
|
exclusionMode: ExclusionMode.Ignore
|
||||||
}
|
|
||||||
|
|
||||||
implicitWidth: Theme.railWidth
|
implicitWidth: Theme.railWidth
|
||||||
exclusiveZone: Theme.railWidth + Theme.barMargin
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
// The same calm permanent-chrome preset used by the top bar.
|
readonly property real edgeInset: Theme.padM
|
||||||
ChromeSurface {
|
|
||||||
id: slab
|
|
||||||
anchors.fill: parent
|
|
||||||
vertical: true
|
|
||||||
lean: Theme.skew
|
|
||||||
chop: Theme.cut
|
|
||||||
chopCorners: [1, 3]
|
|
||||||
padding: 0
|
|
||||||
active: true
|
|
||||||
slashWidth: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly property real edgeInset: Theme.railWidth * Theme.skew + Theme.padM
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------- top
|
// ------------------------------------------------------------------- top
|
||||||
Column {
|
Column {
|
||||||
@@ -63,6 +47,19 @@ PanelWindow {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
|
// Something is recording or watching. First on the rail and in the
|
||||||
|
// light, because it is the one thing here you did not ask to see.
|
||||||
|
RailIcon {
|
||||||
|
id: privacyIcon
|
||||||
|
visible: Privacy.active
|
||||||
|
icon: Privacy.screen ? "" : (Privacy.camera ? "" : "")
|
||||||
|
label: "In use"
|
||||||
|
statusText: Privacy.detail
|
||||||
|
live: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Divider { visible: Privacy.active }
|
||||||
|
|
||||||
RailIcon {
|
RailIcon {
|
||||||
id: netIcon
|
id: netIcon
|
||||||
icon: Net.icon
|
icon: Net.icon
|
||||||
@@ -89,11 +86,12 @@ PanelWindow {
|
|||||||
id: volIcon
|
id: volIcon
|
||||||
icon: Audio.icon
|
icon: Audio.icon
|
||||||
readout: Audio.muted ? "" : Audio.volumePercent + "%"
|
readout: Audio.muted ? "" : Audio.volumePercent + "%"
|
||||||
|
reserveReadout: true
|
||||||
label: "Volume"
|
label: "Volume"
|
||||||
statusText: Audio.muted ? "Muted" : Audio.volumePercent + "% · " + Audio.sinkName
|
statusText: Audio.muted ? "Muted" : Audio.volumePercent + "% · " + Audio.sinkName
|
||||||
hint: "Scroll to adjust"
|
hint: "Scroll to adjust"
|
||||||
suppressTooltip: audioPopout.detailActive
|
suppressTooltip: audioPopout.detailActive
|
||||||
alert: Audio.muted
|
dim: Audio.muted
|
||||||
onClicked: audioPopout.togglePinned()
|
onClicked: audioPopout.togglePinned()
|
||||||
onScrolled: delta => Audio.changeVolume(delta > 0 ? 0.05 : -0.05)
|
onScrolled: delta => Audio.changeVolume(delta > 0 ? 0.05 : -0.05)
|
||||||
}
|
}
|
||||||
@@ -105,7 +103,7 @@ PanelWindow {
|
|||||||
statusText: Audio.micMuted ? "Muted" : Audio.micPercent + "% · " + Audio.sourceName
|
statusText: Audio.micMuted ? "Muted" : Audio.micPercent + "% · " + Audio.sourceName
|
||||||
hint: "Scroll to adjust"
|
hint: "Scroll to adjust"
|
||||||
suppressTooltip: audioPopout.detailActive
|
suppressTooltip: audioPopout.detailActive
|
||||||
alert: Audio.micMuted
|
dim: Audio.micMuted
|
||||||
onClicked: audioPopout.togglePinned()
|
onClicked: audioPopout.togglePinned()
|
||||||
onScrolled: delta => Audio.setMicVolume(Audio.micVolume + (delta > 0 ? 0.05 : -0.05))
|
onScrolled: delta => Audio.setMicVolume(Audio.micVolume + (delta > 0 ? 0.05 : -0.05))
|
||||||
}
|
}
|
||||||
@@ -131,8 +129,8 @@ PanelWindow {
|
|||||||
label: "Battery"
|
label: "Battery"
|
||||||
statusText: Math.round(Battery.percent) + "% · " + Battery.timeLabel
|
statusText: Math.round(Battery.percent) + "% · " + Battery.timeLabel
|
||||||
suppressTooltip: battPopout.detailActive
|
suppressTooltip: battPopout.detailActive
|
||||||
alert: Battery.critical
|
alarm: Battery.critical
|
||||||
pulsing: Battery.critical
|
pulsing: Battery.critical && !GameMode.active
|
||||||
onClicked: battPopout.togglePinned()
|
onClicked: battPopout.togglePinned()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,6 +150,19 @@ PanelWindow {
|
|||||||
|
|
||||||
Divider { visible: tray.visible }
|
Divider { visible: tray.visible }
|
||||||
|
|
||||||
|
// Only there while the idle chain is held off by hand, so it is
|
||||||
|
// obvious why the screen never locked.
|
||||||
|
RailIcon {
|
||||||
|
id: awakeIcon
|
||||||
|
visible: Idle.stayAwake
|
||||||
|
icon: ""
|
||||||
|
label: "Stay awake"
|
||||||
|
statusText: "Screen will not dim or lock"
|
||||||
|
hint: "Click to allow sleep"
|
||||||
|
live: true
|
||||||
|
onClicked: Idle.toggleStayAwake()
|
||||||
|
}
|
||||||
|
|
||||||
RailIcon {
|
RailIcon {
|
||||||
id: bellIcon
|
id: bellIcon
|
||||||
icon: Notifs.icon
|
icon: Notifs.icon
|
||||||
@@ -162,8 +173,9 @@ PanelWindow {
|
|||||||
readout: Notifs.unread > 0
|
readout: Notifs.unread > 0
|
||||||
? (Notifs.unread > 9 ? "9+" : String(Notifs.unread))
|
? (Notifs.unread > 9 ? "9+" : String(Notifs.unread))
|
||||||
: ""
|
: ""
|
||||||
|
reserveReadout: true
|
||||||
dim: Notifs.dnd
|
dim: Notifs.dnd
|
||||||
alert: Notifs.hasUnread && !Notifs.dnd
|
live: Notifs.hasUnread && !Notifs.dnd
|
||||||
suppressTooltip: notifPopout.detailActive
|
suppressTooltip: notifPopout.detailActive
|
||||||
onClicked: {
|
onClicked: {
|
||||||
notifPopout.togglePinned();
|
notifPopout.togglePinned();
|
||||||
@@ -176,23 +188,21 @@ PanelWindow {
|
|||||||
icon: ""
|
icon: ""
|
||||||
label: "Power"
|
label: "Power"
|
||||||
statusText: "Session actions"
|
statusText: "Session actions"
|
||||||
alert: Actions.powerMenuOpen
|
live: Actions.powerMenuOpen
|
||||||
onClicked: Actions.togglePowerMenu()
|
onClicked: Actions.togglePowerMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The rail's counterpart to the bar's divider: a horizontal hairline,
|
// The rail's counterpart to the bar's divider: a horizontal hairline.
|
||||||
// sheared to the same angle the rail's own edges lean at.
|
|
||||||
component Divider: Item {
|
component Divider: Item {
|
||||||
implicitWidth: Theme.railWidth
|
implicitWidth: Theme.railWidth
|
||||||
implicitHeight: Theme.padM + 4
|
implicitHeight: Theme.padM + 4
|
||||||
|
|
||||||
Skew {
|
Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 22
|
width: 16
|
||||||
height: 1
|
height: 1
|
||||||
vertical: true
|
color: Theme.alpha(Theme.outline, 0.6)
|
||||||
color: Theme.alpha(Theme.outline, 0.9)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+72
-27
@@ -3,10 +3,10 @@ import "root:/config"
|
|||||||
import "root:/components"
|
import "root:/components"
|
||||||
|
|
||||||
// One slot on the right-hand rail: a glyph with an optional micro readout
|
// One slot on the right-hand rail: a glyph with an optional micro readout
|
||||||
// stacked beneath it, and a crimson bar that wipes down the leading edge on
|
// stacked beneath it, and an accent bar that wipes down the leading edge on
|
||||||
// hover. The rail is only 48px wide, so unlike StatusIcon the readout sits
|
// hover. The rail is only 48px wide, so the readout sits under the glyph
|
||||||
// under the glyph rather than beside it, and anything longer than a percentage
|
// rather than beside it, and anything longer than a percentage belongs in the
|
||||||
// belongs in the popout instead.
|
// popout instead.
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
@@ -17,10 +17,25 @@ Item {
|
|||||||
property string hint: ""
|
property string hint: ""
|
||||||
property bool suppressTooltip: false
|
property bool suppressTooltip: false
|
||||||
property color tint: Theme.primary
|
property color tint: Theme.primary
|
||||||
property bool alert: false
|
|
||||||
|
// Three states, three meanings. `live` wants attention but nothing is wrong
|
||||||
|
// (unread notifications, an open power menu): accent. `alarm` is wrong or
|
||||||
|
// critical (a dying battery): alarm. `dim` is off by choice (muted, radio
|
||||||
|
// off, do-not-disturb): grey. These used to be one `alert` flag painted in
|
||||||
|
// the accent, which made a muted speaker look like the most active thing
|
||||||
|
// on the rail.
|
||||||
|
property bool live: false
|
||||||
|
property bool alarm: false
|
||||||
property bool dim: false
|
property bool dim: false
|
||||||
property bool pulsing: false
|
property bool pulsing: false
|
||||||
|
|
||||||
|
// Hold the readout line open even while there is nothing to put in it.
|
||||||
|
// Volume drops its percentage when muted and the bell only carries a count
|
||||||
|
// when something is unread, so without this the slot collapsed from 42px to
|
||||||
|
// 32px and every icon below it jumped a third of its own height.
|
||||||
|
property bool reserveReadout: false
|
||||||
|
|
||||||
|
readonly property bool hasReadout: root.readout !== "" || root.reserveReadout
|
||||||
readonly property bool hovered: hover.hovered
|
readonly property bool hovered: hover.hovered
|
||||||
|
|
||||||
// Clearance between the wipe and the rail's left edge, chosen so the bar
|
// Clearance between the wipe and the rail's left edge, chosen so the bar
|
||||||
@@ -31,21 +46,48 @@ Item {
|
|||||||
signal scrolled(real delta)
|
signal scrolled(real delta)
|
||||||
|
|
||||||
implicitWidth: Theme.railWidth
|
implicitWidth: Theme.railWidth
|
||||||
implicitHeight: root.readout !== "" ? 42 : 32
|
implicitHeight: root.hasReadout ? root.glyphBand + readoutLine.height + 1 : root.glyphBand
|
||||||
|
|
||||||
Column {
|
// The glyph always sits centred in a fixed band at the top of the slot and
|
||||||
|
// the readout hangs below it, rather than the pair being centred together.
|
||||||
|
// Centring the pair meant the icon slid up and down by a few px whenever its
|
||||||
|
// number appeared or vanished — the icons stopped lining up with each other
|
||||||
|
// exactly when something was changing and you were looking at them.
|
||||||
|
readonly property real glyphBand: 32
|
||||||
|
|
||||||
|
// Nerd Font's status glyphs are not all centred inside their own advance —
|
||||||
|
// the muted-speaker and muted-mic marks carry their cross out to the right,
|
||||||
|
// so centring the advance box left them visibly off-axis next to the wifi
|
||||||
|
// and bluetooth glyphs. Centre the ink instead, capped so a glyph with an
|
||||||
|
// odd bounding box cannot slide far off the rail's axis.
|
||||||
|
readonly property real opticalShift: {
|
||||||
|
const ink = glyphMetrics.tightBoundingRect;
|
||||||
|
if (ink.width <= 0) return 0;
|
||||||
|
const off = glyphMetrics.advanceWidth / 2 - (ink.x + ink.width / 2);
|
||||||
|
return Math.max(-4, Math.min(4, off));
|
||||||
|
}
|
||||||
|
|
||||||
|
TextMetrics {
|
||||||
|
id: glyphMetrics
|
||||||
|
text: root.icon
|
||||||
|
font.family: Theme.fontIcon
|
||||||
|
font.pixelSize: Theme.fsRailIcon
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
id: layout
|
id: layout
|
||||||
anchors.centerIn: parent
|
anchors.fill: parent
|
||||||
spacing: 1
|
|
||||||
|
|
||||||
Icon {
|
Icon {
|
||||||
id: glyph
|
id: glyph
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
x: (root.width - width) / 2 + root.opticalShift
|
||||||
|
y: (root.glyphBand - height) / 2
|
||||||
text: root.icon
|
text: root.icon
|
||||||
pulsing: root.pulsing
|
pulsing: root.pulsing
|
||||||
font.pixelSize: Theme.fsLarge
|
font.pixelSize: Theme.fsRailIcon
|
||||||
color: {
|
color: {
|
||||||
if (root.alert) return Theme.accent;
|
if (root.alarm) return Theme.alarm;
|
||||||
|
if (root.live) return Theme.accent;
|
||||||
if (root.dim) return Theme.muted;
|
if (root.dim) return Theme.muted;
|
||||||
if (root.hovered) return Theme.glow;
|
if (root.hovered) return Theme.glow;
|
||||||
return root.tint;
|
return root.tint;
|
||||||
@@ -57,10 +99,17 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
id: readoutLine
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: root.glyphBand + 1
|
||||||
visible: root.readout !== ""
|
visible: root.readout !== ""
|
||||||
text: root.readout
|
text: root.readout
|
||||||
color: root.dim ? Theme.muted : Theme.subtext
|
color: {
|
||||||
|
if (root.alarm) return Theme.alarm;
|
||||||
|
if (root.dim) return Theme.muted;
|
||||||
|
return Theme.subtext;
|
||||||
|
}
|
||||||
font.family: Theme.fontMono
|
font.family: Theme.fontMono
|
||||||
font.pixelSize: Theme.fsMicro
|
font.pixelSize: Theme.fsMicro
|
||||||
font.weight: Font.DemiBold
|
font.weight: Font.DemiBold
|
||||||
@@ -73,22 +122,21 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Leading-edge wipe. On the rail this runs vertically down the left side,
|
// Leading-edge wipe. On the rail this runs vertically down the left side,
|
||||||
// mirroring the slash P5Panel puts on horizontal modules.
|
// mirroring the accent bar Panel puts on horizontal modules.
|
||||||
//
|
//
|
||||||
// Held off the edge by `wipeInset`: the icon spans the rail's full width, so
|
// Held off the edge by `wipeInset`: the icon spans the rail's full width, so
|
||||||
// at x = 0 this landed exactly on the slab's own border, and the 1.08 hover
|
// at x = 0 this landed exactly on the slab's own border.
|
||||||
// scale then pushed it out past the silhouette onto the desktop. The inset
|
|
||||||
// has to survive that scale, which is why it is not simply 1 or 2.
|
|
||||||
//
|
//
|
||||||
// It is crimson rather than `tint` because it only ever appears on hover,
|
// It is the accent rather than `tint` because it only ever appears on
|
||||||
// and hover is crimson everywhere else in the shell (Theme.glow). Painting
|
// hover, and hover is the accent everywhere else in the shell (Theme.glow).
|
||||||
// it white put a white bar on the rail's edge for no stated reason.
|
// Painting it white put a white bar on the rail's edge for no stated reason.
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: root.wipeInset
|
anchors.leftMargin: root.wipeInset
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: 2
|
width: 2
|
||||||
height: root.hovered ? layout.implicitHeight : 0
|
radius: 1
|
||||||
|
height: root.hovered ? Theme.marker * 2 : 0
|
||||||
color: Theme.glow
|
color: Theme.glow
|
||||||
|
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
@@ -96,12 +144,9 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
scale: root.hovered ? 1.08 : 1.0
|
|
||||||
Behavior on scale {
|
|
||||||
NumberAnimation { duration: Theme.durBase; easing.type: Easing.OutBack }
|
|
||||||
}
|
|
||||||
|
|
||||||
onAlertChanged: if (alert) glyph.bump()
|
onAlarmChanged: if (alarm) glyph.bump()
|
||||||
|
onLiveChanged: if (live) glyph.bump()
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
id: hover
|
id: hover
|
||||||
@@ -117,7 +162,7 @@ Item {
|
|||||||
onWheel: event => root.scrolled(event.angleDelta.y)
|
onWheel: event => root.scrolled(event.angleDelta.y)
|
||||||
}
|
}
|
||||||
|
|
||||||
P5Tooltip {
|
Tooltip {
|
||||||
anchorItem: root
|
anchorItem: root
|
||||||
triggerHovered: root.hovered
|
triggerHovered: root.hovered
|
||||||
title: root.label
|
title: root.label
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ BarPill {
|
|||||||
label: "CPU"
|
label: "CPU"
|
||||||
value: Sys.cpuUsage
|
value: Sys.cpuUsage
|
||||||
readout: Math.round(Sys.cpuUsage) + "%"
|
readout: Math.round(Sys.cpuUsage) + "%"
|
||||||
|
widest: "100%"
|
||||||
}
|
}
|
||||||
|
|
||||||
Divider {}
|
Divider {}
|
||||||
@@ -37,6 +38,7 @@ BarPill {
|
|||||||
label: "MEM"
|
label: "MEM"
|
||||||
value: Sys.memPercent
|
value: Sys.memPercent
|
||||||
readout: Sys.memUsed.toFixed(1) + "G"
|
readout: Sys.memUsed.toFixed(1) + "G"
|
||||||
|
widest: "88.8G"
|
||||||
}
|
}
|
||||||
|
|
||||||
Divider { visible: Sys.gpuAvailable }
|
Divider { visible: Sys.gpuAvailable }
|
||||||
@@ -46,14 +48,23 @@ BarPill {
|
|||||||
label: "GPU"
|
label: "GPU"
|
||||||
value: Sys.gpuUsage
|
value: Sys.gpuUsage
|
||||||
readout: Math.round(Sys.gpuUsage) + "%"
|
readout: Math.round(Sys.gpuUsage) + "%"
|
||||||
|
widest: "100%"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
component Divider: Skew {
|
component Divider: Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: 1
|
implicitWidth: rule.width
|
||||||
height: 18
|
implicitHeight: 18
|
||||||
color: Theme.alpha(Theme.outline, 0.8)
|
|
||||||
|
// Sized to hold its own lean — see the note on the bar's divider.
|
||||||
|
Skew {
|
||||||
|
id: rule
|
||||||
|
anchors.centerIn: parent
|
||||||
|
width: parent.height * Theme.skew + 1
|
||||||
|
height: parent.height
|
||||||
|
color: Theme.alpha(Theme.outline, 0.5)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// A tiny fixed label makes every number self-describing without turning the
|
// A tiny fixed label makes every number self-describing without turning the
|
||||||
@@ -65,16 +76,37 @@ BarPill {
|
|||||||
property real value: 0
|
property real value: 0
|
||||||
property string readout: ""
|
property string readout: ""
|
||||||
|
|
||||||
|
// The widest reading this metric will ever show. The number column is
|
||||||
|
// sized from this rather than from the live text, because sizing to the
|
||||||
|
// live text is what made the whole right-hand group breathe in and out:
|
||||||
|
// "9%" and "100%" are ~14px apart in Archivo Black, so every tick of the
|
||||||
|
// CPU sampler nudged the metrics, the media pill and the clock sideways.
|
||||||
|
// Reserving the maximum costs a few px of blank and buys a bar that
|
||||||
|
// never moves.
|
||||||
|
property string widest: "100%"
|
||||||
|
|
||||||
|
readonly property real numberWidth: Math.max(gauge.width, metrics.advanceWidth)
|
||||||
|
readonly property real headWidth: labelText.implicitWidth + head.spacing + numberWidth
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
width: Math.max(headWidth, 44)
|
||||||
|
|
||||||
|
TextMetrics {
|
||||||
|
id: metrics
|
||||||
|
text: metric.widest
|
||||||
|
font: gauge.font
|
||||||
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
id: head
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.baseline: readoutText.baseline
|
id: labelText
|
||||||
|
anchors.baseline: gauge.baseline
|
||||||
text: metric.label
|
text: metric.label
|
||||||
color: Theme.muted
|
color: Theme.subtext
|
||||||
font.family: Theme.fontMono
|
font.family: Theme.fontMono
|
||||||
font.pixelSize: Theme.fsMicro
|
font.pixelSize: Theme.fsMicro
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
@@ -83,13 +115,12 @@ BarPill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: readoutText
|
id: gauge
|
||||||
text: metric.readout
|
text: metric.readout
|
||||||
color: Theme.heat(metric.value)
|
color: Theme.heat(metric.value)
|
||||||
font.family: Theme.fontDisplay
|
font.family: Theme.fontDisplay
|
||||||
font.pixelSize: Theme.fsBody
|
font.pixelSize: Theme.fsBody
|
||||||
font.weight: Theme.weightDisplay
|
font.weight: Theme.weightDisplay
|
||||||
font.italic: true
|
|
||||||
font.letterSpacing: 0.5
|
font.letterSpacing: 0.5
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
|
||||||
@@ -99,12 +130,15 @@ BarPill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ends flush with the reading above it instead of stopping short at a
|
||||||
|
// fixed 43px, so each metric reads as one block.
|
||||||
MeterBar {
|
MeterBar {
|
||||||
value: metric.value
|
value: metric.value
|
||||||
segments: 9
|
segments: 9
|
||||||
segmentWidth: 3
|
|
||||||
spacing: 2
|
spacing: 2
|
||||||
height: 5
|
height: 5
|
||||||
|
width: metric.width
|
||||||
|
segmentWidth: (width - 8 * spacing) / 9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user