refactor: move to hyprland
This commit is contained in:
24
home/common/optional/desktop/hyprland.nix
Normal file
24
home/common/optional/desktop/hyprland.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
scripts = import ./hyprland/scripts/default.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import ./hyprland/hyprland.nix { inherit pkgs scripts; })
|
||||
(import ./hyprland/wallpaper.nix { inherit pkgs scripts; })
|
||||
(import ./hyprland/hyprlock.nix { inherit pkgs scripts; })
|
||||
(import ./hyprland/hypridle.nix { inherit pkgs scripts; })
|
||||
];
|
||||
|
||||
home.file.".config/waybar/config.jsonc".source = ./hyprland/waybar/config.jsonc;
|
||||
home.file.".config/waybar/style.css".source = ./hyprland/waybar/style.css;
|
||||
|
||||
services.swayosd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.file.".config/swayosd/style.css".source = ./hyprland/swayosd/style.css;
|
||||
|
||||
home.file.".config/walker/config.toml".source = ./hyprland/walker/config.toml;
|
||||
}
|
||||
|
||||
27
home/common/optional/desktop/hyprland/hypridle.nix
Normal file
27
home/common/optional/desktop/hyprland/hypridle.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ pkgs, scripts, ... }:
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "${scripts.lock}";
|
||||
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session"; # lock before suspend.
|
||||
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||
inhibit_sleep = 3; # wait until screen is locked
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 60 * 5; # 5min
|
||||
on-timeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock screen when timeout has passed
|
||||
}
|
||||
{
|
||||
timeout = 60 * 5.5; # 5.5min
|
||||
on-timeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; # screen off when timeout has passed
|
||||
on-resume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on && brightnessctl -r"; # screen on when activity is detected
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
296
home/common/optional/desktop/hyprland/hyprland.nix
Normal file
296
home/common/optional/desktop/hyprland/hyprland.nix
Normal file
@@ -0,0 +1,296 @@
|
||||
{ pkgs, scripts, ... }:
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = false;
|
||||
|
||||
plugins = with pkgs; [
|
||||
(hyprlandPlugins.mkHyprlandPlugin {
|
||||
pluginName = "hyprselect";
|
||||
version = "0.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmanc3";
|
||||
repo = "hyprselect";
|
||||
rev = "f9651b5fd64c730ee164a6fee6a08d0398dcbe0a";
|
||||
hash = "sha256-tY8EdfsjlUOuQ9v/POqpyLlkRO5wqEVSE9UeHfXuaGk=";
|
||||
};
|
||||
|
||||
inherit (hyprland) nativeBuildInputs;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jmanc3/hyprselect";
|
||||
description = "A plugin that adds a completely useless desktop selection box to Hyprland";
|
||||
license = licenses.unlicense;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
settings = {
|
||||
"$terminal" = "${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.alacritty}/bin/alacritty";
|
||||
"$fileManager" = "${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.pcmanfm}/bin/pcmanfm";
|
||||
"$menu" = "${pkgs.walker}/bin/walker";
|
||||
|
||||
monitor = [
|
||||
"eDP-1,preferred,1721x1080,auto"
|
||||
"HDMI-A-1,preferred,1450x0,auto"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.hypridle}/bin/hypridle"
|
||||
"${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.waybar}/bin/waybar"
|
||||
"${pkgs.uwsm}/bin/uwsm-app -- ${pkgs.hyprpaper}/bin/hyprpaper"
|
||||
"sleep 2 && pw-play --volume=0 ~/Downloads/empty.wav"
|
||||
];
|
||||
|
||||
env = [
|
||||
"XCURSOR_SIZE,20"
|
||||
"XCURSOR_THEME,macOS"
|
||||
];
|
||||
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 20;
|
||||
|
||||
border_size = 2;
|
||||
|
||||
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false;
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false;
|
||||
|
||||
layout = "dwindle";
|
||||
};
|
||||
|
||||
decoration = {
|
||||
# rounding = 10
|
||||
# rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0;
|
||||
inactive_opacity = 1.0;
|
||||
|
||||
shadow = {
|
||||
enabled = true;
|
||||
range = 4;
|
||||
render_power = 3;
|
||||
color = "rgba(1a1a1aee)";
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 3;
|
||||
passes = 1;
|
||||
|
||||
vibrancy = 0.1696;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
animations = {
|
||||
enabled = true;
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
bezier = [
|
||||
"easeOutQuint,0.23,1,0.32,1"
|
||||
"easeInOutCubic,0.65,0.05,0.36,1"
|
||||
"linear,0,0,1,1"
|
||||
"almostLinear,0.5,0.5,0.75,1.0"
|
||||
"quick,0.15,0,0.1,1"
|
||||
|
||||
];
|
||||
|
||||
animation = [
|
||||
"global, 1, 10, default"
|
||||
"border, 1, 5.39, easeOutQuint"
|
||||
"windows, 1, 4.79, easeOutQuint"
|
||||
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
|
||||
"windowsOut, 1, 1.49, linear, popin 87%"
|
||||
"fadeIn, 1, 1.73, almostLinear"
|
||||
"fadeOut, 1, 1.46, almostLinear"
|
||||
"fade, 1, 3.03, quick"
|
||||
"layers, 1, 3.81, easeOutQuint"
|
||||
"layersIn, 1, 4, easeOutQuint, fade"
|
||||
"layersOut, 1, 1.5, linear, fade"
|
||||
"fadeLayersIn, 1, 1.79, almostLinear"
|
||||
"fadeLayersOut, 1, 1.39, almostLinear"
|
||||
"workspaces, 1, 1.94, almostLinear, fade"
|
||||
"workspacesIn, 1, 1.21, almostLinear, fade"
|
||||
"workspacesOut, 1, 1.94, almostLinear, fade"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
dwindle = {
|
||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true; # You probably want this
|
||||
};
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master = {
|
||||
new_status = "master";
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc = {
|
||||
force_default_wallpaper = 0; # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
};
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
input = {
|
||||
kb_layout = "us";
|
||||
# kb_variant =
|
||||
# kb_model =
|
||||
kb_options = "caps:swapescape";
|
||||
# kb_rules =
|
||||
|
||||
follow_mouse = 1;
|
||||
|
||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
||||
repeat_rate = 35;
|
||||
repeat_delay = 300;
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = true;
|
||||
tap-to-click = false;
|
||||
clickfinger_behavior = true;
|
||||
};
|
||||
};
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
# gestures = {
|
||||
# workspace_swipe = true;
|
||||
# };
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
"$mainMod" = "SUPER"; # Sets "Windows" key as main modifier
|
||||
bind = [
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
"$mainMod, return, exec, $terminal"
|
||||
"$mainMod, W, killactive,"
|
||||
# bind = $mainMod, M, exit,
|
||||
"$mainMod, E, exec, $fileManager"
|
||||
# "$mainMod, V, togglefloating,"
|
||||
"$mainMod, space, exec, $menu"
|
||||
"$mainMod, P, pseudo, # dwindle"
|
||||
"$mainMod, F, fullscreen"
|
||||
# bind = $mainMod, J, togglesplit, # dwindle
|
||||
|
||||
"$mainMod SHIFT, L, exec, ${scripts.lock}"
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
"$mainMod, H, movefocus, l"
|
||||
"$mainMod, L, movefocus, r"
|
||||
"$mainMod, K, movefocus, u"
|
||||
"$mainMod, J, movefocus, d"
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
"$mainMod, 1, workspace, 1"
|
||||
"$mainMod, 2, workspace, 2"
|
||||
"$mainMod, 3, workspace, 3"
|
||||
"$mainMod, 4, workspace, 4"
|
||||
"$mainMod, 5, workspace, 5"
|
||||
"$mainMod, 6, workspace, 6"
|
||||
"$mainMod, 7, workspace, 7"
|
||||
"$mainMod, 8, workspace, 8"
|
||||
"$mainMod, 9, workspace, 9"
|
||||
"$mainMod, 0, workspace, 10"
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
"$mainMod SHIFT, 1, movetoworkspace, 1"
|
||||
"$mainMod SHIFT, 2, movetoworkspace, 2"
|
||||
"$mainMod SHIFT, 3, movetoworkspace, 3"
|
||||
"$mainMod SHIFT, 4, movetoworkspace, 4"
|
||||
"$mainMod SHIFT, 5, movetoworkspace, 5"
|
||||
"$mainMod SHIFT, 6, movetoworkspace, 6"
|
||||
"$mainMod SHIFT, 7, movetoworkspace, 7"
|
||||
"$mainMod SHIFT, 8, movetoworkspace, 8"
|
||||
"$mainMod SHIFT, 9, movetoworkspace, 9"
|
||||
"$mainMod SHIFT, 0, movetoworkspace, 10"
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
"$mainMod, S, togglespecialworkspace, magic"
|
||||
"$mainMod SHIFT, S, movetoworkspace, special:magic"
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
"$mainMod, mouse_down, workspace, e+1"
|
||||
"$mainMod, mouse_up, workspace, e-1"
|
||||
];
|
||||
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = [
|
||||
"$mainMod, mouse:272, movewindow"
|
||||
"$mainMod, mouse:273, resizewindow"
|
||||
];
|
||||
|
||||
"$osdclient" = "swayosd-client --monitor \"$(hyprctl monitors -j | ${pkgs.jq}/bin/jq -r '.[] | select(.focused == true).name')\"";
|
||||
|
||||
bindel = [
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
# bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
# bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
",XF86AudioRaiseVolume, exec, $osdclient --output-volume=raise"
|
||||
",XF86AudioLowerVolume, exec, $osdclient --output-volume=lower"
|
||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
# bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
||||
# bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||
",XF86MonBrightnessUp, exec, $osdclient --brightness=raise"
|
||||
",XF86MonBrightnessDown, exec, $osdclient --brightness=lower"
|
||||
];
|
||||
|
||||
bindl = [
|
||||
# Requires playerctl
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", XF86AudioPause, exec, playerctl play-pause"
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
];
|
||||
|
||||
bindd = [
|
||||
"$mainMod, C, Universal copy, sendshortcut, CTRL, Insert,"
|
||||
"$mainMod, V, Universal paste, sendshortcut, SHIFT, Insert,"
|
||||
"$mainMod, X, Universal cut, sendshortcut, CTRL, X,"
|
||||
"$mainMod, A, Universal select all, sendshortcut, CTRL, A,"
|
||||
"$mainMod, T, Universal new tab, sendshortcut, CTRL, T,"
|
||||
];
|
||||
|
||||
windowrule = [
|
||||
# Just dash of opacity by default
|
||||
"opacity 0.97 0.9, class:.*"
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
"suppressevent maximize, class:.*"
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
|
||||
];
|
||||
|
||||
plugin = {
|
||||
hyprselect = {
|
||||
"col.main" = "rgba(ffffff25)";
|
||||
"col.border" = "rgba(ffffff88)";
|
||||
|
||||
fade_time_ms = 165.0;
|
||||
|
||||
border_size = 1.0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
58
home/common/optional/desktop/hyprland/hyprlock.nix
Normal file
58
home/common/optional/desktop/hyprland/hyprlock.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
"$color" = "rgba(26,27,38,1.0)";
|
||||
"$inner_color" = "rgba(26,27,38,0.8)";
|
||||
"$outer_color" = "rgba(205,214,244,1.0)";
|
||||
"$font_color" = "rgba(205,214,244,1.0)";
|
||||
"$check_color" = "rgba(68, 157, 171, 1.0)";
|
||||
|
||||
general = {
|
||||
ignore_empty_input = true;
|
||||
};
|
||||
|
||||
background = {
|
||||
monitor = "";
|
||||
color = "$color";
|
||||
path = "~/Downloads/wallpaper.png";
|
||||
blur_passes = 3;
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = false;
|
||||
};
|
||||
|
||||
input-field = {
|
||||
monitor = "";
|
||||
size = "650, 100";
|
||||
position = "0, 0";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
|
||||
inner_color = "$inner_color";
|
||||
outer_color = "$outer_color";
|
||||
outline_thickness = 4;
|
||||
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_color = "$font_color";
|
||||
|
||||
placeholder_text = "Enter Password";
|
||||
check_color = "$check_color";
|
||||
fail_text = "<i>$FAIL ($ATTEMPTS)</i>";
|
||||
|
||||
rounding = 0;
|
||||
shadow_passes = 0;
|
||||
fade_on_empty = false;
|
||||
};
|
||||
|
||||
auth = {
|
||||
"fingerprint:enabled" = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{ pkgs }:
|
||||
{
|
||||
lock =
|
||||
pkgs.writeShellScript "koonos-lock-screen" ''
|
||||
${pkgs.hyprlock}/bin/hyprlock
|
||||
'';
|
||||
}
|
||||
35
home/common/optional/desktop/hyprland/swayosd/style.css
Normal file
35
home/common/optional/desktop/hyprland/swayosd/style.css
Normal file
@@ -0,0 +1,35 @@
|
||||
@define-color background-color #1a1b26;
|
||||
@define-color border-color #33354a;
|
||||
@define-color label #a9b1d6;
|
||||
@define-color image #a9b1d6;
|
||||
@define-color progress #a9b1d6;
|
||||
|
||||
window {
|
||||
border-radius: 999;
|
||||
opacity: 0.97;
|
||||
border: 1px solid @border-color;
|
||||
padding: 0;
|
||||
|
||||
background-color: @background-color;
|
||||
}
|
||||
|
||||
label {
|
||||
font-family: 'JetBrainsMono Nerd Font';
|
||||
font-size: 11pt;
|
||||
|
||||
color: @label;
|
||||
}
|
||||
|
||||
image {
|
||||
color: @image;
|
||||
-gtk-icon-transform: scale(0.5);
|
||||
}
|
||||
|
||||
progressbar {
|
||||
border-radius: 999;
|
||||
}
|
||||
|
||||
progress {
|
||||
background-color: @progress;
|
||||
}
|
||||
|
||||
252
home/common/optional/desktop/hyprland/walker/config.toml
Normal file
252
home/common/optional/desktop/hyprland/walker/config.toml
Normal file
@@ -0,0 +1,252 @@
|
||||
app_launch_prefix = ""
|
||||
terminal_title_flag = ""
|
||||
locale = ""
|
||||
close_when_open = false
|
||||
theme = "default"
|
||||
monitor = ""
|
||||
hotreload_theme = false
|
||||
as_window = false
|
||||
timeout = 0
|
||||
disable_click_to_close = false
|
||||
force_keyboard_focus = false
|
||||
|
||||
[keys]
|
||||
accept_typeahead = ["tab"]
|
||||
trigger_labels = "lalt"
|
||||
next = ["down"]
|
||||
prev = ["up"]
|
||||
close = ["esc"]
|
||||
remove_from_history = ["shift backspace"]
|
||||
resume_query = ["ctrl r"]
|
||||
toggle_exact_search = ["ctrl m"]
|
||||
|
||||
[keys.activation_modifiers]
|
||||
keep_open = "shift"
|
||||
alternate = "alt"
|
||||
|
||||
[keys.ai]
|
||||
clear_session = ["ctrl x"]
|
||||
copy_last_response = ["ctrl c"]
|
||||
resume_session = ["ctrl r"]
|
||||
run_last_response = ["ctrl e"]
|
||||
|
||||
[events]
|
||||
on_activate = ""
|
||||
on_selection = ""
|
||||
on_exit = ""
|
||||
on_launch = ""
|
||||
on_query_change = ""
|
||||
|
||||
[list]
|
||||
dynamic_sub = true
|
||||
keyboard_scroll_style = "emacs"
|
||||
max_entries = 50
|
||||
show_initial_entries = true
|
||||
single_click = true
|
||||
visibility_threshold = 20
|
||||
placeholder = "No Results"
|
||||
|
||||
[search]
|
||||
argument_delimiter = "#"
|
||||
placeholder = "Search..."
|
||||
delay = 0
|
||||
resume_last_query = false
|
||||
|
||||
[activation_mode]
|
||||
labels = "jkl;asdf"
|
||||
|
||||
[builtins.applications]
|
||||
weight = 5
|
||||
name = "applications"
|
||||
placeholder = "Applications"
|
||||
prioritize_new = true
|
||||
hide_actions_with_empty_query = true
|
||||
context_aware = true
|
||||
refresh = true
|
||||
show_sub_when_single = true
|
||||
show_icon_when_single = true
|
||||
show_generic = true
|
||||
history = true
|
||||
|
||||
[builtins.applications.actions]
|
||||
enabled = true
|
||||
hide_category = false
|
||||
hide_without_query = true
|
||||
|
||||
[builtins.bookmarks]
|
||||
weight = 5
|
||||
placeholder = "Bookmarks"
|
||||
name = "bookmarks"
|
||||
icon = "bookmark"
|
||||
switcher_only = true
|
||||
|
||||
[[builtins.bookmarks.entries]]
|
||||
label = "Walker"
|
||||
url = "https://github.com/abenz1267/walker"
|
||||
keywords = ["walker", "github"]
|
||||
|
||||
[builtins.xdph_picker]
|
||||
hidden = true
|
||||
weight = 5
|
||||
placeholder = "Screen/Window Picker"
|
||||
show_sub_when_single = true
|
||||
name = "xdphpicker"
|
||||
switcher_only = true
|
||||
|
||||
[builtins.ai]
|
||||
weight = 5
|
||||
placeholder = "AI"
|
||||
name = "ai"
|
||||
icon = "help-browser"
|
||||
switcher_only = true
|
||||
show_sub_when_single = true
|
||||
|
||||
[[builtins.ai.anthropic.prompts]]
|
||||
model = "claude-3-7-sonnet-20250219"
|
||||
temperature = 1
|
||||
max_tokens = 1_000
|
||||
label = "General Assistant"
|
||||
prompt = "You are a helpful general assistant. Keep your answers short and precise."
|
||||
|
||||
[builtins.calc]
|
||||
require_number = true
|
||||
weight = 5
|
||||
name = "calc"
|
||||
icon = "accessories-calculator"
|
||||
placeholder = "Calculator"
|
||||
min_chars = 4
|
||||
|
||||
[builtins.windows]
|
||||
weight = 5
|
||||
icon = "view-restore"
|
||||
name = "windows"
|
||||
placeholder = "Windows"
|
||||
show_icon_when_single = true
|
||||
|
||||
[builtins.clipboard]
|
||||
always_put_new_on_top = true
|
||||
exec = "wl-copy"
|
||||
weight = 5
|
||||
name = "clipboard"
|
||||
avoid_line_breaks = true
|
||||
placeholder = "Clipboard"
|
||||
image_height = 300
|
||||
max_entries = 10
|
||||
switcher_only = true
|
||||
|
||||
[builtins.commands]
|
||||
weight = 5
|
||||
icon = "utilities-terminal"
|
||||
switcher_only = true
|
||||
name = "commands"
|
||||
placeholder = "Commands"
|
||||
|
||||
[builtins.custom_commands]
|
||||
weight = 5
|
||||
icon = "utilities-terminal"
|
||||
name = "custom_commands"
|
||||
placeholder = "Custom Commands"
|
||||
|
||||
[builtins.emojis]
|
||||
exec = "wl-copy"
|
||||
weight = 5
|
||||
name = "emojis"
|
||||
placeholder = "Emojis"
|
||||
switcher_only = true
|
||||
history = true
|
||||
typeahead = true
|
||||
show_unqualified = false
|
||||
|
||||
[builtins.symbols]
|
||||
after_copy = ""
|
||||
weight = 5
|
||||
name = "symbols"
|
||||
placeholder = "Symbols"
|
||||
switcher_only = true
|
||||
history = true
|
||||
typeahead = true
|
||||
|
||||
[builtins.finder]
|
||||
use_fd = false
|
||||
fd_flags = "--ignore-vcs --type file"
|
||||
weight = 5
|
||||
icon = "file"
|
||||
name = "finder"
|
||||
placeholder = "Finder"
|
||||
switcher_only = true
|
||||
ignore_gitignore = true
|
||||
refresh = true
|
||||
concurrency = 8
|
||||
show_icon_when_single = true
|
||||
preview_images = false
|
||||
|
||||
[builtins.runner]
|
||||
eager_loading = true
|
||||
weight = 5
|
||||
icon = "utilities-terminal"
|
||||
name = "runner"
|
||||
placeholder = "Runner"
|
||||
typeahead = true
|
||||
history = true
|
||||
generic_entry = false
|
||||
refresh = true
|
||||
use_fd = false
|
||||
|
||||
[builtins.ssh]
|
||||
weight = 5
|
||||
icon = "preferences-system-network"
|
||||
name = "ssh"
|
||||
placeholder = "SSH"
|
||||
switcher_only = true
|
||||
history = true
|
||||
refresh = true
|
||||
|
||||
[builtins.switcher]
|
||||
weight = 5
|
||||
name = "switcher"
|
||||
placeholder = "Switcher"
|
||||
prefix = "/"
|
||||
|
||||
[builtins.websearch]
|
||||
keep_selection = true
|
||||
weight = 5
|
||||
icon = "applications-internet"
|
||||
name = "websearch"
|
||||
placeholder = "Websearch"
|
||||
|
||||
[[builtins.websearch.entries]]
|
||||
name = "Google"
|
||||
url = "https://www.google.com/search?q=%TERM%"
|
||||
|
||||
[[builtins.websearch.entries]]
|
||||
name = "DuckDuckGo"
|
||||
url = "https://duckduckgo.com/?q=%TERM%"
|
||||
switcher_only = true
|
||||
|
||||
[[builtins.websearch.entries]]
|
||||
name = "Ecosia"
|
||||
url = "https://www.ecosia.org/search?q=%TERM%"
|
||||
switcher_only = true
|
||||
|
||||
[[builtins.websearch.entries]]
|
||||
name = "Yandex"
|
||||
url = "https://yandex.com/search/?text=%TERM%"
|
||||
switcher_only = true
|
||||
|
||||
[builtins.dmenu]
|
||||
hidden = true
|
||||
weight = 5
|
||||
name = "dmenu"
|
||||
placeholder = "Dmenu"
|
||||
switcher_only = true
|
||||
show_icon_when_single = true
|
||||
|
||||
[builtins.translation]
|
||||
delay = 1000
|
||||
weight = 5
|
||||
name = "translation"
|
||||
icon = "accessories-dictionary"
|
||||
placeholder = "Translation"
|
||||
switcher_only = true
|
||||
provider = "googlefree"
|
||||
|
||||
16
home/common/optional/desktop/hyprland/wallpaper.nix
Normal file
16
home/common/optional/desktop/hyprland/wallpaper.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
spash = false;
|
||||
|
||||
preload = ["~/Downloads/wallpaper.png"];
|
||||
|
||||
wallpaper = [
|
||||
"eDP-1,~/Downloads/wallpaper.png"
|
||||
"HDMI-A-1,~/Downloads/wallpaper.png"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
133
home/common/optional/desktop/hyprland/waybar/config.jsonc
Normal file
133
home/common/optional/desktop/hyprland/waybar/config.jsonc
Normal file
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"reload_style_on_change": true,
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"spacing": 0,
|
||||
"height": 26,
|
||||
"modules-left": ["custom/logo", "hyprland/workspaces"],
|
||||
"modules-center": ["clock", "custom/update", "custom/screenrecording-indicator"],
|
||||
"modules-right": [
|
||||
"group/tray-expander",
|
||||
"bluetooth",
|
||||
"network",
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"battery"
|
||||
],
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"4": "4",
|
||||
"5": "5",
|
||||
"6": "6",
|
||||
"7": "7",
|
||||
"8": "8",
|
||||
"9": "9",
|
||||
"10": "0",
|
||||
"active": ""
|
||||
},
|
||||
"persistent-workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
"5": []
|
||||
}
|
||||
},
|
||||
"custom/logo": {
|
||||
"format": " ",
|
||||
"on-click": "omarchy-menu",
|
||||
"on-click-right": "xdg-terminal-exec",
|
||||
"tooltip-format": ""
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"format": "",
|
||||
"on-click": "omarchy-launch-or-focus-tui btop",
|
||||
"on-click-right": "alacritty"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:L%A %I:%M}",
|
||||
"format-alt": "{:L%d %B W%V %Y}",
|
||||
"tooltip": false,
|
||||
"on-click-right": "omarchy-launch-floating-terminal-with-presentation omarchy-tz-select"
|
||||
},
|
||||
"network": {
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"format": "{icon}",
|
||||
"format-wifi": "{icon}",
|
||||
"format-ethernet": "",
|
||||
"format-disconnected": "",
|
||||
"tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
||||
"tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"interval": 3,
|
||||
"spacing": 1,
|
||||
"on-click": "omarchy-launch-wifi"
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-discharging": "{icon}",
|
||||
"format-charging": "{icon}",
|
||||
"format-plugged": "",
|
||||
"format-icons": {
|
||||
"charging": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"default": ["", "", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"format-full": "",
|
||||
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
||||
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
||||
"interval": 5,
|
||||
"on-click": "omarchy-menu power",
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
}
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "",
|
||||
"format-disabled": "",
|
||||
"format-connected": "",
|
||||
"format-no-controller": "",
|
||||
"tooltip-format": "Devices connected: {num_connections}",
|
||||
"on-click": "omarchy-launch-bluetooth"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}",
|
||||
"on-click": "omarchy-launch-or-focus-tui wiremix",
|
||||
"on-click-right": "pamixer -t",
|
||||
"tooltip-format": "Playing at {volume}%",
|
||||
"scroll-step": 5,
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
}
|
||||
},
|
||||
"group/tray-expander": {
|
||||
"orientation": "inherit",
|
||||
"drawer": {
|
||||
"transition-duration": 600,
|
||||
"children-class": "tray-group-item"
|
||||
},
|
||||
"modules": ["custom/expand-icon", "tray"]
|
||||
},
|
||||
"custom/expand-icon": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/screenrecording-indicator": {
|
||||
"on-click": "omarchy-cmd-screenrecord",
|
||||
"exec": "$OMARCHY_PATH/default/waybar/indicators/screen-recording.sh",
|
||||
"signal": 8,
|
||||
"return-type": "json"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 12,
|
||||
"spacing": 17
|
||||
}
|
||||
}
|
||||
84
home/common/optional/desktop/hyprland/waybar/style.css
Normal file
84
home/common/optional/desktop/hyprland/waybar/style.css
Normal file
@@ -0,0 +1,84 @@
|
||||
@define-color foreground #cdd6f4;
|
||||
@define-color background #1a1b26;
|
||||
|
||||
* {
|
||||
background-color: @background;
|
||||
color: @foreground;
|
||||
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
font-family: 'JetBrainsMono Nerd Font';
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
all: initial;
|
||||
padding: 0 6px;
|
||||
margin: 0 1.5px;
|
||||
min-width: 9px;
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#cpu,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#custom-omarchy,
|
||||
#custom-screenrecording-indicator,
|
||||
#custom-update {
|
||||
min-width: 12px;
|
||||
margin: 0 7.5px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
#bluetooth {
|
||||
margin-right: 17px;
|
||||
}
|
||||
|
||||
#network {
|
||||
margin-right: 13px;
|
||||
}
|
||||
|
||||
#custom-expand-icon {
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#custom-update {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin-left: 8.75px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#custom-screenrecording-indicator {
|
||||
min-width: 12px;
|
||||
margin-left: 8.75px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#custom-screenrecording-indicator.active {
|
||||
color: #a55555;
|
||||
}
|
||||
16
home/common/optional/desktop/plasma.nix
Normal file
16
home/common/optional/desktop/plasma.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ ... }: {
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
workspace = { wallpaper = "/home/max/bg.jpg"; };
|
||||
|
||||
kwin = { virtualDesktops = { number = 4; }; };
|
||||
|
||||
input = {
|
||||
keyboard = {
|
||||
options = [ "caps:escape" ];
|
||||
layouts = [ { layout = "us"; } { layout = "cn"; } ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user