move to backup

This commit is contained in:
Dennis 2026-03-03 10:46:08 +01:00
parent 294dc66380
commit a0e3d792a9
182 changed files with 156 additions and 103 deletions

View file

@ -0,0 +1,7 @@
{ config, ... }:
{
xdg.configFile."awww/bin" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/awww/scripts";
};
}

View file

@ -0,0 +1,35 @@
#!/bin/sh
# Changes the wallpaper to a randomly chosen image in a given directory
# at a set interval.
DEFAULT_INTERVAL=300 # In seconds
if [ $# -lt 1 ] || [ ! -d "$1" ]; then
printf "Usage:\n\t\e[1m%s\e[0m \e[4mDIRECTORY\e[0m [\e[4mINTERVAL\e[0m]\n" "$0"
printf "\tChanges the wallpaper to a randomly chosen image in DIRECTORY every\n\tINTERVAL seconds (or every %d seconds if unspecified)." "$DEFAULT_INTERVAL"
exit 1
fi
# See awww-img(1)
RESIZE_TYPE="crop"
export AWWW_TRANSITION_FPS="${AWWW_TRANSITION_FPS:-60}"
export AWWW_TRANSITION_STEP="${AWWW_TRANSITION_STEP:-2}"
# Kill existing script executions
for pid in $(pidof -x "random-bg.sh"); do
if [ $pid != $$ ]; then
kill $pid
fi
done
while true; do
find "$1" -type f \
| while read -r img; do
echo "$(</dev/urandom tr -dc a-zA-Z0-9 | head -c 8):$img"
done \
| sort -n | cut -d':' -f2- \
| while read -r img; do
swww img --resize="$RESIZE_TYPE" "$img"
sleep "${2:-$DEFAULT_INTERVAL}"
done
done

View file

@ -0,0 +1,9 @@
{ ... }:
{
services.cliphist = {
enable = true;
allowImages = true;
systemdTargets = [ "graphical-session.target" ];
};
}

View file

@ -0,0 +1,10 @@
{
imports = [
./awww
./cliphist
./fuzzel
./niri
./swaync
./noctalia
];
}

View file

@ -0,0 +1,66 @@
{ config, pkgs, ... }:
{
xdg.configFile."fuzzel/bin" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/fuzzel/scripts";
};
xdg.desktopEntries = {
fuzzel-ssh = {
type = "Application";
name = "SSH";
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-ssh.sh";
icon = "ksmserver";
};
fuzzel-cliphist = {
type = "Application";
name = "Clipboard History";
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-cliphist.sh";
icon = "xclipboard";
};
open-project = {
type = "Application";
name = "Open Project";
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-projects.sh";
icon = "multitasking-view";
};
};
programs.fuzzel = {
enable = true;
settings = {
main = {
terminal = "${pkgs.wezterm}/bin/wezterm start -- ";
layer = "overlay";
font = "VictorMono Nerd Font:weight=300:size=15";
use-bold = true;
icon-theme = "Reversal-dark";
width = 85;
tabs = 2;
minimal-lines = true;
lines = 10;
vertical-pad = 20;
inner-pad = 25;
image-size-ratio = 1;
prompt = "Open: ";
};
colors = {
background = "0f0b15f5";
text = "ffffffff";
prompt = "807c9fff";
input = "ffffffff";
match = "c57fafff";
selection = "331531ff";
selection-match = "ffffffff";
selection-text = "c57fafff";
counter = "807c9fff";
border = "331531ff";
};
border = {
width = 2;
radius = 10;
selection-radius = 5;
};
};
};
}

View file

@ -0,0 +1,3 @@
#!/bin/sh
cliphist list | fuzzel --dmenu --prompt "Copy: " | cliphist decode | awk '{$1=$1};1' | head -c -1 | wl-copy

View file

@ -0,0 +1,17 @@
#!/bin/sh
projects=$(fd -d=1 -t=d . ~/dev)
projects_with_names=()
for project in ${projects[*]}; do
projects_with_names+=("$(basename $project)\t$project")
done
selected=$(printf "$projects_with_names" | fuzzel --dmenu --with-nth=1 --accept-nth=2 --prompt "Work on: ")
session_name=$(basename "$selected")
if [ "$selected" != "" ]; then
# niri msg action focus-workspace "code"
# zen-beta &
ghostty -e zellij attach "$session_name" --create
fi

View file

@ -0,0 +1,8 @@
#!/bin/sh
fish_executable="/run/current-system/sw/bin/fish"
selected=$(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | sort | tail -n +2 | fuzzel --dmenu --prompt "Connect to: ")
if [ "$selected" != "" ]; then
ghostty -e "$fish_executable" -c "ssh $selected"
fi

View file

@ -0,0 +1,56 @@
position = "top"
height = 24
icon_theme = "Reversal-dark"
[[start]]
type = "workspaces"
favorites = ["main", "code", "gaming", "other", "chat", "media"]
hidden = [ "7" ]
sort = "added"
[start.name_map]
"main" = ""
"code" = ""
"gaming" = "󰸽"
"other" = ""
"chat" = ""
"media" = ""
[[start]]
type = "label"
label = "Current: "
[[start]]
type = "focused"
icon_size = 16
[start.truncate]
mode = "end"
max_length = 40
[[center]]
type = "sys_info"
format = [
"h:dnsc-machine",
" {cpu_percent}% ({temp_c@k10temp Tccd1}°C)",
" {memory_used#G:<2.1}/{memory_total#G:<2.1}GB",
" {disk_used#G@/:.1}GB used ({disk_free#G@/:.0}GB free)"
]
[[end]]
type = "tray"
icon_size=15
[[end]]
type = "volume"
icon_size=16
[end.truncate]
mode = "end"
max_length = 20
[[end]]
type = "clock"
[[end]]
type = "notifications"

