mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 14:40:19 +02:00
more style related changes
This commit is contained in:
parent
1de2a5aa0a
commit
5da82a8e80
12 changed files with 170 additions and 110 deletions
|
@ -6,6 +6,8 @@
|
|||
wl-clipboard
|
||||
xdg-utils
|
||||
sway-contrib.grimshot
|
||||
swaylock
|
||||
swaynotificationcenter
|
||||
];
|
||||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
|
36
flake.lock
generated
36
flake.lock
generated
|
@ -277,11 +277,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1737614530,
|
||||
"narHash": "sha256-s5+trj2UfrIWlrCm+hKDB5+36kY5scH9MxM9zfU+4qc=",
|
||||
"lastModified": 1737701591,
|
||||
"narHash": "sha256-S71nENrb8kBrEvihDD+1mzn5sRrRr1sAaNMkjWDx1h0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "7d9aaf2f175602b8511e4c5134c4a975628c6948",
|
||||
"rev": "c9248eec123e70ef1132bbedeae22e2af7011095",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -293,11 +293,11 @@
|
|||
"neovim-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1737560784,
|
||||
"narHash": "sha256-bW3ub7hI5Ml+4cFErZvlbbQNDmmycoroRYYAegj33qo=",
|
||||
"lastModified": 1737675744,
|
||||
"narHash": "sha256-2Q4SNciK6DHC5WknFSbk3aYjorayf9y4uz3tdtl/T1M=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "af0ef2ac9dd19b7c4005a3197334d3e7d554646c",
|
||||
"rev": "8bc28978b632362ae658f8d4a6327e07a8b371b2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -396,11 +396,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1737525964,
|
||||
"narHash": "sha256-3wFonKmNRWKq1himW9N3TllbeGIHFACI5vmLpk6moF8=",
|
||||
"lastModified": 1737557748,
|
||||
"narHash": "sha256-BaMuhctP1x00+8cBE2cJveJQb70/tWHI50MHj/ZrtOY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5757bbb8bd7c0630a0cc4bb19c47e588db30b97c",
|
||||
"rev": "606996d74f6e2a12635d41c1bf58bfc7ea3bb5ec",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -412,11 +412,11 @@
|
|||
},
|
||||
"nixpkgsSmall": {
|
||||
"locked": {
|
||||
"lastModified": 1737624615,
|
||||
"narHash": "sha256-LS94mLWVwLvHQEqXlxO9hQYbgUccoy33o7NsB/nFr6A=",
|
||||
"lastModified": 1737672001,
|
||||
"narHash": "sha256-YnHJJ19wqmibLQdUeq9xzE6CjrMA568KN/lFPuSVs4I=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d075248e4db179dd0b4fecf80c1aaa1de8954ddc",
|
||||
"rev": "035f8c0853c2977b24ffc4d0a42c74f00b182cd8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -428,11 +428,11 @@
|
|||
},
|
||||
"nixpkgsUnstable": {
|
||||
"locked": {
|
||||
"lastModified": 1737469691,
|
||||
"narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=",
|
||||
"lastModified": 1737632463,
|
||||
"narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab",
|
||||
"rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -444,11 +444,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1737569578,
|
||||
"narHash": "sha256-6qY0pk2QmUtBT9Mywdvif0i/CLVgpCjMUn6g9vB+f3M=",
|
||||
"lastModified": 1737672001,
|
||||
"narHash": "sha256-YnHJJ19wqmibLQdUeq9xzE6CjrMA568KN/lFPuSVs4I=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "47addd76727f42d351590c905d9d1905ca895b82",
|
||||
"rev": "035f8c0853c2977b24ffc4d0a42c74f00b182cd8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -85,7 +85,7 @@ blink=yes
|
|||
|
||||
[colors]
|
||||
# alpha=1.0
|
||||
# background=242424
|
||||
background=20111b
|
||||
# foreground=ffffff
|
||||
# flash=7f7f00
|
||||
# flash-alpha=0.5
|
||||
|
|
|
@ -183,8 +183,8 @@ input * {
|
|||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
#bindsym $mod+minus scratchpad show
|
||||
# useful shortcuts
|
||||
bindsym Print exec ~/.config/sway/screen_and_copy.sh area
|
||||
bindsym Ctrl+Print exec ~/.config/sway/screen_and_copy.sh output
|
||||
bindsym Print exec ~/.config/sway/scripts/screen_and_copy.sh area
|
||||
bindsym Ctrl+Print exec ~/.config/sway/scripts/screen_and_copy.sh output
|
||||
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.2
|
||||
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.2
|
||||
|
@ -227,3 +227,15 @@ bar {
|
|||
seat seat0 xcursor_theme "miku-cursor-linux" 36
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
||||
# enable numlock on start
|
||||
input type:keyboard xkb_capslock enabled
|
||||
input type:keyboard xkb_numlock enabled
|
||||
|
||||
# floating bitwarden
|
||||
for_window [app_id="^firefox$" title="^Extension: \(Bitwarden - Free Password Manager\) - Bitwarden — Mozilla Firefox$"] floating enable
|
||||
|
||||
# notification daemon
|
||||
exec swaync
|
||||
|
||||
bindsym $mod+Shift+n exec swaync-client -t -sw
|
Before Width: | Height: | Size: 420 KiB After Width: | Height: | Size: 420 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
|
@ -2,7 +2,14 @@
|
|||
"layer": "top",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["mpris", "wireplumber","cpu", "bluetooth", "network", "clock", "privacy"],
|
||||
"modules-right": [
|
||||
"wireplumber",
|
||||
"cpu",
|
||||
"bluetooth",
|
||||
"network",
|
||||
"clock",
|
||||
"privacy"
|
||||
],
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
},
|
||||
|
@ -40,10 +47,10 @@
|
|||
"network": {
|
||||
"interface": "wlp3s0",
|
||||
"format": "{ifname}",
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"format-wifi": " ",
|
||||
"format-ethernet": "",
|
||||
"format-disconnected": "", //An empty format will hide the module.
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"tooltip-format-ethernet": "{ifname} ",
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
|
@ -53,6 +60,26 @@
|
|||
"format": "",
|
||||
"format-disabled": "",
|
||||
"format-connected": ""
|
||||
}
|
||||
},
|
||||
|
||||
"custom/notification": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
:root {
|
||||
--primary-color: #7b002c;
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: "CodeNewRoman Nerd Font";
|
||||
font-weight: bold;
|
||||
|
@ -6,24 +10,27 @@
|
|||
}
|
||||
|
||||
window#waybar {
|
||||
margin: 12px 24px;
|
||||
background-color: #fff;
|
||||
|
||||
border: solid 2px var(--primary-color);
|
||||
min-height: 14px; /* set waybar's height to 14px */
|
||||
font-size: 14px; /* set only the font size to be bigger, which in turn will adjust the height of other elements */
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
#clock, #battery, #cpu, #wireplumber, #bluetooth {
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#wireplumber,
|
||||
#bluetooth {
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
border-bottom: solid 2px #7b002c;
|
||||
border-bottom: solid 2px var(--primary-color);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
min-height: 14px; /* set waybar's height to 18px */
|
||||
font-size: 14px; /* set only the font size to be bigger, which in turn will adjust the height of other elements */
|
||||
}
|
||||
|
|
|
@ -7,4 +7,5 @@
|
|||
./flatpak.nix
|
||||
./discord.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -4,4 +4,6 @@
|
|||
quickemu
|
||||
qemu
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [ "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" ];
|
||||
}
|
||||
|
|
|
@ -10,9 +10,18 @@ stdenv.mkDerivation {
|
|||
hash = "sha256-OQjjOc9VnxJ7tWNmpHIMzNWX6WsavAOkgPwK1XAMwtE=";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
cd miku-cursor-linux
|
||||
|
||||
mkdir -p $out/share/icons/miku-cursor-linux
|
||||
cp -r * $out/share/icons/miku-cursor-linux
|
||||
install -m644 index.theme $out/share/icons/miku-cursor-linux/index.theme
|
||||
|
||||
|
||||
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue