Compare commits
6 Commits
188845f45d
...
9c610c086a
| Author | SHA1 | Date |
|---|---|---|
|
|
9c610c086a | 2 years ago |
|
|
566976b50a | 2 years ago |
|
|
3f5be7bb74 | 2 years ago |
|
|
cc0a856bd8 | 2 years ago |
|
|
c15ecb2f45 | 2 years ago |
|
|
10bddd9ec8 | 2 years ago |
@ -0,0 +1,32 @@ |
|||||||
|
{ config, pkgs, pkgs-unstable, lib, ... }: |
||||||
|
let |
||||||
|
|
||||||
|
tuigreet = "${pkgs-unstable.greetd.tuigreet}/bin/tuigreet"; |
||||||
|
hyprland-session = "${pkgs-unstable.hyprland}/share/wayland-sessions"; |
||||||
|
|
||||||
|
# https://github.com/bytemouse/config/blob/48d9be51a9666c9b62f4b8e84322b9d892ee0aea/modules/gnome.nix#L11 |
||||||
|
gnome-script = pkgs.writeShellScriptBin "gnome-script" '' |
||||||
|
export XDG_SESSION_TYPE=wayland |
||||||
|
${pkgs.dbus}/bin/dbus-run-session ${pkgs.gnome.gnome-session}/bin/gnome-session |
||||||
|
''; |
||||||
|
gnome-desktop = pkgs.makeDesktopItem { |
||||||
|
name = "gnome-desktop"; |
||||||
|
desktopName = "Gnome Desktop"; |
||||||
|
exec = "${gnome-script}/bin/gnome-script"; |
||||||
|
terminal = true; |
||||||
|
}; |
||||||
|
|
||||||
|
in { |
||||||
|
|
||||||
|
services.greetd = { |
||||||
|
enable = true; |
||||||
|
settings = { |
||||||
|
default_session = { |
||||||
|
command = "${tuigreet} --time --remember --greeting Hoi! --remember-session --sessions ${hyprland-session}:${gnome-desktop}/share/applications"; |
||||||
|
user = "greeter"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
environment.systemPackages = with pkgs-unstable; [ greetd.tuigreet ]; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,121 @@ |
|||||||
|
{ config, pkgs, pkgs-unstable, username, ... }: |
||||||
|
|
||||||
|
{ |
||||||
|
home.packages = with pkgs; [ |
||||||
|
dunst |
||||||
|
waybar |
||||||
|
swww |
||||||
|
rofi |
||||||
|
# (pkgs.waybar.overrideAttrs (oldAttrs: { |
||||||
|
# mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; |
||||||
|
# })) |
||||||
|
]; |
||||||
|
|
||||||
|
home.file.".config/hypr/hyprlock.conf".text = |
||||||
|
'' |
||||||
|
background { |
||||||
|
monitor = |
||||||
|
# path = screenshot |
||||||
|
color = rgba(152, 179, 166, 0.9) |
||||||
|
|
||||||
|
blur_passes = 1 |
||||||
|
blur_size = 7 |
||||||
|
noise = 0.0117 |
||||||
|
contrast = 0.8916 |
||||||
|
brightness = 0.8172 |
||||||
|
vibrancy = 0.1696 |
||||||
|
vibrancy_darkness = 0.0 |
||||||
|
} |
||||||
|
|
||||||
|
input-field { |
||||||
|
monitor = |
||||||
|
size = 200, 50 |
||||||
|
outline_thickness = 3 |
||||||
|
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 |
||||||
|
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 |
||||||
|
dots_center = true |
||||||
|
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding |
||||||
|
outer_color = rgb(151515) |
||||||
|
inner_color = rgb(200, 200, 200) |
||||||
|
font_color = rgb(10, 10, 10) |
||||||
|
fade_on_empty = true |
||||||
|
fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. |
||||||
|
placeholder_text = <i>Input Password...</i> # Text rendered in the input box when it's empty. |
||||||
|
hide_input = false |
||||||
|
rounding = -1 # -1 means complete rounding (circle/oval) |
||||||
|
check_color = rgb(204, 136, 34) |
||||||
|
fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color |
||||||
|
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty |
||||||
|
fail_transition = 300 # transition time in ms between normal outer_color and fail_color |
||||||
|
capslock_color = -1 |
||||||
|
numlock_color = -1 |
||||||
|
bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) |
||||||
|
invert_numlock = false # change color if numlock is off |
||||||
|
position = 0, 200 |
||||||
|
halign = center |
||||||
|
valign = center |
||||||
|
} |
||||||
|
|
||||||
|
label { |
||||||
|
monitor = |
||||||
|
text = cmd[update:1000] echo "$TIME" |
||||||
|
color = rgba(200, 200, 200, 1.0) |
||||||
|
font_size = 55 |
||||||
|
font_family = JetBrainsMono Nerd Font |
||||||
|
position = 0, 150 |
||||||
|
halign = center |
||||||
|
valign = bottom |
||||||
|
shadow_passes = 5 |
||||||
|
shadow_size = 10 |
||||||
|
} |
||||||
|
|
||||||
|
label { |
||||||
|
monitor = |
||||||
|
text = $USER |
||||||
|
color = rgba(200, 200, 200, 1.0) |
||||||
|
font_size = 20 |
||||||
|
font_family = JetBrainsMono Nerd Font |
||||||
|
position = 0, 80 |
||||||
|
halign = center |
||||||
|
valign = bottom |
||||||
|
shadow_passes = 5 |
||||||
|
shadow_size = 10 |
||||||
|
} |
||||||
|
''; |
||||||
|
|
||||||
|
wayland.windowManager.hyprland.enable = true; |
||||||
|
wayland.windowManager.hyprland.settings = { |
||||||
|
|
||||||
|
"$mod" = "SUPER"; |
||||||
|
exec-once = [ |
||||||
|
"dunst" |
||||||
|
"waybar" |
||||||
|
]; |
||||||
|
|
||||||
|
bind = |
||||||
|
[ |
||||||
|
"$mod, F, exec, firefox" |
||||||
|
"$mod, k, exec, kitty" |
||||||
|
", Print, exec, grimblast copy area" |
||||||
|
"$mod, l, exec, hyprlock" # Add a keybinding to lock the screen |
||||||
|
"$mod, C, exec, codium" |
||||||
|
"$mod, E, exec, hyprctl dispatch exit" |
||||||
|
] |
||||||
|
++ ( |
||||||
|
# workspaces |
||||||
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10} |
||||||
|
builtins.concatLists (builtins.genList ( |
||||||
|
x: let |
||||||
|
ws = let |
||||||
|
c = (x + 1) / 10; |
||||||
|
in |
||||||
|
builtins.toString (x + 1 - (c * 10)); |
||||||
|
in [ |
||||||
|
"$mod, ${ws}, workspace, ${toString (x + 1)}" |
||||||
|
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" |
||||||
|
] |
||||||
|
) |
||||||
|
10) |
||||||
|
); |
||||||
|
}; |
||||||
|
} |
||||||
@ -0,0 +1,100 @@ |
|||||||
|
{ |
||||||
|
inputs, |
||||||
|
config, |
||||||
|
... |
||||||
|
}:{ |
||||||
|
services.dunst = { |
||||||
|
enable = true; |
||||||
|
settings = { |
||||||
|
global = { |
||||||
|
background = "#${config.colorScheme.palette.base00}"; |
||||||
|
foreground = "#${config.colorScheme.palette.base06}"; |
||||||
|
monitor = 0; |
||||||
|
follow = "mouse"; |
||||||
|
width = "(0,600)"; |
||||||
|
height = 350; |
||||||
|
progress_bar = true; |
||||||
|
progress_bar_height = 25; |
||||||
|
progress_bar_frame_width = 3; |
||||||
|
progress_bar_min_width = 460; |
||||||
|
progress_bar_max_width = 480; |
||||||
|
highlight = "#79dcaa"; |
||||||
|
indicate_hidden = true; |
||||||
|
shrink = true; |
||||||
|
transparency = 5; |
||||||
|
separator_height = 5; |
||||||
|
padding = 10; |
||||||
|
horizontal_padding = 10; |
||||||
|
frame_width = 0; |
||||||
|
frame_color = "#${config.colorScheme.palette.base06}"; |
||||||
|
sort = true; |
||||||
|
idle_threshold = 0; |
||||||
|
font = "JetBrains Mono Nerd Font 13"; |
||||||
|
line_height = 2; |
||||||
|
markup = "full"; |
||||||
|
origin = "top-right"; |
||||||
|
offset = "10x10"; |
||||||
|
format = "<b>%s</b>''\n%b"; |
||||||
|
alignment = "left"; |
||||||
|
show_age_threshold = 60; |
||||||
|
word_wrap = true; |
||||||
|
ignore_newline = true; |
||||||
|
stack_duplicates = true; |
||||||
|
hide_duplicate_count = false; |
||||||
|
show_indicators = true; |
||||||
|
icon_position = "left"; |
||||||
|
max_icon_size = 86; |
||||||
|
min_icon_size = 32; |
||||||
|
icon_theme = "Papirus"; |
||||||
|
enable_recursive_icon_lookup = true; |
||||||
|
sticky_history = true; |
||||||
|
history_length = 20; |
||||||
|
browser = "firefox"; |
||||||
|
always_run_script = true; |
||||||
|
title = "Dunst"; |
||||||
|
class = "Dunst"; |
||||||
|
corner_radius = 10; |
||||||
|
icon_corner_radius= 5; |
||||||
|
notification_limit = 5; |
||||||
|
mouse_left_click = "close_current"; |
||||||
|
mouse_middle_click = "do_action"; |
||||||
|
mouse_right_click = "context_all"; |
||||||
|
ignore_dbusclose = true; |
||||||
|
ellipsize = "middle"; |
||||||
|
}; |
||||||
|
|
||||||
|
urgency_normal = { |
||||||
|
timeout = 6; |
||||||
|
background = "#${config.colorScheme.palette.base00}"; |
||||||
|
frame_color = "#${config.colorScheme.palette.base07}"; |
||||||
|
foreground = "#${config.colorScheme.palette.base06}"; |
||||||
|
}; |
||||||
|
urgency_low = { |
||||||
|
timeout = 2; |
||||||
|
background = "#${config.colorScheme.palette.base00}"; |
||||||
|
frame_color = "#${config.colorScheme.palette.base07}"; |
||||||
|
foreground = "#${config.colorScheme.palette.base06}"; |
||||||
|
}; |
||||||
|
urgency_critical = { |
||||||
|
timeout = 30; |
||||||
|
background = "#${config.colorScheme.palette.base00}"; |
||||||
|
frame_color = "#${config.colorScheme.palette.base07}"; |
||||||
|
foreground = "#${config.colorScheme.palette.base06}"; |
||||||
|
}; |
||||||
|
fullscreen_show_critical = { |
||||||
|
msg_urgency = "critical"; |
||||||
|
fullscreen = "pushback"; |
||||||
|
}; |
||||||
|
network = { |
||||||
|
appname = "network"; |
||||||
|
new_icon = "network"; |
||||||
|
summary = "*"; |
||||||
|
format = "<span size='x-large' weight='bold'>%s</span>''\n<span font_desc='Cooper Hewitt,Iosevka Nerd Font 12'>%b</span>"; |
||||||
|
}; |
||||||
|
NetworkManager_Applet = { |
||||||
|
appname = "NetworkManager Applet"; |
||||||
|
new_icon = "network-wireless"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
} |
||||||
Loading…
Reference in new issue