Compare commits
213 Commits
79c559eb47
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 075a058b06 | |||
| 16dc9685a7 | |||
| 36d39f7a44 | |||
| 08d978103f | |||
| bb0d3f51b8 | |||
| 1468b90ae9 | |||
| 58392825fc | |||
| cdb73706a7 | |||
| 259bd54914 | |||
| 000ee1cca4 | |||
| 522f2a25c9 | |||
| c364f62ea1 | |||
| 04e522548a | |||
| 91f37618e2 | |||
| 3d646d5895 | |||
| 6581faa392 | |||
| 711832dff2 | |||
| 82b041c872 | |||
| fc4ea6047d | |||
| 5a058db718 | |||
| 306487df72 | |||
| 8862e8fa15 | |||
| 07ebec86c9 | |||
| b96ec1fc5f | |||
| 9ebd0ebdae | |||
| 0f32aa31c3 | |||
| 9d662211c9 | |||
| bbf327ca48 | |||
| 7c32580e95 | |||
| ccea6cf946 | |||
| 3992caf295 | |||
| 8c2a134545 | |||
| 7528c9791e | |||
| 745ff2426c | |||
| d598fbf686 | |||
| 5f247b31d8 | |||
| b152edca7d | |||
| 8be4651af6 | |||
| 7307a72341 | |||
| f48ab77b0c | |||
| d584be475b | |||
| 662689b70d | |||
| f4c9a90ff2 | |||
| be78eaf5e3 | |||
| 632eebfe42 | |||
| 3fe6f702b9 | |||
| 01eee1289a | |||
| b89e7ebec9 | |||
| 1af95ba75e | |||
| eef0f25aaf | |||
| dc5b230471 | |||
| 10a1652795 | |||
| ae3100a6c8 | |||
| 68410cd7e7 | |||
| 1bfad729aa | |||
| b295132dae | |||
| 9e4add9075 | |||
| e0356b0edb | |||
| 3ec8adfc1b | |||
| 1c9d142646 | |||
| e0dbb28b2e | |||
| 12b816b2e4 | |||
| 71331929ba | |||
| 913a8e9ab2 | |||
| d16ecc28da | |||
| 33825fc137 | |||
| 1f150d71d2 | |||
| 0da45a5b0d | |||
| 1dbf772873 | |||
| f0db85e714 | |||
| 507cde3788 | |||
| a19f71c8b9 | |||
| bdefe77b67 | |||
| 0c705f7837 | |||
| 7a1c4ea6f4 | |||
| 4483e46102 | |||
| bb5a385292 | |||
| 636b8a5645 | |||
| 776c7db8d2 | |||
| 124d59b5af | |||
| b62f685322 | |||
| a0ca179798 | |||
| d0847ac23d | |||
| e55d5bb5da | |||
| f85a02dc03 | |||
| 6a9d0b6cd4 | |||
| 87ba0f5c06 | |||
| 3de57e0786 | |||
| 15712267d6 | |||
| 73b27b5f19 | |||
| 6c4e5f3eb3 | |||
| f7b10fde04 | |||
| 7e56a4bca6 | |||
| 4976f3fd36 | |||
| 8213197399 | |||
| 4aef99222f | |||
| c4101683ba | |||
| 48d21c8b59 | |||
| aa6a9b9a65 | |||
| 7b5effc44f | |||
| 80c3343b70 | |||
| 28e24bea15 | |||
| d4991a5a57 | |||
| 4283d661c4 | |||
| e4197625b0 | |||
| cd73e023bc | |||
| 8e83b62f99 | |||
| 7cac78df85 | |||
| d30e28dbe1 | |||
| ff4b8df4b4 | |||
| 905003f5c7 | |||
| a736dbfed0 | |||
| 8102ac4d89 | |||
| dd64045f47 | |||
| 848daabdff | |||
| 65f93f7231 | |||
| 3f5f9b9cb7 | |||
| 473ed9149c | |||
| e397b05654 | |||
| e9f4bcb08c | |||
| da7d319de8 | |||
| df03210327 | |||
| 8d1e17832e | |||
| f18fed8a1b | |||
| 494e74843b | |||
| a1f630506e | |||
| 6a2fa7f534 | |||
| 0843ad7ce0 | |||
| 30a3d6e7ee | |||
| e7db323cb5 | |||
| 4110fd8a35 | |||
| 93f944cbea | |||
| 0b335dec3a | |||
| 919d056489 | |||
| 89f9b7bee6 | |||
| fa04d757c5 | |||
| ba4d1fd1fd | |||
| eafce390d6 | |||
| 758c03a9bf | |||
| 8f5996d903 | |||
| 3d15e4e2d7 | |||
| abe8818958 | |||
| c1716b0319 | |||
| 0ba6f18b63 | |||
| bc0c949cd7 | |||
| 0c9e71f2a7 | |||
| b04a193268 | |||
| 7a27295f86 | |||
| df70128156 | |||
| 8ef5d38340 | |||
| 447024e143 | |||
| b158f2247d | |||
| c67212c94f | |||
| 1850e8dc26 | |||
| 9381322401 | |||
| 730d10edee | |||
| a965fa973b | |||
| 8aea9c3ee6 | |||
| 37fdb75bd9 | |||
| 449e4826c0 | |||
| 867264e3b7 | |||
| 16fe744990 | |||
| fec2ac4026 | |||
| 2a5ce1df3f | |||
| 3dfba5b464 | |||
| 5b2c1dad2e | |||
| 386e6048fc | |||
| 107f8b4756 | |||
| 0d5fd3fe33 | |||
| 61728f95d3 | |||
| 3fad61abde | |||
| 3bae780610 | |||
| fdf9621639 | |||
| aa845e843a | |||
| e6f4fd70f9 | |||
| f34b51453f | |||
| 0dabfee6da | |||
| 9ce7af9429 | |||
| ecc6a42519 | |||
| a10900f62b | |||
| 7b2872ee95 | |||
| b5e428bf5e | |||
| 460d3d2b51 | |||
| a3a6057358 | |||
| cc0a043757 | |||
| 038393e5fb | |||
| 38a5cb8a29 | |||
| 4b1c9f29e2 | |||
| df74a65831 | |||
| 16fbfc00e1 | |||
| 1e85b6a8d8 | |||
| d6518d9f14 | |||
| 21188d4674 | |||
| a0c8e24997 | |||
| 5644973db0 | |||
| 059fc7f5f4 | |||
| d00fa76fa3 | |||
| 80abd13d44 | |||
| f00b6c3c15 | |||
| 827dd21eb5 | |||
| 3e2440d395 | |||
| c886c9be8f | |||
| f730526c18 | |||
| 21d9880738 | |||
| 6b427ec38c | |||
| ceaf5667f2 | |||
| a04926b1fa | |||
| 0e272f5411 | |||
| ccbe1cc1a4 | |||
| eaca264460 | |||
| 8314ba348d | |||
| b73c206ee5 | |||
| a5c30c7310 |
Binary file not shown.
|
Before Width: | Height: | Size: 6.0 MiB |
+1131
-570
File diff suppressed because it is too large
Load Diff
+739
-206
File diff suppressed because it is too large
Load Diff
@@ -1,67 +0,0 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
let
|
||||
colors = {
|
||||
crust = "#11111b";
|
||||
mantle = "#181825";
|
||||
base = "#1e1e2e";
|
||||
surface0 = "#313244";
|
||||
surface1 = "#45475a";
|
||||
surface2 = "#585b70";
|
||||
overlay0 = "#6c7086";
|
||||
overlay1 = "#7f849c";
|
||||
overlay2 = "#9399b2";
|
||||
subtext0 = "#a6adc8";
|
||||
subtext1 = "#bac2de";
|
||||
text = "#cdd6f4";
|
||||
rosewater = "#f5e0dc";
|
||||
flamingo = "#f2cdcd";
|
||||
pink = "#f5c2e7";
|
||||
mauve = "#cba6f7";
|
||||
red = "#f38ba8";
|
||||
maroon = "#eba0ac";
|
||||
peach = "#fab387";
|
||||
yellow = "#f9e2af";
|
||||
green = "#a6e3a1";
|
||||
teal = "#94e2d5";
|
||||
sapphire = "#74c7ec";
|
||||
blue = "#89b4fa";
|
||||
lavender = "#b4befe";
|
||||
};
|
||||
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
cssContent = ''
|
||||
/* Catppuccin Mocha Palette - auto-generated, do not edit manually */
|
||||
'' + lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (name: value:
|
||||
"@define-color ${name} ${value};"
|
||||
) colors
|
||||
) + "\n@define-color base-alpha rgba(30, 30, 46, 0.9);";
|
||||
|
||||
qmlContent = ''
|
||||
// Catppuccin Mocha Palette - auto-generated, do not edit manually
|
||||
import QtQuick
|
||||
QtObject {
|
||||
readonly property color baseAlpha: Qt.rgba(30/255, 30/255, 46/255, 0.9)
|
||||
'' + lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (name: value:
|
||||
" readonly property color ${name}: \"${value}\""
|
||||
) colors
|
||||
) + "\n}";
|
||||
|
||||
in
|
||||
{
|
||||
home-manager.users.${username} = {
|
||||
home.file = {
|
||||
".config/shared/colors.css" = {
|
||||
text = cssContent;
|
||||
force = true;
|
||||
};
|
||||
".config/quickshell/Colors.qml" = {
|
||||
text = qmlContent;
|
||||
force = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,18 +12,18 @@ bind = $mainMod, X , exec, qs -c powermenu
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
|
||||
# grimblast
|
||||
# bind = $mainMod SHIFT, P, exec, grimblast -n -f copysave active
|
||||
# bind = $mainMod SHIFT, S, exec, grimblast -n -f copysave area
|
||||
# bind = , XF86Screenshot, exec, grimblast -n -f copysave area
|
||||
# bind = $mainMod ALT, P, exec, grimblast -n -f copysave output
|
||||
# bind = $mainMod CTRL, P, exec, grimblast -n -f copysave screen
|
||||
bind = $mainMod SHIFT, P, exec, grimblast -n -f copysave active
|
||||
bind = $mainMod SHIFT, S, exec, grimblast -n -f copysave area
|
||||
bind = , XF86Screenshot, exec, grimblast -n -f copysave area
|
||||
bind = $mainMod ALT, P, exec, grimblast -n -f copysave output
|
||||
bind = $mainMod CTRL, P, exec, grimblast -n -f copysave screen
|
||||
|
||||
# Flameshot keybindings
|
||||
bind = $mainMod SHIFT, P, exec, flameshot full -p ~/Pictures/Screenshots -c
|
||||
bind = $mainMod SHIFT, S, exec, flameshot gui
|
||||
bind = , XF86Screenshot, exec, flameshot gui
|
||||
bind = $mainMod ALT, P, exec, flameshot full -d 5000 -p ~/Pictures/Screenshots -c
|
||||
bind = $mainMod CTRL, P, exec, flameshot screen -n 0 -p ~/Pictures/Screenshots -c
|
||||
# bind = $mainMod SHIFT, P, exec, flameshot full -p ~/Pictures/Screenshots -c
|
||||
# bind = $mainMod SHIFT, S, exec, flameshot gui 2>/dev/null
|
||||
# bind = , XF86Screenshot, exec, flameshot gui 2>/dev/null
|
||||
# bind = $mainMod ALT, P, exec, flameshot full -d 5000 -p ~/Pictures/Screenshots -c
|
||||
# bind = $mainMod CTRL, P, exec, flameshot screen -n 0 -p ~/Pictures/Screenshots -c
|
||||
|
||||
# Switch windows
|
||||
bind = ALT, TAB, cyclenext, prev
|
||||
@@ -36,6 +36,7 @@ bind = CTRL ALT, right, layoutmsg, colwidth +conf
|
||||
bind = CTRL ALT, left, layoutmsg, colwidth -conf
|
||||
|
||||
# switch layouts
|
||||
bind = $mainMod, T , exec, qs -c layoutswitcher
|
||||
|
||||
# Hyprscrolling
|
||||
bind = $mainMod, period, layoutmsg, move +col
|
||||
@@ -48,7 +49,6 @@ bind = $mainMod, S, togglegroup
|
||||
# Cycle tabs in the group
|
||||
bind = $mainMod, bracketright, changegroupactive, f
|
||||
bind = $mainMod, bracketleft, changegroupactive, b
|
||||
bind = $mainMod, T, exec, ~/.config/scripts/layout-selector.sh
|
||||
|
||||
# Focus movement
|
||||
bind = $mainMod, H, movefocus, l
|
||||
@@ -123,7 +123,7 @@ bind = , XF86AudioMicMute, exec, pamixer --default-source -t
|
||||
#########################
|
||||
# Media (playerctl)
|
||||
#########################
|
||||
bind = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bind = , XF86AudioPlay, exec, bash -c "playerctl -l | grep -q spotify && playerctl -p spotify play-pause || playerctl play-pause"
|
||||
bind = , XF86AudioPause, exec, playerctl pause
|
||||
bind = , XF86AudioNext, exec, playerctl next
|
||||
bind = , XF86AudioPrev, exec, playerctl previous
|
||||
@@ -143,7 +143,7 @@ bind = , XF86KbdBrightnessDown, exec, brightnessctl -d '*kbd_backlight*' set 10%
|
||||
bind = , XF86Sleep, exec, systemctl suspend
|
||||
bind = , XF86PowerOff, exec, systemctl poweroff
|
||||
bind = , XF86WakeUp, exec, systemctl suspend
|
||||
bind = CTRL ALT, L, exec, loginctl lock-session
|
||||
bind = , XF86ScreenSaver, exec, loginctl lock-session
|
||||
|
||||
#########################
|
||||
# Start apps
|
||||
@@ -154,6 +154,8 @@ bind = CTRL ALT, B, exec, flatpak run eu.betterbird.Betterbird
|
||||
bind = CTRL ALT, S, exec, spotify
|
||||
bind = $mainMod, Z, exec, zeditor
|
||||
bind = $mainMod, W, exec, zen
|
||||
bind = CTRL ALT, T, exec, solidtime-desktop
|
||||
bind = , XF86Calculator, exec, gnome-calculator
|
||||
|
||||
#########################
|
||||
# Auto apps
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
exec-once = dbus-update-activation-environment --systemd --all
|
||||
exec-once = systemctl --user start --no-block xdg-desktop-portal-hyprland
|
||||
exec-once = systemctl --user start --no-block xdg-desktop-portal
|
||||
exec-once = hypridle
|
||||
exec-once = systemd-run --user --scope --unit=elephant elephant
|
||||
exec-once = waybar
|
||||
exec-once = awww-daemon
|
||||
exec-once = awww img ~/Wallpapers/pictures/01.jpg
|
||||
exec-once = ~/.config/scripts/set-workspace-wallpaper.sh
|
||||
exec-once = ~/.config/scripts/workspace-listener.sh
|
||||
exec-once = /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
|
||||
exec-once = nextcloud --background
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once flameshot
|
||||
# exec-once = QT_QPA_PLATFORM=wayland flameshot 2> >(grep -v "wlroots" >&2)
|
||||
exec-once = waybar
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
layerrule = blur on, ignore_alpha 1, match:namespace waybar
|
||||
layerrule = xray 1, match:namespace waybar
|
||||
layerrule = blur on, ignore_alpha 1, match:namespace walker
|
||||
layerrule = xray 1, match:namespace walker
|
||||
layerrule = blur on, ignore_alpha 1, match:namespace swaync-control-center
|
||||
layerrule = blur on, ignore_alpha 1, match:namespace swaync-notification-window
|
||||
layerrule = xray 1, match:namespace swaync-control-center
|
||||
|
||||
@@ -27,6 +27,15 @@ windowrule {
|
||||
size = 900 700
|
||||
}
|
||||
|
||||
# Networks
|
||||
windowrule {
|
||||
name = iwgtk
|
||||
match:class = org.twosheds.iwgtk
|
||||
float = on
|
||||
move = move onscreen 100%-w 0
|
||||
size = 900 700
|
||||
}
|
||||
|
||||
#Quickshell powermenu
|
||||
windowrule {
|
||||
name = quickshell-powermenu
|
||||
@@ -37,6 +46,16 @@ windowrule {
|
||||
pin = on
|
||||
}
|
||||
|
||||
#Quickshell layoutswitcher
|
||||
windowrule {
|
||||
name = quickshell-layoutswitcher
|
||||
match:title = quickshell-layoutswitcher
|
||||
opacity = 1.0 0.8
|
||||
float = on
|
||||
move = cursor -50% 0
|
||||
pin = on
|
||||
}
|
||||
|
||||
#Quickshell media menu
|
||||
windowrule {
|
||||
name = quickshell-media
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
workspace = 1, monitor:eDP-1, layout:master
|
||||
workspace = 2, monitor:eDP-1, layout:monocle
|
||||
workspace = 3, monitor:eDP-1, layout:master
|
||||
workspace = 4, monitor:DP-1, layout:scrolling
|
||||
workspace = 5, monitor:DP-1, layout:dwindle
|
||||
workspace = 6, monitor:DP-1, layout:dwindle
|
||||
workspace = 1, monitor:eDP-1 #, layout:master
|
||||
workspace = 2, monitor:eDP-1 #, layout:monocle
|
||||
workspace = 3, monitor:eDP-1 #, layout:master
|
||||
workspace = 4, monitor:DP-1 #, layout:scrolling
|
||||
workspace = 5, monitor:DP-1 #, layout:dwindle
|
||||
workspace = 6, monitor:DP-1 #, layout:dwindle
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
ShellRoot {
|
||||
QtObject {
|
||||
id: colors
|
||||
readonly property color baseAlpha: Qt.rgba(30/255, 30/255, 46/255, 0.9)
|
||||
readonly property color base: "#1e1e2e"
|
||||
readonly property color surface0: "#313244"
|
||||
readonly property color surface1: "#45475a"
|
||||
readonly property color surface2: "#585b70"
|
||||
readonly property color text: "#cdd6f4"
|
||||
readonly property color subtext0: "#a6adc8"
|
||||
readonly property color subtext1: "#bac2de"
|
||||
readonly property color blue: "#89b4fa"
|
||||
readonly property color green: "#a6e3a1"
|
||||
readonly property color teal: "#94e2d5"
|
||||
readonly property color red: "#f38ba8"
|
||||
readonly property color mauve: "#cba6f7"
|
||||
readonly property color peach: "#fab387"
|
||||
readonly property color lavender: "#b4befe"
|
||||
}
|
||||
|
||||
FloatingWindow {
|
||||
id: root
|
||||
title: "quickshell-layoutswitcher"
|
||||
visible: true
|
||||
width: 220
|
||||
height: contentLayout.implicitHeight + 32
|
||||
color: colors.base
|
||||
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
onActivated: Qt.quit()
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: -2
|
||||
radius: 18
|
||||
z: -1
|
||||
opacity: Qt.application.active ? 0 : 1
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: 150 }
|
||||
}
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop { position: 0.0; color: colors.blue }
|
||||
GradientStop { position: 1.0; color: colors.green }
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 16
|
||||
color: colors.base
|
||||
|
||||
ColumnLayout {
|
||||
id: contentLayout
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
margins: 16
|
||||
}
|
||||
spacing: 4
|
||||
|
||||
Text {
|
||||
text: " Layout"
|
||||
color: colors.text
|
||||
font.pixelSize: 13
|
||||
font.bold: true
|
||||
Layout.bottomMargin: 8
|
||||
}
|
||||
|
||||
Repeater {
|
||||
|
||||
|
||||
model: [
|
||||
{ label: " Dwindle", layout: "dwindle", description: "Vensters splitsen recursief — elk nieuw venster halveert de ruimte" },
|
||||
{ label: " Master", layout: "master", description: "Één groot hoofdvenster links, overige vensters gestapeld rechts" },
|
||||
{ label: " Scrolling", layout: "scrolling", description: "Vensters naast elkaar in een horizontaal scrollbare rij" },
|
||||
{ label: " Monocle", layout: "monocle", description: "Één venster tegelijk op volledig scherm, anderen verborgen" },
|
||||
]
|
||||
|
||||
delegate: Rectangle {
|
||||
id: item
|
||||
Layout.fillWidth: true
|
||||
height: 38
|
||||
radius: 8
|
||||
color: hovered ? colors.surface1 : colors.base
|
||||
property bool hovered: false
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
anchors.margins: -2
|
||||
radius: parent.radius + 2
|
||||
visible: item.hovered
|
||||
z: -1
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
GradientStop { position: 0.0; color: colors.blue }
|
||||
GradientStop { position: 1.0; color: colors.green }
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 12
|
||||
text: modelData.label
|
||||
color: item.hovered ? colors.text : colors.subtext1
|
||||
font.pixelSize: 13
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onEntered: item.hovered = true
|
||||
onExited: item.hovered = false
|
||||
onClicked: proc.running = true
|
||||
}
|
||||
|
||||
Process {
|
||||
id: proc
|
||||
command: ["bash", "-c", "hyprctl keyword general:layout " + modelData.layout + " && hyprctl dispatch layoutmsg reload"]
|
||||
onExited: Qt.quit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item { height: 4 }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
DEVICE=$(kdeconnect-cli --list-devices | grep -oP '(?<=\().*?(?=\))' | head -n 1)
|
||||
|
||||
if [ -z "$DEVICE" ]; then
|
||||
echo "No phone"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
NAME=$(kdeconnect-cli -d "$DEVICE" --name 2>/dev/null)
|
||||
BATTERY=$(kdeconnect-cli -d "$DEVICE" --battery 2>/dev/null | grep -o '[0-9]\+' | head -n 1)
|
||||
|
||||
if [ -z "$BATTERY" ]; then
|
||||
echo "$NAME"
|
||||
else
|
||||
echo "$NAME $BATTERY%"
|
||||
fi
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
# layout-selector.sh
|
||||
# Select a workspace layout using Wofi, shows description, applies with layoutmsg
|
||||
|
||||
# Define layouts and descriptions
|
||||
declare -A LAYOUTS=(
|
||||
[dwindle]="舘 Dwindle: Auto-tiling, windows shrink progressively"
|
||||
[master]=" Master: One main window, others stacked"
|
||||
[scrolling]=" Scrolling: Vertical list, scroll through windows"
|
||||
[monocle]=" Monocle: One window fills the screen"
|
||||
[floating]=" Floating: Free move & resize"
|
||||
)
|
||||
ORDER=(dwindle master scrolling monocle floating)
|
||||
|
||||
# Prepare Wofi menu: show "layoutname: description"
|
||||
MENU_ITEMS=()
|
||||
for key in "${ORDER[@]}"; do
|
||||
MENU_ITEMS+=("$key: ${LAYOUTS[$key]}")
|
||||
done
|
||||
|
||||
# Show selection menu via Wofi
|
||||
CHOICE=$(printf '%s\n' "${MENU_ITEMS[@]}" | wofi --dmenu --prompt "Select Layout")
|
||||
|
||||
# Exit if cancelled
|
||||
[ -z "$CHOICE" ] && exit 0
|
||||
|
||||
# Extract layout name from selection (before colon)
|
||||
LAYOUT_NAME="${CHOICE%%:*}"
|
||||
|
||||
# Apply layout via layoutmsg
|
||||
hyprctl dispatch layoutmsg setlayout "$LAYOUT_NAME"
|
||||
|
||||
# Show OSD feedback
|
||||
hyprctl dispatch oSD "Layout: $LAYOUT_NAME" 2000
|
||||
@@ -165,7 +165,7 @@ format = " in $duration "
|
||||
style = "bg:lavender"
|
||||
disabled = false
|
||||
show_notifications = true
|
||||
min_time_to_notify = 45000
|
||||
min_time_to_notify = 60000
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
rosewater = "#f5e0dc"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{
|
||||
"base00": "1e1e2e",
|
||||
"base01": "181825",
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"positionX": "right",
|
||||
"positionY": "top",
|
||||
"layer": "overlay",
|
||||
"control-center-layer": "top",
|
||||
"layer-shell": true,
|
||||
"cssPriority": "application",
|
||||
"control-center-margin-top": 8,
|
||||
"control-center-margin-bottom": 8,
|
||||
"control-center-margin-right": 8,
|
||||
"control-center-margin-left": 0,
|
||||
"notification-2fa-action": true,
|
||||
"notification-inline-replies": false,
|
||||
"notification-icon-size": 48,
|
||||
"notification-body-image-height": 100,
|
||||
"notification-body-image-width": 200,
|
||||
"timeout": 10,
|
||||
"timeout-low": 5,
|
||||
"timeout-critical": 0,
|
||||
"fit-to-screen": true,
|
||||
"control-center-height": -1,
|
||||
"control-center-width": 300,
|
||||
"notification-window-width": 400,
|
||||
"keyboard-shortcuts": true,
|
||||
"image-visibility": "when-available",
|
||||
"transition-time": 200,
|
||||
"hide-on-clear": false,
|
||||
"hide-on-action": true,
|
||||
"script-fail-notify": true,
|
||||
"widgets": [
|
||||
"inhibitors",
|
||||
"title",
|
||||
"dnd",
|
||||
"notifications"
|
||||
],
|
||||
"widget-config": {
|
||||
"inhibitors": {
|
||||
"text": "Inhibitors",
|
||||
"button-text": "Clear All",
|
||||
"clear-all-button": true
|
||||
},
|
||||
"title": {
|
||||
"text": "Notifications",
|
||||
"clear-all-button": true,
|
||||
"button-text": "Clear All"
|
||||
},
|
||||
"dnd": {
|
||||
"text": "Do Not Disturb"
|
||||
},
|
||||
"notifications": {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
/* --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- */
|
||||
@import url("/home/henrov/.config/shared/colors.css");
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 13px;
|
||||
font-family: sans-serif;
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
/* ── Notification rows ─────────────────────────────────────────────────── */
|
||||
|
||||
.notification-row {
|
||||
outline: none;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.notification-row:focus,
|
||||
.notification-row:hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* ── Individual notification ───────────────────────────────────────────── */
|
||||
|
||||
.notification {
|
||||
border-radius: 12px;
|
||||
padding: 8px;
|
||||
margin: 4px 8px;
|
||||
color: @text;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||||
|
||||
/* gradient border */
|
||||
border: 2px solid transparent;
|
||||
background-image:
|
||||
linear-gradient(@base-alpha, @base-alpha),
|
||||
linear-gradient(45deg, @blue, @green);
|
||||
background-clip: padding-box, border-box;
|
||||
background-origin: padding-box, border-box;
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.notification-default-action {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.notification-default-action:hover {
|
||||
background: alpha(@blue, 0.1);
|
||||
}
|
||||
|
||||
/* ── Text elements ─────────────────────────────────────────────────────── */
|
||||
|
||||
.summary {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.time {
|
||||
font-size: 11px;
|
||||
color: @overlay0;
|
||||
}
|
||||
|
||||
.body {
|
||||
font-size: 12px;
|
||||
color: @subtext1;
|
||||
}
|
||||
|
||||
/* ── Control center ────────────────────────────────────────────────────── */
|
||||
|
||||
.control-center {
|
||||
min-height: unset;
|
||||
border-radius: 30px;
|
||||
padding: 8px;
|
||||
margin: 8px;
|
||||
color: @text;
|
||||
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
|
||||
border: 2px solid transparent;
|
||||
background-image:
|
||||
linear-gradient(@base-alpha, @base-alpha),
|
||||
linear-gradient(45deg, @blue, @green);
|
||||
background-clip: padding-box, border-box;
|
||||
background-origin: padding-box, border-box;
|
||||
}
|
||||
|
||||
.control-center-list {
|
||||
background: transparent;
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
.control-center-list-placeholder {
|
||||
opacity: 0.4;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ── Misc windows ──────────────────────────────────────────────────────── */
|
||||
|
||||
.floating-notifications {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.blank-window {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* ── Widget: title ─────────────────────────────────────────────────────── */
|
||||
|
||||
.widget-title {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: @blue;
|
||||
padding: 8px 4px 4px 4px;
|
||||
}
|
||||
|
||||
.widget-title > button {
|
||||
font-size: 12px;
|
||||
color: @overlay0;
|
||||
background: alpha(@blue, 0.1);
|
||||
border-radius: 8px;
|
||||
padding: 2px 8px;
|
||||
}
|
||||
|
||||
.widget-title > button:hover {
|
||||
background: alpha(@blue, 0.2);
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* ── Widget: Do Not Disturb ────────────────────────────────────────────── */
|
||||
|
||||
.widget-dnd {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.widget-dnd > switch {
|
||||
border-radius: 20px;
|
||||
background: alpha(@surface1, 0.3);
|
||||
|
||||
/* gradient border */
|
||||
border: 1px solid transparent;
|
||||
background-image:
|
||||
linear-gradient(alpha(@surface1, 0.3), alpha(@surface1, 0.3)),
|
||||
linear-gradient(45deg, @blue, @green);
|
||||
background-clip: padding-box, border-box;
|
||||
background-origin: padding-box, border-box;
|
||||
}
|
||||
|
||||
.widget-dnd > switch:checked {
|
||||
background-image:
|
||||
linear-gradient(alpha(@blue, 0.5), alpha(@blue, 0.5)),
|
||||
linear-gradient(45deg, @blue, @green);
|
||||
background-clip: padding-box, border-box;
|
||||
background-origin: padding-box, border-box;
|
||||
}
|
||||
|
||||
.widget-dnd > switch slider {
|
||||
border-radius: 20px;
|
||||
background: @text;
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
/* ── Widget: inhibitors ────────────────────────────────────────────────── */
|
||||
|
||||
.widget-inhibitors {
|
||||
padding: 4px;
|
||||
color: @red;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ── Close button ──────────────────────────────────────────────────────── */
|
||||
|
||||
.close-button {
|
||||
background: alpha(@red, 0.15);
|
||||
border-radius: 6px;
|
||||
color: @red;
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.close-button:hover {
|
||||
background: alpha(@red, 0.3);
|
||||
}
|
||||
+101
-21
@@ -10,22 +10,22 @@
|
||||
|
||||
/*******************************************************************/
|
||||
"modules-left": [
|
||||
"group/connections",
|
||||
"group/hardware",
|
||||
"group/hardware"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"group/workspaces",
|
||||
"custom/power",
|
||||
"custom/media",
|
||||
"custom/batterywarn"
|
||||
"group/workspaces"
|
||||
,"custom/media"
|
||||
,"custom/batterywarn"
|
||||
/* ,"custom/kdeconnect" */
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"group/audio",
|
||||
"tray",
|
||||
"clock",
|
||||
"idle_inhibitor"
|
||||
"group/audio"
|
||||
,"group/tray"
|
||||
,"clock"
|
||||
,"group/system"
|
||||
,"custom/notifications"
|
||||
],
|
||||
|
||||
/*******************************************************************/
|
||||
@@ -59,6 +59,45 @@
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
/*******************************************************************/
|
||||
"group/tray": {
|
||||
"orientation": "horizontal",
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"transition-left-to-right": true
|
||||
},
|
||||
"modules": [
|
||||
"custom/tray-anchor"
|
||||
,"tray"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/tray-anchor": {
|
||||
|
||||
"format": " ",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
/*******************************************************************/
|
||||
"group/system": {
|
||||
"orientation": "horizontal",
|
||||
"drawer": {
|
||||
"transition-duration": 500,
|
||||
"transition-left-to-right": true
|
||||
},
|
||||
"modules": [
|
||||
"custom/system-anchor"
|
||||
,"custom/power"
|
||||
,"idle_inhibitor"
|
||||
]
|
||||
},
|
||||
|
||||
"custom/system-anchor": {
|
||||
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
|
||||
/*************************/
|
||||
|
||||
@@ -94,7 +133,6 @@
|
||||
|
||||
/*******************************************************************/
|
||||
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"align": 1,
|
||||
"format": "{name}",
|
||||
@@ -136,17 +174,30 @@
|
||||
"format": "{}"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"tooltip": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated": " "
|
||||
},
|
||||
"tooltip-format-activated": "Staying awake",
|
||||
"tooltip-format-deactivated": "Might sleep...."
|
||||
"custom/kdeconnect": {
|
||||
"format": "{name} {battery}% ",
|
||||
"interval": 10,
|
||||
"exec": "~/.config/scripts/kdeconnect-status.sh",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
"custom/notifications": {
|
||||
"tooltip": false,
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"notification": "",
|
||||
"none": "",
|
||||
"dnd-notification": "",
|
||||
"dnd-none": "",
|
||||
},
|
||||
"on-click": "swaync-client -t",
|
||||
"on-click-right": "swaync-client -d",
|
||||
"on-click-middle": "swaync-client -dn",
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"on-click": "qs -c powermenu",
|
||||
@@ -173,6 +224,17 @@
|
||||
"orientation": "horizontal"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"tooltip": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated": " "
|
||||
},
|
||||
"tooltip-format-activated": "Staying awake",
|
||||
"tooltip-format-deactivated": "Might sleep...."
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi": " ({bandwidthDownBits})",
|
||||
"format-ethernet": " ({bandwidthDownBits})",
|
||||
@@ -202,7 +264,25 @@
|
||||
"icon-size": 14
|
||||
},
|
||||
|
||||
|
||||
"clock": {
|
||||
"format": "{:%H:%M}",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 3,
|
||||
"weeks-pos" : "left",
|
||||
"on-scroll" : 1,
|
||||
"on-click-right": "mode",
|
||||
"format": {
|
||||
"months": "<span color='#fab387'><b>{}</b></span>",
|
||||
"days": "<span color='#cba6f7'><b>{}</b></span>",
|
||||
"weeks": "<span color='#a6e3a1'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#f9e2af'><b>{}</b></span>",
|
||||
"today": "<span color='#1e1e2e' bgcolor='#a6e3a1'>{}</span>"
|
||||
}
|
||||
},
|
||||
"on-click": "flatpak run eu.betterbird.Betterbird -calendar"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
@@ -1,5 +1,5 @@
|
||||
/* --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- */
|
||||
@import url("file:///home/henrov/.config/shared/Colors.css");
|
||||
@import url("file:///home/henrov/.config/shared/colors.css");
|
||||
|
||||
/* --- Global --- */
|
||||
* {
|
||||
@@ -18,10 +18,12 @@ window#waybar {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------- */
|
||||
/* ---------GROUPS------------------------------------------------ */
|
||||
|
||||
/* --- Group anchors default visible --- */
|
||||
#custom-hardware-anchor,
|
||||
#custom-tray-anchor,
|
||||
#custom-system-anchor,
|
||||
#custom-connections-anchor {
|
||||
min-width: 80px;
|
||||
padding: 0 5px;
|
||||
@@ -32,6 +34,8 @@ window#waybar {
|
||||
|
||||
/* --- Hide anchors on hover of the group --- */
|
||||
#hardware:hover #custom-hardware-anchor,
|
||||
#tray:hover #custom-tray-anchor,
|
||||
#system:hover #custom-system-anchor,
|
||||
#connections:hover #custom-connections-anchor {
|
||||
opacity: 0;
|
||||
min-width: 0;
|
||||
@@ -40,6 +44,8 @@ window#waybar {
|
||||
}
|
||||
|
||||
#hardware:hover,
|
||||
#tray:hover,
|
||||
#system:hover,
|
||||
#connections:hover {
|
||||
min-width: 80px;
|
||||
}
|
||||
@@ -58,11 +64,12 @@ window#waybar {
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
.modules-left > box + box,
|
||||
.modules-center > box + box,
|
||||
.modules-right > box + box {
|
||||
margin-left: 5px;
|
||||
/* ------------------ WORKING ON GAP -------------------- */
|
||||
window box box widget box {
|
||||
margin: 0 12px;
|
||||
}
|
||||
/* ------------------ WORKING ON GAP -------------------- */
|
||||
|
||||
|
||||
.modules-left > widget label,
|
||||
.modules-left > label ,
|
||||
@@ -74,6 +81,8 @@ window#waybar {
|
||||
transition: padding 0.2s ease;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* -----------------------------
|
||||
WORKSPACES / WINDOWS MODULE
|
||||
----------------------------- */
|
||||
@@ -136,8 +145,9 @@ label#custom-windows:not(.active) {
|
||||
/* ---- Pulseaudio ---*/
|
||||
|
||||
#pulseaudio-slider {
|
||||
padding: 0;
|
||||
padding: 0 4px;
|
||||
margin: 0;
|
||||
min-width: 140px;
|
||||
}
|
||||
#pulseaudio-slider slider {
|
||||
min-height: 0px;
|
||||
@@ -147,10 +157,12 @@ label#custom-windows:not(.active) {
|
||||
background: linear-gradient(45deg, @blue, @green);
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#pulseaudio-slider trough {
|
||||
min-height: 10px;
|
||||
min-width: 80px;
|
||||
min-width: 120px;
|
||||
border-radius: 30px;
|
||||
background: transparent;
|
||||
}
|
||||
@@ -161,8 +173,11 @@ label#custom-windows:not(.active) {
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
|
||||
/* --------------------------------------------------------- */
|
||||
/* STATES / SPECIALS */
|
||||
#custom-notifications.notification,
|
||||
#custom-notifications.dnd-notification,
|
||||
#idle_inhibitor.activated {
|
||||
background: linear-gradient(45deg, @blue, @green);
|
||||
border: 2px solid transparent;
|
||||
@@ -209,9 +224,12 @@ label#custom-windows:not(.active) {
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
#custom-notifications {
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------- */
|
||||
/* GLOBAL MODULE SPACING */
|
||||
#clock,
|
||||
#idle_inhibitor,
|
||||
#battery:not(.warn),
|
||||
#cpu,
|
||||
@@ -219,7 +237,7 @@ label#custom-windows:not(.active) {
|
||||
#temperature,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#clock,
|
||||
#tray {
|
||||
margin: 0 5px;
|
||||
padding: 0 10px;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- */
|
||||
@import "~/.config/shared/Colors.css";
|
||||
@import "~/.config/shared/colors.css";
|
||||
|
||||
* {
|
||||
background-color: transparent;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
// Zed settings
|
||||
//
|
||||
// For information on how to configure Zed, see the Zed
|
||||
|
||||
@@ -9,7 +9,6 @@ brave
|
||||
btop
|
||||
chromium
|
||||
cliphist
|
||||
collabora-online
|
||||
comma
|
||||
direnv
|
||||
duf
|
||||
@@ -23,7 +22,8 @@ git
|
||||
gparted
|
||||
grim
|
||||
grimblast
|
||||
galculator
|
||||
gnome-calculator
|
||||
qalculate-gtk
|
||||
handbrake
|
||||
hyperfine
|
||||
just
|
||||
@@ -44,6 +44,7 @@ qdirstat
|
||||
ripgrep
|
||||
signal-desktop
|
||||
slurp
|
||||
solidtime-desktop
|
||||
spotify
|
||||
solaar
|
||||
swappy
|
||||
@@ -65,3 +66,4 @@ zoxide
|
||||
#flatpaks
|
||||
eu.betterbird.Betterbird
|
||||
com.todoist.Todoist
|
||||
com.logseq.Logseq
|
||||
|
||||
@@ -25,20 +25,28 @@ in
|
||||
text = ""; # empty file
|
||||
};
|
||||
|
||||
home.file.".config/flameshot/flameshot.ini".text = ''
|
||||
[General]
|
||||
; Border color: A solid blend of @blue and @green (approximates the gradient)
|
||||
buttonColor=#95c2e0
|
||||
; Sidebar and inactive elements: Use @surface2 for subtlety
|
||||
sidebarColor=#585b70
|
||||
; Active buttons: Use @peach for contrast
|
||||
buttonActiveColor=#fab387
|
||||
; Text/icons: Use @text for readability
|
||||
contrastingUIColor=#cdd6f4
|
||||
showDesktopNotification=true
|
||||
savePath=${config.xdg.picturesDir}/Screenshots
|
||||
filenamePattern=$Y-$m-$d_$H-$M-$S
|
||||
copyPathAfterCapture=true
|
||||
'';
|
||||
services.flameshot = {
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
uiColor = "#97cbbe";
|
||||
contrastUiColor = "#1e1e2e";
|
||||
showDesktopNotification = true;
|
||||
savePath = "/home/${username}/Pictures/Screenshots";
|
||||
filenamePattern = "$Y-$m-$d_$H-$M-$S";
|
||||
useGrimAdapter = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.flameshot = {
|
||||
Service = {
|
||||
Environment = [
|
||||
"WAYLAND_DISPLAY=wayland-1"
|
||||
"XDG_CURRENT_DESKTOP=hyprland"
|
||||
"XDG_SESSION_TYPE=wayland"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
username = "henrov";
|
||||
username = config.defaultUser or "henrov";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -17,16 +18,4 @@ in
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.users.userLinger = [${username}];
|
||||
|
||||
# Hyprland config (if managed via Nix)
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
config = {
|
||||
autostart = [
|
||||
"systemctl --user start kdeconnect.service"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
extraConfigFile = "${flakeRoot}/generated/.config/kitty/extra.conf";
|
||||
|
||||
extraConfig =
|
||||
if builtins.pathExists extraConfigFile
|
||||
then builtins.readFile extraConfigFile
|
||||
@@ -18,16 +16,13 @@ in
|
||||
environment.systemPackages = [
|
||||
pkgs.kitty
|
||||
];
|
||||
|
||||
#################################
|
||||
# Home Manager
|
||||
#################################
|
||||
home-manager.users = {
|
||||
"${username}" = {
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
confirm_os_window_close = lib.mkForce 0;
|
||||
dynamic_background_opacity = lib.mkForce true;
|
||||
@@ -36,11 +31,10 @@ in
|
||||
window_padding_width = lib.mkForce 10;
|
||||
background_opacity = lib.mkForce "0.5";
|
||||
background_blur = lib.mkForce 5;
|
||||
notify_on_command_complete = lib.mkForce "never";
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
${extraConfig}
|
||||
|
||||
# Theme
|
||||
include themes/Catppuccin-Mocha.conf
|
||||
'';
|
||||
|
||||
@@ -1,36 +1,37 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, home-manager, inputs, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
assetPath = "${flakeRoot}/generated/.config/hypr";
|
||||
|
||||
hyprlandPkg =
|
||||
pkgs.hyprland or
|
||||
pkgs.hyprland-git or
|
||||
inputs.hyprland.packages.${pkgs.system}.default;
|
||||
|
||||
in
|
||||
{
|
||||
# Install Hyprland systemwide
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland.withUWSM = true;
|
||||
programs.hyprland.package = hyprlandPkg;
|
||||
|
||||
environment.systemPackages = [ hyprlandPkg ];
|
||||
|
||||
# Home Manager user configuration
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
home.file = {
|
||||
".config/hypr/animations.conf" = { source = "${assetPath}/animations.conf"; force = true; };
|
||||
".config/hypr/behaviour.conf" = { source = "${assetPath}/behaviour.conf"; force = true; };
|
||||
".config/hypr/bindings.conf" = { source = "${assetPath}/bindings.conf"; force = true; };
|
||||
".config/hypr/exec-once.conf" = { source = "${assetPath}/exec-once.conf"; force = true; };
|
||||
".config/hypr/hypridle.conf" = { source = "${assetPath}/hypridle.conf"; force = true; };
|
||||
".config/hypr/hyprland.conf" = { source = "${assetPath}/hyprland.conf"; force = true; };
|
||||
".config/hypr/hyprlock.conf" = { source = "${assetPath}/hyprlock.conf"; force = true; };
|
||||
".config/hypr/layer-rules.conf" = { source = "${assetPath}/layer-rules.conf"; force = true; };
|
||||
".config/hypr/layout.conf" = { source = "${assetPath}/layout.conf"; force = true; };
|
||||
".config/hypr/monitor-rules.conf" = { source = "${assetPath}/monitor-rules.conf"; force = true; };
|
||||
".config/hypr/theming.conf" = { source = "${assetPath}/theming.conf"; force = true; };
|
||||
".config/hypr/window-rules.conf" = { source = "${assetPath}/window-rules.conf"; force = true; };
|
||||
".config/hypr/animations.conf" = { source = "${assetPath}/animations.conf"; force = true; };
|
||||
".config/hypr/behaviour.conf" = { source = "${assetPath}/behaviour.conf"; force = true; };
|
||||
".config/hypr/bindings.conf" = { source = "${assetPath}/bindings.conf"; force = true; };
|
||||
".config/hypr/exec-once.conf" = { source = "${assetPath}/exec-once.conf"; force = true; };
|
||||
".config/hypr/hypridle.conf" = { source = "${assetPath}/hypridle.conf"; force = true; };
|
||||
".config/hypr/hyprland.conf" = { source = "${assetPath}/hyprland.conf"; force = true; };
|
||||
".config/hypr/hyprlock.conf" = { source = "${assetPath}/hyprlock.conf"; force = true; };
|
||||
".config/hypr/layer-rules.conf" = { source = "${assetPath}/layer-rules.conf"; force = true; };
|
||||
".config/hypr/layout.conf" = { source = "${assetPath}/layout.conf"; force = true; };
|
||||
".config/hypr/monitor-rules.conf" = { source = "${assetPath}/monitor-rules.conf"; force = true; };
|
||||
".config/hypr/theming.conf" = { source = "${assetPath}/theming.conf"; force = true; };
|
||||
".config/hypr/window-rules.conf" = { source = "${assetPath}/window-rules.conf"; force = true; };
|
||||
".config/hypr/workspace-rules.conf" = { source = "${assetPath}/workspace-rules.conf"; force = true; };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -13,8 +13,8 @@ in
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
home.file = {
|
||||
".config/waybar/config" = {
|
||||
text = builtins.readFile "${assetPath}/config";
|
||||
".config/waybar/config.jsonc" = {
|
||||
text = builtins.readFile "${assetPath}/config.jsonc";
|
||||
force = true;
|
||||
};
|
||||
".config/waybar/style-dark.css" = {
|
||||
|
||||
@@ -1,45 +1,62 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Use the config option defaultUser directly, fallback to "henrov"
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Portal backends
|
||||
basePortal = pkgs.xdg-desktop-portal-gtk; # full portal implementation
|
||||
hyprlandPortal = pkgs.xdg-desktop-portal-hyprland; # Hyprland screencast
|
||||
homeDir = "/home/${username}";
|
||||
basePortal = pkgs.xdg-desktop-portal-gtk;
|
||||
hyprlandPortal = pkgs.xdg-desktop-portal-hyprland;
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Enable XDG desktop portals system-wide
|
||||
# XDG Desktop Portals (system)
|
||||
#################################
|
||||
xdg.portal.enable = true;
|
||||
|
||||
# Base + Hyprland portals
|
||||
xdg.portal.extraPortals = [ basePortal hyprlandPortal ];
|
||||
|
||||
# Map screencast interface explicitly to Hyprland
|
||||
xdg.portal.xdgOpenUsePortal = true;
|
||||
xdg.portal.extraPortals = [
|
||||
basePortal
|
||||
hyprlandPortal
|
||||
];
|
||||
xdg.portal.config = {
|
||||
"org.freedesktop.impl.portal.Screencast".backend = "hyprland";
|
||||
common = {
|
||||
default = [ "hyprland" "gtk" ];
|
||||
};
|
||||
hyprland = {
|
||||
default = [ "hyprland" "gtk" ];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||
"org.freedesktop.impl.portal.Settings" = [ "gtk" ];
|
||||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ];
|
||||
};
|
||||
};
|
||||
|
||||
#################################
|
||||
# Install portal packages system-wide
|
||||
# System packages
|
||||
#################################
|
||||
environment.systemPackages = [
|
||||
basePortal
|
||||
hyprlandPortal
|
||||
];
|
||||
|
||||
#################################
|
||||
# Home Manager user configuration
|
||||
# Home Manager user config
|
||||
#################################
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
home.packages = [
|
||||
basePortal
|
||||
hyprlandPortal
|
||||
];
|
||||
home-manager.users.${username} = {
|
||||
#################################
|
||||
# XDG user directories
|
||||
#################################
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
desktop = null;
|
||||
download = "${homeDir}/Downloads";
|
||||
documents = "${homeDir}/Documents";
|
||||
pictures = "${homeDir}/Pictures";
|
||||
music = null;
|
||||
publicShare = null;
|
||||
templates = "${homeDir}/Experiments";
|
||||
videos = "${homeDir}/Videos";
|
||||
extraConfig = {
|
||||
XDG_PROJECTS_DIR = "${homeDir}/Projects";
|
||||
XDG_WORK_DIR = "${homeDir}/Work";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,14 +31,6 @@ let
|
||||
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
cssContent = ''
|
||||
/* Catppuccin Mocha Palette - auto-generated, do not edit manually */
|
||||
'' + lib.concatStringsSep "\n" (
|
||||
lib.mapAttrsToList (name: value:
|
||||
"@define-color ${name} ${value};"
|
||||
) colors
|
||||
) + "\n@define-color base-alpha rgba(30, 30, 46, 0.9);";
|
||||
|
||||
qmlContent = ''
|
||||
pragma Singleton
|
||||
// Catppuccin Mocha Palette - auto-generated, do not edit manually
|
||||
@@ -55,8 +47,8 @@ in
|
||||
{
|
||||
home-manager.users.${username} = {
|
||||
home.file = {
|
||||
".config/shared/Colors.css" = {
|
||||
text = cssContent;
|
||||
".config/shared/colors.css" = {
|
||||
source = "${flakeRoot}/generated/.config/shared/colors.css";
|
||||
force = true;
|
||||
};
|
||||
".config/quickshell/Colors.qml" = {
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
tuigreetBin = "${pkgs.tuigreet}/bin/tuigreet";
|
||||
sessionsDir = "${pkgs.hyprland}/share/wayland-sessions";
|
||||
sessionsDir = "${pkgs.uwsm}/share/wayland-sessions";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Greetd (tuigreet)
|
||||
#################################
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
default_session = {
|
||||
command = ''
|
||||
@@ -21,24 +18,20 @@ in
|
||||
--remember \
|
||||
--remember-session \
|
||||
--sessions ${sessionsDir} \
|
||||
--cmd "start-hyprland"
|
||||
--cmd "uwsm start hyprland-uwsm.desktop"
|
||||
'';
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#################################
|
||||
# Fix TTY / boot noise issues
|
||||
#################################
|
||||
|
||||
systemd.services.greetd.serviceConfig = {
|
||||
Type = "idle";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
StandardError = "journal";
|
||||
|
||||
# Prevent boot log spam on tty
|
||||
TTYReset = true;
|
||||
TTYVHangup = true;
|
||||
TTYVTDisallocate = true;
|
||||
|
||||
@@ -36,6 +36,6 @@
|
||||
pkgs.linux-firmware
|
||||
pkgs.networkmanagerapplet
|
||||
pkgs.networkmanager_dmenu
|
||||
pkgs.iwgtk
|
||||
# pkgs.iwgtk
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
download-buffer-size = 536870912; # 512 MB
|
||||
cores = 2;
|
||||
max-jobs = 1;
|
||||
cores = 8;
|
||||
max-jobs = "auto";
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.configurationLimit = 3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
assetPath = "${flakeRoot}/generated/.config/swaync";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.swaynotificationcenter pkgs.libnotify ];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
# Do NOT enable services.swaync — it would claim the config files
|
||||
# and conflict with our home.file entries below.
|
||||
|
||||
home.file = {
|
||||
".config/swaync/config.json" = {
|
||||
text = builtins.readFile "${assetPath}/config.json";
|
||||
force = true;
|
||||
};
|
||||
".config/swaync/style.css" = {
|
||||
text = builtins.replaceStrings ["henrov"] [username] (builtins.readFile "${assetPath}/style.css");
|
||||
force = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Autostart swaync as a systemd user service instead
|
||||
systemd.user.services.swaync = {
|
||||
description = "SwayNotificationCenter";
|
||||
after = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||
Restart = "always";
|
||||
Environment = [
|
||||
"WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-1"}"
|
||||
"XDG_CURRENT_DESKTOP=Hyprland"
|
||||
];
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
}
|
||||
@@ -12,7 +12,7 @@ in
|
||||
isNormalUser = true;
|
||||
home = "/home/${username}";
|
||||
hashedPassword = "$6$S7iShgBxB.77CwmP$i0njK.2r3OL5UEvgZbmwZ0rnpZ4QyJcv8p9uCmJ4AiVPSMXkQkIwMLzyAOnJ0q8.tPLIp/7EquEIZeK8qbmgw/";
|
||||
extraGroups = [ "wheel" "networkmanager" "bluetooth" ];
|
||||
extraGroups = [ "wheel" "networkmanager" "bluetooth" "input" ];
|
||||
ignoreShellProgramCheck = true; # <-- avoids the assertion
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user