View file

@ -0,0 +1,171 @@
:root {
--color-dark-primary: #0f0b15;
--color-dark-secondary: #1d202f;
--color-white: #fff;
--color-white-muted: #807c9f;
--color-active: #d369af;
--color-urgent: #ff6a7a;
--color-muted: #331531;
--margin-lg: 1em;
--margin-sm: 0.5em;
}
* {
border-image: none;
border-radius: 0;
box-shadow: none;
font-family: VictorMono Nerd Font;
font-weight: 600;
color: var(--color-white);
background-color: var(--color-dark-primary);
border: none;
background-image: none;
}
*:hover {
background-image: none;
outline: 0;
border: none;
}
.background {
opacity: 0.94;
}
.background, .container {
background-color: var(--color-dark-primary);
}
#bar, popover, popover contents, calendar {
background-color: var(--color-dark-primary);
}
popover, popover contents, calendar {
background-color: var(--color-dark-primary);
}
.widget {
background-color: var(--color-dark-primary);
outline: 0;
-gtk-icon-filter: none;
}
#end {
margin-right: var(--margin-sm);
}
.sysinfo {
margin-right: var(--margin-sm);
background-color: var(--color-muted);
padding: 0 12px;
}
.sysinfo .item {
background-color: var(--color-muted);
color: var(--color-active);
padding: 0 4px;
margin: 0;
}
.clock {
font-weight: bold;
}
.popup-clock .calendar-clock {
font-size: 2.0em;
}
.popup-clock .calendar .today {
background-color: var(--color-active);
}
.popup-clock .calendar .day-number:selected {
background-color: var(--color-muted);
border: none;
outline: 0;
}
.workspaces {
background-color: var(--color-dark-primary);
}
.workspaces .item{
background-color: var(--color-dark-primary);
color: var(--color-white);
}
.workspaces .item label{
margin-left: 4px;
margin-right: 10px;
}
.workspaces .item:hover{
background-color: var(--color-active);
color: var(--color-white);
}
.workspaces .item:hover label{
background-color: var(--color-active);
color: var(--color-dark-primary);
}
.workspaces .item.visible label{
color: var(--color-dark-primary);
background-color: var(--color-active);
}
.workspaces .item.visible{
background-color: var(--color-dark-primary);
color: var(--color-muted);
}
.workspaces .item.focused {
background-color: var(--color-active);
color: var(--color-muted);
}
.workspaces .item.urgent {
background-color: var(--color-urgent);
}
.notifications .button {
margin: 2px 2px 0 0;
padding: 0 8px;
}
.notifications .count {
background-color: var(--color-active);
border-radius: 100%;
margin-top: 4px;
margin-left: 6px;
padding: 0 5px;
font-size: 12px;
}
.popup-volume .device-box .slider trough slider {
background-color: var(--color-white);
border-radius: 100%;
}
.popup-volume .device-box .slider trough highlight {
border: 4px solid var(--color-active);
}
.popup-volume .apps-box .app-box .slider trough slider {
background-color: var(--color-white);
border-radius: 100%;
}
.popup-volume .apps-box .app-box .slider trough highlight {
border: 4px solid var(--color-active);
}
#bar #start .label:first-child {
color: var(--color-white-muted);
margin-left: var(--margin-lg);
}
.focused {
margin-top: 1px;
}

View file

@ -0,0 +1,13 @@
{ config, inputs, pkgs, ... }:
{
programs.ironbar = {
enable = true;
systemd = true;
package = inputs.ironbar.packages.${pkgs.system}.default;
};
xdg.configFile."ironbar" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/ironbar/config";
};
}

View file

@ -0,0 +1,23 @@
{
services.displayManager = {
enable = true;
ly = {
enable = true;
settings = {
asterisk = "0x2022";
bigclock = "en";
default_input = "password";
doom_fire_height = 1;
doom_top_color = "0x00c57faf";
doom_middle_color = "0x00d369af";
doom_bottom_color = "0x00572454";
session_log = ".local/share/ly-session.log";
vi_mode = true;
vi_default_mode = "insert";
bg = "0x000f0b15";
border_fg = "0x00807c9f";
box-title = "dnsc-machine";
};
};
};
}

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
programs.niri.enable = true;
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
security.pam.services.hyprlock = { };
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-gnome
];
};
services.gvfs.enable = true;
}

View file

@ -0,0 +1,512 @@
// This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node.
// Check the wiki for a full description of the configuration:
// https://yalter.github.io/niri/Configuration:-Introduction
environment {
QT_QPA_PLATFORMTHEME "qt6ct"
}
// Input device configuration.
// Find the full list of options on the wiki:
// https://yalter.github.io/niri/Configuration:-Input
input {
keyboard {
xkb {
layout "eu"
}
numlock
}
// Next sections include libinput settings.
// Omitting settings disables them, or leaves them at their default values.
// All commented-out settings here are examples, not defaults.
touchpad {
// off
tap
// dwt
// dwtp
// drag false
// drag-lock
natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "two-finger"
// disabled-on-external-mouse
}
mouse {
// off
// natural-scroll
accel-speed -0.3
// accel-profile "flat"
// scroll-method "no-scroll"
}
tablet {
map-to-output "DP-3"
// calibration-matrix 1.0 1.0 1.0 1.0 1.0 1.0
}
// Uncomment this to make the mouse warp to the center of newly focused windows.
// warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them.
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
// focus-follows-mouse max-scroll-amount="0%"
}
output "DP-3" {
// off
mode "3440x1440@99.982"
scale 1
transform "normal"
}
cursor {
xcursor-theme "Bibata-Modern-Ice"
xcursor-size 24
hide-when-typing
hide-after-inactive-ms 5000
}
layout {
gaps 8
// When to center a column when changing focus, options are:
// - "never", default behavior, focusing an off-screen column will keep at the left
// or right edge of the screen.
// - "always", the focused column will always be centered.
// - "on-overflow", focusing a column will center it if it doesn't fit
// together with the previously focused column.
center-focused-column "on-overflow"
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
}
default-column-width { proportion 0.5; }
// By default focus ring and border are rendered as a solid background rectangle
// behind windows. That is, they will show up through semitransparent windows.
// This is because windows using client-side decorations can have an arbitrary shape.
//
// If you don't like that, you should uncomment `prefer-no-csd` below.
// Niri will draw focus ring and border *around* windows that agree to omit their
// client-side decorations.
//
// Alternatively, you can override it with a window rule called
// `draw-border-with-background`.
// You can change how the focus ring looks.
focus-ring {
// off
width 3
active-color "#c57faf"
inactive-color "#d369af"
}
// You can also add a border. It's similar to the focus ring, but always visible.
border {
// The settings are the same as for the focus ring.
// If you enable the border, you probably want to disable the focus ring.
off
width 4
active-color "#ffc87f"
inactive-color "#505050"
// Color of the border around windows that request your attention.
urgent-color "#9b0000"
// Gradients can use a few different interpolation color spaces.
// For example, this is a pastel rainbow gradient via in="oklch longer hue".
//
// active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue"
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
// You can enable drop shadows for windows.
shadow {
// Uncomment the next line to enable shadows.
// on
// By default, the shadow draws only around its window, and not behind it.
// Uncomment this setting to make the shadow draw behind its window.
//
// Note that niri has no way of knowing about the CSD window corner
// radius. It has to assume that windows have square corners, leading to
// shadow artifacts inside the CSD rounded corners. This setting fixes
// those artifacts.
//
// However, instead you may want to set prefer-no-csd and/or
// geometry-corner-radius. Then, niri will know the corner radius and
// draw the shadow correctly, without having to draw it behind the
// window. These will also remove client-side shadows if the window
// draws any.
//
// draw-behind-window true
// You can change how shadows look. The values below are in logical
// pixels and match the CSS box-shadow properties.
// Softness controls the shadow blur radius.
softness 30
// Spread expands the shadow.
spread 5
// Offset moves the shadow relative to the window.
offset x=0 y=5
// You can also change the shadow color and opacity.
color "#0007"
}
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
// You can think of them as a kind of outer gaps. They are set in logical pixels.
// Left and right struts will cause the next window to the side to always be visible.
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
// layer-shell panels and regular gaps.
struts {
// left 64
// right 64
// top 64
// bottom 64
}
}
// STARTUP
spawn-at-startup "waybar"
spawn-at-startup "swaync"
spawn-at-startup "swww-daemon"
spawn-sh-at-startup "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"
hotkey-overlay {
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
skip-at-startup
}
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored.
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
// This option will also fix border/focus ring drawing behind some semitransparent windows.
// After enabling or disabling this, you need to restart the apps for this to take effect.
prefer-no-csd
// You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory.
// The path is formatted with strftime(3) to give you the screenshot date and time.
screenshot-path "~/Pictures/Screenshots/taken_at_%Y-%m-%d %H-%M-%S.png"
// Animation settings.
// The wiki explains how to configure individual animations:
// https://yalter.github.io/niri/Configuration:-Animations
animations {
// Uncomment to turn off all animations.
off
// Slow down all animations by this factor. Values below 1 speed them up instead.
// slowdown 3.0
}
overview {
backdrop-color "#0f0b15"
}
// Window rules let you adjust behavior for individual windows.
// Find more information on the wiki:
// https://yalter.github.io/niri/Configuration:-Window-Rules
window-rule {
match app-id=r#"^steam$"#
}
// window-rule {
// match at-startup=true app-id=r#"^Spotify$"#
// open-on-workspace "media"
// }
// window-rule {
// match at-startup=true app-id=r#"^Signal$"#
// open-on-workspace "chat"
// }
// Open the Firefox picture-in-picture player as floating by default.
window-rule {
// This app-id regular expression will work for both:
// - host Firefox (app-id is "firefox")
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
match app-id=r#"zen-beta$"# title="^Picture-in-Picture$"
open-floating true
}
window-rule {
match app-id=r#"gimp$"# title="^GIMP$"
open-maximized true
}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
match app-id=r#"^org\.gnome\.World\.Secrets$"#
block-out-from "screen-capture"
// Use this instead if you want them visible on third-party screenshot tools.
// block-out-from "screencast"
}
// Example: enable rounded corners for all windows.
// (This example rule is commented out with a "/-" in front.)
window-rule {
geometry-corner-radius 12
clip-to-geometry true
}
debug {
// Allows notification actions and window activation from Noctalia.
honor-xdg-activation-with-invalid-serial
}
binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program
// like wev.
//
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
// when running as a winit window.
//
// Most actions that you can bind here can also be invoked programmatically with
// `niri msg action do-something`.
// Mod-Shift-/, which is usually the same as Mod-?,
// shows a list of important hotkeys.
Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Return hotkey-overlay-title="Open a terminal" { spawn "ghostty"; }
Mod+Space hotkey-overlay-title="Launcher" { spawn-sh "noctalia-shell ipc call launcher toggle"; }
Mod+B hotkey-overlay-title="Browser" { spawn "zen-beta"; }
Mod+M hotkey-overlay-title="System Monitor" { spawn-sh "noctalia-shell ipc call systemMonitor toggle"; }
Mod+N hotkey-overlay-title="File Manager" { spawn "nautilus"; }
Mod+Shift+V hotkey-overlay-title="Clipboard" { spawn-sh "noctalia-shell ipc call launcher clipboard"; }
Mod+Shift+M hotkey-overlay-title="Emoji" { spawn-sh "noctalia-shell ipc call launcher emoji"; }
Mod+Alt+L hotkey-overlay-title="Open session menu" { spawn-sh "noctalia-shell ipc call sessionMenu toggle"; }
Mod+Comma hotkey-overlay-title="Open system settings" { spawn-sh "noctalia-shell ipc call settings toggle"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
// For example, this is a standard bind to toggle the screen reader (orca).
// Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; }
// Example volume keys mappings for PipeWire & WirePlumber.
// The allow-when-locked=true property makes them work even when the session is locked.
// Using spawn-sh allows to pass multiple arguments together with the command.
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
// Example brightness key mappings for brightnessctl.
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
// but you need to manually put each argument in separate "" quotes.
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
// Open/close the Overview: a zoomed-out view of workspaces and windows.
// You can also move the mouse into the top-left hot corner,
// or do a four-finger swipe up on a touchpad.
Mod+O repeat=false { toggle-overview; }
Mod+Q repeat=false { close-window; }
Mod+Left { focus-column-left; }
Mod+Down { focus-window-down; }
Mod+Up { focus-window-up; }
Mod+Right { focus-column-right; }
Mod+H { focus-column-left; }
Mod+J { focus-window-or-workspace-down; }
Mod+K { focus-window-or-workspace-up; }
Mod+L { focus-column-right; }
Mod+Shift+H { move-column-left; }
Mod+Shift+J { move-column-to-workspace-down; }
Mod+Shift+K { move-column-to-workspace-up; }
Mod+Shift+L { move-column-right; }
Mod+A { focus-column-first; }
Mod+E { focus-column-last; }
Mod+Ctrl+A { move-column-to-first; }
Mod+Ctrl+E { move-column-to-last; }
Mod+D { focus-workspace-down; }
Mod+U { focus-workspace-up; }
Mod+Ctrl+D { move-column-to-workspace-down; }
Mod+Ctrl+U { move-column-to-workspace-up; }
Mod+Shift+Page_Down { move-workspace-down; }
Mod+Shift+Page_Up { move-workspace-up; }
Mod+Shift+U { move-workspace-down; }
Mod+Shift+I { move-workspace-up; }
// You can bind mouse wheel scroll ticks using the following syntax.
// These binds will change direction based on the natural-scroll setting.
//
// To avoid scrolling through workspaces really fast, you can use
// the cooldown-ms property. The bind will be rate-limited to this value.
// You can set a cooldown on any bind, but it's most useful for the wheel.
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
Mod+WheelScrollRight { focus-column-right; }
Mod+WheelScrollLeft { focus-column-left; }
Mod+Ctrl+WheelScrollRight { move-column-right; }
Mod+Ctrl+WheelScrollLeft { move-column-left; }
// Usually scrolling up and down with Shift in applications results in
// horizontal scrolling; these binds replicate that.
Mod+Shift+WheelScrollDown { focus-column-right; }
Mod+Shift+WheelScrollUp { focus-column-left; }
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
// Similarly, you can bind touchpad scroll "ticks".
// Touchpad scrolling is continuous, so for these binds it is split into
// discrete intervals.
// These binds are also affected by touchpad's natural-scroll, so these
// example binds are "inverted", since we have natural-scroll enabled for
// touchpads by default.
// Mod+TouchpadScrollDown { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+"; }
// Mod+TouchpadScrollUp { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; }
// You can refer to workspaces by index. However, keep in mind that
// niri is a dynamic workspace system, so these commands are kind of
// "best effort". Trying to refer to a workspace index bigger than
// the current workspace count will instead refer to the bottommost
// (empty) workspace.
//
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
// will all refer to the 3rd workspace.
Alt+1 { focus-workspace 1; }
Alt+2 { focus-workspace 2; }
Alt+3 { focus-workspace 3; }
Alt+4 { focus-workspace 4; }
Alt+5 { focus-workspace 5; }
Alt+6 { focus-workspace 6; }
Alt+7 { focus-workspace 7; }
Alt+8 { focus-workspace 8; }
Alt+9 { focus-workspace 9; }
Alt+Ctrl+1 { move-column-to-workspace 1; }
Alt+Ctrl+2 { move-column-to-workspace 2; }
Alt+Ctrl+3 { move-column-to-workspace 3; }
Alt+Ctrl+4 { move-column-to-workspace 4; }
Alt+Ctrl+5 { move-column-to-workspace 5; }
Alt+Ctrl+6 { move-column-to-workspace 6; }
Alt+Ctrl+7 { move-column-to-workspace 7; }
Alt+Ctrl+8 { move-column-to-workspace 8; }
Alt+Ctrl+9 { move-column-to-workspace 9; }
// Alternatively, there are commands to move just a single window:
// Mod+Ctrl+1 { move-window-to-workspace 1; }
// Switches focus between the current and the previous workspace.
// Mod+Tab { focus-workspace-previous; }
// The following binds move the focused window in and out of a column.
// If the window is alone, they will consume it into the nearby column to the side.
// If the window is already in a column, they will expel it out.
Mod+Period { consume-or-expel-window-right; }
// Consume one window from the right to the bottom of the focused column.
// Mod+Comma { consume-window-into-column; }
// Expel the bottom window from the focused column to the right.
// Mod+Period { expel-window-from-column; }
Mod+R { switch-preset-column-width; }
// Cycling through the presets in reverse order is also possible.
// Mod+R { switch-preset-column-width-back; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
Mod+F { maximize-column; }
Mod+Shift+F { fullscreen-window; }
// Expand the focused column to space not taken up by other fully visible columns.
// Makes the column "fill the rest of the space".
Mod+Ctrl+F { expand-column-to-available-width; }
Mod+C { center-column; }
// Center all fully visible columns on screen.
Mod+Ctrl+C { center-visible-columns; }
// Finer width adjustments.
// This command can also:
// * set width in pixels: "1000"
// * adjust width in pixels: "-5" or "+5"
// * set width as a percentage of screen width: "25%"
// * adjust width as a percentage of screen width: "-10%" or "+10%"
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
// set-column-width "100" will make the column occupy 200 physical screen pixels.
Mod+Minus { set-column-width "-10%"; }
Mod+Equal { set-column-width "+10%"; }
// Finer height adjustments when in column with other windows.
Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; }
// Move the focused window between the floating and the tiling layout.
Mod+Shift+S { toggle-window-floating; }
// Mod+Shift+V { switch-focus-between-floating-and-tiling; }
// Toggle tabbed column display mode.
// Windows in this column will appear as vertical tabs,
// rather than stacked on top of each other.
// Mod+W { toggle-column-tabbed-display; }
// Actions to switch layouts.
// Note: if you uncomment these, make sure you do NOT have
// a matching layout switch hotkey configured in xkb options above.
// Having both at once on the same hotkey will break the switching,
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
// Mod+Space { switch-layout "next"; }
// Mod+Shift+Space { switch-layout "prev"; }
Print { screenshot; }
// Applications such as remote-desktop clients and software KVM switches may
// request that niri stops processing the keyboard shortcuts defined here
// so they may, for example, forward the key presses as-is to a remote machine.
// It's a good idea to bind an escape hatch to toggle the inhibitor,
// so a buggy application can't hold your session hostage.
//
// The allow-inhibiting=false property can be applied to other binds as well,
// The quit action will show a confirmation dialog to avoid accidental exits.
Mod+Shift+E { quit; }
Ctrl+Alt+Delete { quit; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; }
// Other bindings
Mod+Ctrl+Alt+Y { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un/bot"; }
Mod+Ctrl+Alt+U { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un/black"; }
Mod+Ctrl+Alt+I { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un/classy"; }
Mod+Ctrl+Alt+O { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un/full"; }
Mod+Ctrl+Alt+P { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un/onepiece"; }
Mod+Ctrl+Alt+S { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"; }
Mod+S { spawn-sh "swaync-client -t -sw"; }
}
xwayland-satellite {
// off
path "xwayland-satellite"
}

View file

@ -0,0 +1,60 @@
{ config, ... }:
{
# Source niri config
xdg.configFile."niri" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/niri/config";
};
# Additional setup
services.polkit-gnome.enable = true;
# WM Utilities (split out if they need additional config)
programs.hyprlock.enable = true;
# Additional Desktop Entries
xdg.desktopEntries = {
screenshot = {
type = "Application";
name = "Screenshot";
exec = "niri msg action screenshot";
icon = "screenie";
};
screenshot-screen = {
type = "Application";
name = "Screenshot Screen";
exec = "niri msg action screenshot-screen";
icon = "screenie";
};
color-pickers = {
type = "Application";
name = "Color Picker";
exec = "hyprpicker -a -f=hex -n -l -q";
icon = "colorpicker";
};
notes = {
type = "Application";
name = "Notes";
exec = "ghostty --working-directory=${config.home.homeDirectory}/notes -e nvim -c \":lua Snacks.picker('files')\"";
icon = "gnotes";
};
lock = {
type = "Application";
name = "Lock";
exec = "hyprlock";
icon = "lock-screen";
};
logout = {
type = "Application";
name = "Logout";
exec = "niri msg action quit";
icon = "administration";
};
shutdown = {
type = "Application";
name = "Shutdown";
exec = "shutdown now";
icon = "com.github.bcedu.shutdownscheduler";
};
};
}

View file

@ -0,0 +1,135 @@
{ ... }:
{
programs.noctalia-shell = {
enable = true;
systemd.enable = true;
colors = {
mError = "#ff6a7a";
mOnError = "#ffffff";
mOnPrimary = "#0f0b15";
mOnSecondary = "#331531";
mOnSurface = "#ffffff";
mOnSurfaceVariant = "#bf8a9f";
mOnTertiary = "#35afbf";
mOnHover = "#ffffff";
mOutline = "#807c9f";
mPrimary = "#c57faf";
mSecondary = "#d369af";
mShadow = "#000000";
mSurface = "#0f0b15";
mHover = "#d369af";
mSurfaceVariant = "#1d202f";
mTertiary = "#133d56";
};
settings = {
# configure noctalia here
bar = {
density = "default";
position = "left";
floating = false;
showCapsule = false;
marginHorizontal = 8;
widgets = {
left = [
{
id = "ControlCenter";
useDistroLogo = false;
colorize = true;
}
{
formatHorizontal = "HH:mm";
formatVertical = "HH mm";
id = "Clock";
useMonospacedFont = true;
usePrimaryColor = true;
}
{
id = "SystemMonitor";
}
];
center = [
{
hideUnoccupied = false;
id = "Workspace";
labelMode = "index";
}
];
right = [
{
id = "Bluetooth";
}
{
id = "Volume";
}
{
id = "Tray";
}
];
};
};
colorSchemes = {
darkMode = true;
};
ui = {
fontDefault = "VictorMono Nerd Font";
fontFixed = "VictorMono Nerd Font";
panelBackgroundOpacity = 1;
};
general = {
avatarImage = "/home/drfoobar/.face";
radiusRatio = 0.2;
enableShadows = false;
};
location = {
monthBeforeDay = true;
name = "Munich, Germany";
};
appLauncher = {
enableClipboardHistory = true;
autoPasteClipboard = true;
terminalCommand = "ghostty -e";
iconMode = "tabler";
showIconBackground = true;
};
systemMonitor = {
enableDgpuMonitoring = true;
};
sessionMenu = {
enableCountdown = true;
countdownDuration = 4000;
};
powerOptions = [
{
action = "lock";
enabled = true;
}
{
action = "suspend";
enabled = true;
}
{
action = "reboot";
enabled = true;
}
{
action = "logout";
enabled = true;
}
{
action = "shutdown";
enabled = true;
}
];
};
};
home.file.".cache/noctalia/wallpapers.json" = {
text = builtins.toJSON {
defaultWallpaper = "~/Pictures/Wallpapers/safe/dark/mountain.jpg";
wallpapers = {
"DP-1" = "~/Pictures/Wallpapers/safe/dark/mountain.jpg";
};
};
};
}

View file

@ -0,0 +1,51 @@
{
"control-center-layer": "top",
"control-center-margin-bottom": 0,
"control-center-margin-left": 0,
"control-center-margin-right": 0,
"control-center-margin-top": 0,
"cssPriority": "application",
"layer": "overlay",
"layer-shell": true,
"notification-2fa-action": true,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"notification-icon-size": 32,
"notification-inline-replies": false,
"positionX": "right",
"positionY": "top",
"widget-config": {
"title": {
"clear-all-button": false,
"text": "Notifications"
},
"buttons-grid": {
"actions": [
{
"command": "niri msg action quit",
"label": " 󰍃 "
},
{
"command": "systemctl reboot",
"label": " 󰜉 "
},
{
"command": "systemctl poweroff",
"label": " 󰐥 "
}
],
"buttons-per-row": 3
},
"mpris": {
"autohide": true,
"loop-carousel": false,
"show-album-art": "always"
}
},
"widgets": [
"title",
"notifications",
"mpris",
"buttons-grid"
]
}

View file

@ -0,0 +1,10 @@
{ config, ... }:
{
xdg.configFile."swaync/style.css" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/swaync/style.css";
};
xdg.configFile."swaync/config.json" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/swaync/config.json";
};
}

View file

@ -0,0 +1,459 @@
@define-color bg #0f0b15;
@define-color bg-secondary #1d202f;
@define-color fg #ffffff;
@define-color fg_alt #bf8a9f;
@define-color fg_dim #807c9f;
@define-color bg #0f0b15;
@define-color bg_secondary #1d202f;
@define-color grey #807c9f;
@define-color grey_bright #807c9f;
@define-color red #f47359;
@define-color red_bright #ff6a7a;
@define-color red_subtle_bg #67182f;
@define-color green #29a444;
@define-color green_bright #00a392;
@define-color green_subtle_bg #10452f;
@define-color yellow #b58a52;
@define-color yellow_bright #df9080;
@define-color yellow_brighter #FCC1B6;
@define-color yellow_subtle_bg #54362a;
@define-color blue #3f95f6;
@define-color blue_bright #029fff;
@define-color blue_subtle_bg #2a346e;
@define-color blue_subtle_dark_bg #003045;
@define-color magenta #d369af;
@define-color magenta_bright #af85ea;
@define-color magenta_brighter #c57faf;
@define-color magenta_subtle_bg #572454;
@define-color magenta_subtle_bg_darker #331531;
@define-color cyan #4fbaef;
@define-color cyan_bright #35afbf;
@define-color cyan_subtle_bg #133d56;
@define-color silver #b8c6d5;
@define-color silver_bright #ffffff;
* {
font-family: "VictorMono NF SemiBold";
}
notificationwindow, blankwindow, blankwindow {
background: transparent;
}
.close-button {
/* The notification Close Button */
background: @magenta_subtle_bg_darker;
color: @magenta_brighter;
text-shadow: none;
padding: 0;
border-radius: 100%;
margin-top: 16px;
margin-right: 16px;
box-shadow: none;
border: none;
min-width: 24px;
min-height: 24px;
}
.close-button:hover {
box-shadow: none;
background: @red_subtle_bg;
color: @red_bright;
border: none;
}
.notification-row {
background: none;
outline: none;
}
.notification-row:focus {
background-color: @bg_secondary;
}
.notification-row .notification-background {
padding: 0;
background: transparent;
}
.notification-row .notification-background .notification {
/* The actual notification */
border: none;
border-radius: 12px;
padding: 6px 12px;
margin: 8px;
background-color: @bg_secondary;
}
.notification-row .notification-background .notification:hover {
background-color: @bg_secondary;
}
.notification-row .notification-background .notification.low {
/* Low Priority Notification */
}
.notification-row .notification-background .notification.normal {
/* Normal Priority Notification */
}
.notification-row .notification-background .notification.critical {
/* Critical Priority Notification */
}
.notification-row .notification-background .notification .notification-default-action {
/* The large action that also displays the notification summary and body */
padding: 4px;
margin: 0;
box-shadow: none;
background: transparent;
border: none;
color: @fg;
border-radius: 12px;
}
.notification-row .notification-background .notification .notification-default-action:hover {
-gtk-icon-filter: none;
background-color: @bg_secondary;
}
.notification-row .notification-background .notification .notification-default-action:not(:only-child) {
/* When alternative actions are visible */
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content {
background: transparent;
border-radius: 12px;
padding: 0;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .image {
/* Notification Primary Image */
-gtk-icon-filter: none;
-gtk-icon-size: 24px;
border-radius: 100px;
/* Size in px */
margin: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .app-icon {
/* Notification app icon (only visible when the primary image is set) */
-gtk-icon-filter: none;
-gtk-icon-size: 24px;
-gtk-icon-shadow: 0 1px 4px black;
margin: 6px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box label {
/* Fixes base GTK 4 CSS setting a filter of opacity 50% for some odd reason */
filter: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .summary {
/* Notification summary/title */
font-size: 1.2rem;
margin-top: 6px;
margin-left: 6px;
font-weight: bold;
background: transparent;
color: @fg;
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .time {
/* Notification time-ago */
margin-top: 8px;
font-size: 1rem;
font-weight: normal;
background: transparent;
color: @fg_dim;
text-shadow: none;
margin-right: 32px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .text-box .body {
/* Notification body */
margin-top: 4px;
margin-bottom: 6px;
margin-left: 6px;
font-size: 1rem;
font-weight: normal;
background: transparent;
color: @fg_dim;
text-shadow: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content progressbar {
/* The optional notification progress bar */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .body-image {
/* The "extra" optional bottom notification image */
margin-top: 4px;
background-color: white;
-gtk-icon-filter: none;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply {
/* The inline reply section */
margin-top: 4px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-entry {
background: @bg;
color: @green_bright;
caret-color: @green_bright;
border: @green_subtle_bg;
border-radius: 12px;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button {
margin-left: 4px;
background: @green_subtle_bg;
border: green_subtle_bg;
border-radius: 12px;
color: @green_bright;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:disabled {
background: initial;
color: @grey;
border: 2px solid;
border-color: transparent;
}
.notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:hover {
background: @bg_secondary;
}
.notification-row .notification-background .notification .notification-alt-actions {
background: none;
border-bottom-left-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
padding: 4px;
}
.notification-row .notification-background .notification .notification-action {
/* The alternative actions below the default action */
margin: 4px;
padding: 0;
}
.notification-row .notification-background .notification .notification-action > button {
border-radius: 12px;
color: @fg;
}
.notification-group {
margin: 0;
padding: 0;
}
.notification-group:focus {
background: @bg;
}
.notification-group.low {
/* Low Priority Group */
}
.notification-group.normal {
/* Low Priority Group */
}
.notification-group.critical {
/* Low Priority Group */
}
.notification-group .notification-group-close-button .close-button {
}
.notification-group .notification-group-buttons, .notification-group .notification-group-headers {
margin: 0 10px 4px 10px;
color: @fg;
}
.notification-group .notification-group-headers {
/* Notification Group Headers */
}
.notification-group .notification-group-headers .notification-group-header {
font-size: 1.1rem;
font-weight: bold;
}
.notification-group .notification-group-headers .notification-group-icon {
margin-top: 2px;
color: @fg_dim;
-gtk-icon-size: 24px;
}
.notification-group .notification-group-buttons {
/* Notification Group Buttons */
background-color: @bg;
color: @fg_dim;
}
.notification-group.collapsed {
/* When another group is expanded, lower the opacity of the collapsed ones */
}
.notification-group.collapsed.not-expanded {
opacity: 0.4;
}
.notification-group.collapsed .notification-row .notification {
background-color: @bg_secondary;
}
.notification-group.collapsed .notification-row:not(:last-child) {
/* Top notification in stack */
/* Set lower stacked notifications opacity to 0 */
}
.notification-group.collapsed .notification-row:not(:last-child) .notification-action,
.notification-group.collapsed .notification-row:not(:last-child) .notification-default-action {
opacity: 0;
}
.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
background-color: @bg_secondary;
}
.control-center {
/* The Control Center which contains the old notifications + widgets */
background-color: @bg;
border-radius: 0;
color: @fg;
opacity: 0.95;
}
.control-center .control-center-list-placeholder {
/* The placeholder when there are no notifications */
opacity: 0;
}
.control-center .control-center-list {
/* List of notifications */
background: transparent;
}
.control-center .control-center-list .notification {
box-shadow: none;
border: 2px solid @magenta_subtle_bg;
}
.control-center .control-center-list .notification .notification-default-action,
.control-center .control-center-list .notification .notification-action {
}
.control-center .control-center-list .notification .notification-default-action:hover,
.control-center .control-center-list .notification .notification-action:hover {
background-color: @bg_secondary;
}
.blank-window {
/* Window behind control center and on all other monitors */
background: transparent;
}
.floating-notifications {
background: transparent;
}
.floating-notifications .notification {
box-shadow: none;
}
.widget-mpris {
padding: 0;
opacity: 1;
}
.widget-mpris .widget-mpris-player {
margin-bottom: 12px;
border-radius: 12px;
border: 2px solid @magenta_subtle_bg_darker;
}
.widget-mpris .widget-mpris-player .mpris-background {
filter: blur(10px);
}
.widget-mpris .widget-mpris-player .mpris-overlay {
padding: 12px;
}
.widget-mpris .widget-mpris-player .mpris-overlay button:hover {
/* The media player buttons (play, pause, next, etc...) */
background: @magenta_subtle_bg_darker;
color: @magenta_brighter;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art {
border-radius: 8px;
-gtk-icon-size: 64px;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-title {
font-weight: bold;
font-size: 1.25rem;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-subtitle {
font-size: 1.1rem;
color: @fg_alt;
}
.widget-mpris .widget-mpris-player .mpris-overlay > box > button {
/* Change player control buttons */
color: @fg;
}
.widget-mpris .widget-mpris-player .mpris-overlay > box > button:hover {
background-color: @magenta_subtle_bg_darker;
}
.widget-mpris > box > button {
/* Change player side buttons */
}
.widget-mpris > box > button:disabled {
/* Change player side buttons insensitive */
color: @grey;
}
.widget-title > label {
margin-top: 8px;
margin-left: 12px;
font-size: 1.8rem;
font-weight: bold;
color: @fg;
}
/* .widget-buttons-grid { */
/* padding: 0 20px 12px 20px; */
/* } */
.widget-buttons-grid flowboxchild > button {
padding: 12px 0;
margin: 8px;
background-color: @magenta;
color: @fg;
opacity: 1;
}
.widget-buttons-grid flowboxchild > button:hover {
padding: 12px 0;
background-color: @magenta;
box-shadow: inset 0px 0px 15px 3px rgba(0,0,0,0.8);
transition: none;
color: @fg;
}
.widget-buttons-grid flowboxchild > button.toggle:checked {
/* style given to the active toggle button */
}

View file

@ -0,0 +1,126 @@
{
// Bar Options
"output": "DP-3",
"position": "left",
"width": 36,
"margin-left": 8,
"margin-top": 8,
"margin-bottom": 8,
// Placing Modules
"modules-left": [
"clock",
"custom/cpu-label",
"cpu",
"custom/memory-label",
"memory",
"custom/disk-label",
"disk",
"custom/nvidia-label",
"custom/nvidia"
],
"modules-center": [
"niri/workspaces"
],
"modules-right": [
"wireplumber#source",
"wireplumber#sink",
"tray",
"custom/power"
],
// Module Configuration
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
"active": "󰄯",
"default": "󰄰"
}
},
"clock": {
"interval": 60,
"format": "{:%H\n%M}",
"format-alt": "<span color='#d369af'>{:%d\n%m}</span>",
"tooltip": false,
"justify": "center"
},
"custom/cpu-label": {
"format": "CPU",
"tooltip": false
},
"cpu": {
"interval": "30",
"format": "{usage}%",
"max-length": 2
},
"custom/memory-label": {
"format": "MEM",
"tooltip": false
},
"memory": {
"interval": "30",
"format": "{percentage}%",
"max-length": 2
},
"custom/disk-label": {
"format": "SSD",
"tooltip": false
},
"disk": {
"interval": "30",
"format": "{percentage_used}%",
"max-length": 2
},
"custom/nvidia-label": {
"format": "GPU",
"tooltip": false
},
"custom/nvidia": {
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,nounits,noheader",
"format": "{}°",
"tooltip": false,
"interval": 10
},
"wireplumber#source": {
"node-type": "Audio/Source",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"on-click-right": "pwvucontrol",
"scroll-step": 5.0,
"tooltip-format": "{node_name} ({source_volume}%)",
"format": "{icon}",
"format-muted": "󰍭",
"format-icons": {
"default": [
"󰍬"
]
}
},
"wireplumber#sink": {
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pwvucontrol",
"scroll-step": 5.0,
"tooltip-format": "{node_name} ({volume}%)",
"format": "{icon}",
"format-muted": "󰖁",
"format-icons": {
"default": [
"󰕿",
"󰖀",
"󰕾"
]
}
},
"tray": {
"icon-size": 14,
"spacing": 18
},
"custom/power": {
"format": "󰐥",
"tooltip": false,
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
"lock": "hyprlock",
"reboot": "reboot",
"shutdown": "shutdown now"
}
}
}

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="lock">
<property name="label">Lock</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="reboot">
<property name="label">Reboot</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="shutdown">
<property name="label">Shutdown</property>
</object>
</child>
</object>
</interface>

View file

@ -0,0 +1,86 @@
* {
font-family: "VictorMono Nerd Font Propo";
font-size: 12px;
font-weight: bold;
background: transparent;
}
tooltip,
menu {
background: rgba(15, 11, 12, 0.9);
border-radius: 8px;
border: 2px solid #572454;
}
menuitem {
color: #ffffff;
margin-left: 4px;
margin-right: 4px;
border-radius: 4px;
}
menuitem:hover {
color: #331531;
background-color: #c57faf;
}
window#waybar {
background-color: rgba(15, 11, 12, 0.95);
border-radius: 8px;
color: #ffffff;
}
#workspaces button {
padding: 2px 10px;
margin: 0;
color: #d369af;
}
#clock {
font-size: 15px;
padding: 8px 0 8px;
}
#custom-cpu-label,
#custom-memory-label,
#custom-disk-label,
#custom-nvidia-label {
color: #572454;
padding-top: 6px;
border-top: 1px solid #572454;
}
#custom-nvidia {
border-bottom: 1px solid #572454;
}
#cpu,
#memory,
#disk,
#custom-nvidia {
color: #d369af;
padding-bottom: 8px;
}
#wireplumber {
font-size: 16px;
margin-top: 4px;
margin-bottom: 4px;
}
#tray {
margin: 4px;
margin-top: 0;
border-radius: 4px;
padding-top: 10px;
padding-bottom: 10px;
}
#custom-power {
background-color: #331531;
font-size: 16px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
padding-top: 6px;
padding-bottom: 6px;
}

View file

@ -0,0 +1,11 @@
{ config, ... }:
{
xdg.configFile."waybar" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/waybar/config";
};
programs.waybar = {
enable = true;
};
}