This commit is contained in:
2026-08-21 04:43:52 +03:30
parent af2189a587
commit 9b6b4958ff
9 changed files with 142 additions and 85 deletions
+2
View File
@@ -81,6 +81,8 @@
mesa-demos mesa-demos
wl-clipboard wl-clipboard
inputs.fetchit.packages.${pkgs.system}.default inputs.fetchit.packages.${pkgs.system}.default
gparted
polkit_gnome
]; ];
users.users.coast.isNormalUser = true; users.users.coast.isNormalUser = true;
+2 -2
View File
@@ -7,8 +7,8 @@
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.xkb.layout = "us"; services.xserver.xkb.layout = "us";
services.xserver.xkb.options = "eurosign:e,caps:escape"; services.xserver.xkb.options = "eurosign:e,caps:escape";
services.xserver.displayManager.lightdm.enable = true; services.displayManager.ly.enable = true;
services.xserver.displayManager.lightdm.greeters.gtk.enable = true; #services.xserver.displayManager.lightdm.greeters.gtk.enable = true;
#niriwm #niriwm
programs.niri.enable = true; programs.niri.enable = true;
@@ -2,6 +2,7 @@ spawn-at-startup "waybar"
spawn-at-startup "awww-daemon" spawn-at-startup "awww-daemon"
spawn-at-startup "awww" "img" "/home/coast/Wallpapers/nature2art.png" spawn-at-startup "awww" "img" "/home/coast/Wallpapers/nature2art.png"
spawn-sh-at-startup "XDG_DATA_DIRS=/etc/profiles/per-user/coast/share:/run/current-system/sw/share:$HOME/.nix-profile/share:$XDG_DATA_DIRS" spawn-sh-at-startup "XDG_DATA_DIRS=/etc/profiles/per-user/coast/share:/run/current-system/sw/share:$HOME/.nix-profile/share:$XDG_DATA_DIRS"
spawn-at-startup "qs"
input { input {
mod-key "Super" mod-key "Super"
@@ -1,6 +1,6 @@
const colors = { const colors = {
bg: "#1a1b26", bg: "#121212",
bgDark: "#16161a", bgDark: "#121212",
fg: "#cdd6f4", fg: "#cdd6f4",
muted: "#444b6a", muted: "#444b6a",
cyan: "#d3869b", cyan: "#d3869b",
+59 -14
View File
@@ -22,7 +22,7 @@ Scope {
PanelWindow { PanelWindow {
anchors { top: true; right: true } anchors { top: true; right: true }
margins { top: 56; right: 12 } margins { top: 12; right: 12 }
implicitWidth: 380 implicitWidth: 380
implicitHeight: Math.max(1, column.implicitHeight) implicitHeight: Math.max(1, column.implicitHeight)
@@ -41,19 +41,24 @@ Scope {
id: card id: card
required property var modelData required property var modelData
Layout.fillWidth: true
implicitHeight: cardLayout.implicitHeight + 20
radius: 12
color: Config.colors.bgDark
border.color: hoverArea.containsMouse ? Config.colors.purple : "transparent"
border.width: 1
Behavior on border.color { ColorAnimation { duration: 150 } }
Timer { Timer {
running: card.modelData.urgency !== NotificationUrgency.Critical id: dismissTimer
running: card.modelData.urgency !== NotificationUrgency.Critical && !hoverArea.containsMouse
interval: Config.notifications.timeout interval: Config.notifications.timeout
repeat: false repeat: false
onTriggered: card.modelData.dismiss() onTriggered: card.modelData.dismiss()
} }
Layout.fillWidth: true
implicitHeight: layout.implicitHeight + 20
radius: 12
color: Config.colors.bgDark
Rectangle { Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top anchors.top: parent.top
@@ -65,11 +70,15 @@ Scope {
: Config.colors.purple : Config.colors.purple
} }
RowLayout { ColumnLayout {
id: layout id: cardLayout
anchors.fill: parent anchors.fill: parent
anchors.margins: 10 anchors.margins: 10
anchors.leftMargin: 18 anchors.leftMargin: 18
spacing: 8
RowLayout {
Layout.fillWidth: true
spacing: 10 spacing: 10
Image { Image {
@@ -89,11 +98,9 @@ Scope {
Layout.fillWidth: true Layout.fillWidth: true
text: card.modelData.summary text: card.modelData.summary
color: Config.colors.cyan color: Config.colors.cyan
font.family: Config.bar.fontFamily font.family: Config.bar.fontFamily
font.pixelSize: Config.bar.fontSize font.pixelSize: Config.bar.fontSize
font.bold: true font.bold: true
elide: Text.ElideRight elide: Text.ElideRight
} }
@@ -102,20 +109,58 @@ Scope {
visible: text !== "" visible: text !== ""
text: card.modelData.body text: card.modelData.body
color: Config.colors.fg color: Config.colors.fg
font.family: Config.bar.fontFamily font.family: Config.bar.fontFamily
font.pixelSize: Config.bar.fontSize - 1 font.pixelSize: Config.bar.fontSize - 1
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
maximumLineCount: 4
elide: Text.ElideRight
}
}
}
RowLayout {
Layout.fillWidth: true
visible: card.modelData.actions.length > 0
spacing: 8
Repeater {
model: card.modelData.actions
delegate: Rectangle {
required property var modelData
Layout.fillWidth: true
Layout.preferredHeight: 26
radius: 6
color: actionArea.containsMouse ? Config.colors.purple : Qt.rgba(1, 1, 1, 0.05)
Text {
anchors.centerIn: parent
text: parent.modelData.text
color: Config.colors.fg
font.family: Config.bar.fontFamily
font.pixelSize: Config.bar.fontSize - 2
}
MouseArea {
id: actionArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: card.modelData.invokeAction(parent.modelData.identifier)
}
}
} }
} }
} }
MouseArea { MouseArea {
id: hoverArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
onClicked: card.modelData.dismiss() onClicked: card.modelData.dismiss()
z: -1
} }
} }
} }
+21 -1
View File
@@ -95,9 +95,29 @@ in
pkgs.libnotify pkgs.libnotify
pkgs.kdePackages.kdenlive pkgs.kdePackages.kdenlive
pkgs.obs-cmd pkgs.obs-cmd
pkgs.gedit
pkgs.feishin pkgs.feishin
pkgs.alsa-utils pkgs.alsa-utils
pkgs.gnome-themes-extra pkgs.gnome-themes-extra
pkgs.sxhkd
pkgs.hsetroot
]; ];
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit = {
Description = "polkit-gnome-authentication-agent-1";
After = [ "graphical-session.target" ];
Wants = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
} }
@@ -4,7 +4,7 @@
programs.waybar.package = pkgs.waybar; programs.waybar.package = pkgs.waybar;
programs.waybar.systemd.enable = false; programs.waybar.systemd.enable = false;
programs.waybar.settings.mainBar.layer = "top"; programs.waybar.settings.mainBar.layer = "top";
programs.waybar.settings.mainBar.position = "top"; programs.waybar.settings.mainBar.position = "bottom";
programs.waybar.settings.mainBar.spacing = "0"; programs.waybar.settings.mainBar.spacing = "0";
programs.waybar.settings.mainBar.height = 35; programs.waybar.settings.mainBar.height = 35;
programs.waybar.settings.mainBar.border-radius = 25; programs.waybar.settings.mainBar.border-radius = 25;
+6 -16
View File
@@ -5,16 +5,13 @@
font-family: "Iosevka Nerd Font"; font-family: "Iosevka Nerd Font";
font-size: 14px; font-size: 14px;
} }
window#waybar { window#waybar {
background-color: #000000; background-color: #000000;
margin: 0; margin: 0;
} }
#workspaces { #workspaces {
margin: 8px 0 4px 8px; margin: 6px 0 6px 8px;
} }
#workspaces button { #workspaces button {
color: #89b4fa; color: #89b4fa;
background: #16161a; background: #16161a;
@@ -25,7 +22,6 @@
font-weight: bold; font-weight: bold;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
#workspaces button.active { #workspaces button.active {
color: #09090F; color: #09090F;
margin-right: 6px; margin-right: 6px;
@@ -34,62 +30,56 @@
background-size: 200% 200%; background-size: 200% 200%;
animation: shift 6s ease infinite; animation: shift 6s ease infinite;
} }
@keyframes shift { @keyframes shift {
0% { background-position: 0% 50%; } 0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; } 50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; } 100% { background-position: 0% 50%; }
} }
#window { #window {
color: #d3869b; color: #d3869b;
margin: 8px 8px 4px 8px; margin: 6px 8px 6px 8px;
border-radius: 12px; border-radius: 12px;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
padding: 4px 12px; padding: 4px 12px;
font-weight: bold; font-weight: bold;
} }
#cpu, #cpu,
#network, #network,
#wireplumber, #wireplumber,
#battery { #battery {
color: #d3869b; color: #d3869b;
background: #16161a; background: #16161a;
margin: 8px 8px 4px 0; margin: 6px 8px 6px 0;
border-radius: 12px; border-radius: 12px;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
padding: 4px 12px; padding: 4px 12px;
font-weight: bold; font-weight: bold;
} }
#clock { #clock {
background: linear-gradient(135deg, #cdd6f4, #f38ba8); background: linear-gradient(135deg, #cdd6f4, #f38ba8);
background-size: 200% 200%; background-size: 200% 200%;
animation: shift 6s ease infinite; animation: shift 6s ease infinite;
margin: 8px 8px 4px 0; margin: 6px 8px 6px 0;
border-radius: 12px; border-radius: 12px;
padding: 4px 12px; padding: 4px 12px;
color: #09090F; color: #09090F;
font-weight: bold; font-weight: bold;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.3); text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
} }
#taskbar { #taskbar {
background: #16161a; background: #16161a;
color: #89b4fa; color: #89b4fa;
margin: 8px 8px 4px 0; margin: 6px 8px 6px 0;
border-radius: 12px; border-radius: 12px;
min-width: 38px; min-width: 38px;
padding: 3px; padding: 3px;
font-weight: bold; font-weight: bold;
} }
#custom-distro-icon { #custom-distro-icon {
background: radial-gradient(circle, rgba(203,166,247,1) 0%, rgba(193,168,247,1) 12%, rgba(249,226,175,1) 19%, rgba(189,169,247,1) 20%, rgba(182,171,247,1) 24%, rgba(198,255,194,1) 36%, rgba(177,172,247,1) 37%, rgba(170,173,248,1) 48%, rgba(255,255,255,1) 52%, rgba(166,174,248,1) 52%, rgba(160,175,248,1) 59%, rgba(148,226,213,1) 66%, rgba(155,176,248,1) 67%, rgba(152,177,248,1) 68%, rgba(205,214,244,1) 77%, rgba(148,178,249,1) 78%, rgba(144,179,250,1) 82%, rgba(180,190,254,1) 83%, rgba(141,179,250,1) 90%, rgba(137,180,250,1) 100%); background: radial-gradient(circle, rgba(203,166,247,1) 0%, rgba(193,168,247,1) 12%, rgba(249,226,175,1) 19%, rgba(189,169,247,1) 20%, rgba(182,171,247,1) 24%, rgba(198,255,194,1) 36%, rgba(177,172,247,1) 37%, rgba(170,173,248,1) 48%, rgba(255,255,255,1) 52%, rgba(166,174,248,1) 52%, rgba(160,175,248,1) 59%, rgba(148,226,213,1) 66%, rgba(155,176,248,1) 67%, rgba(152,177,248,1) 68%, rgba(205,214,244,1) 77%, rgba(148,178,249,1) 78%, rgba(144,179,250,1) 82%, rgba(180,190,254,1) 83%, rgba(141,179,250,1) 90%, rgba(137,180,250,1) 100%);
background-size: 400% 400%; background-size: 400% 400%;
color: #09090F; color: #09090F;
margin: 8px 4px 4px 8px; margin: 6px 4px 6px 8px;
border-radius: 12px; border-radius: 12px;
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
padding: 0; padding: 0;
@@ -1,7 +1,5 @@
{ pkgs, ... }: { ... }:
{ {
xsession.windowManager.bspwm.enable = true;
xsession.windowManager.bspwm.package = pkgs.bspwm-unstable;
xsession.windowManager.bspwm.settings = { xsession.windowManager.bspwm.settings = {
border_width = 2; border_width = 2;
focused_border_color = "#383838"; focused_border_color = "#383838";
@@ -37,7 +35,8 @@
### {{{ rerun/start processes ### {{{ rerun/start processes
# piss # piss
run "piss" "piss" #run "piss" "piss"
sxhkd
# picom # picom
run "picom" "picom --backend glx" run "picom" "picom --backend glx"