feat: revert back to sway
This commit is contained in:
parent
36f625d387
commit
cacfc5b2d3
7 changed files with 121 additions and 150 deletions
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
hyprland = {
|
hyprland = {
|
||||||
url = "github:hyprwm/Hyprland?ref=v0.39.0";
|
url = "github:hyprwm/Hyprland?ref=v0.39.0";
|
||||||
inputs.hyprland.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
hy3 = {
|
hy3 = {
|
||||||
url = "github:outfoxxed/hy3";
|
url = "github:outfoxxed/hy3";
|
||||||
|
|
@ -54,7 +53,7 @@
|
||||||
./modules
|
./modules
|
||||||
./hosts/T430
|
./hosts/T430
|
||||||
|
|
||||||
# nixos-hardware.nixosModules.lenovo-thinkpad-t430
|
nixos-hardware.nixosModules.lenovo-thinkpad-t430
|
||||||
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,7 @@
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
|
boot.kernelModules = [ "kvm-intel" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ];
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
|
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
|
|
||||||
networking.hostName = "T430";
|
networking.hostName = "T430";
|
||||||
|
|
@ -9,8 +8,8 @@
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
greeter.enable = true;
|
greeter.enable = false;
|
||||||
flavour = [ "Hyprland" "sway" ];
|
flavour = [ "sway" ];
|
||||||
};
|
};
|
||||||
nvidia.enable = false;
|
nvidia.enable = false;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,6 @@
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@
|
||||||
nodePackages.yarn
|
nodePackages.yarn
|
||||||
nodePackages.pnpm
|
nodePackages.pnpm
|
||||||
mongodb-compass
|
mongodb-compass
|
||||||
|
ghidra-bin
|
||||||
|
hexedit
|
||||||
] ++ lib.optionals (gui.enable) [
|
] ++ lib.optionals (gui.enable) [
|
||||||
libnotify # a library that sends desktop notifications to a notification daemon
|
libnotify # a library that sends desktop notifications to a notification daemon
|
||||||
xdg-utils # a set of command line tools that assist applications with a variety of desktop integration tasks
|
xdg-utils # a set of command line tools that assist applications with a variety of desktop integration tasks
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,8 @@ in
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
menu = "${pkgs.wofi}/bin/wofi";
|
menu = "${pkgs.wofi}/bin/wofi";
|
||||||
|
# TODO for some reason bar only works when used with exec
|
||||||
|
bars = [];
|
||||||
startup = with pkgs; [
|
startup = with pkgs; [
|
||||||
# TODO activate with systemd prbly requires a graphical.target?
|
# TODO activate with systemd prbly requires a graphical.target?
|
||||||
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP"; }
|
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP"; }
|
||||||
|
|
@ -86,6 +88,7 @@ in
|
||||||
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr"; }
|
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr"; }
|
||||||
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr"; }
|
# { command = "${nixosConfig.systemd.package}/bin/systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr"; }
|
||||||
# { command = "${dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
|
# { command = "${dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
|
||||||
|
{ command = "${config.programs.waybar.package}/bin/waybar -c ${config.xdg.configHome}/waybar/swaybar.json -s ${config.xdg.configHome}/waybar/swaybar.css"; }
|
||||||
{ command = "${dbus}/bin/dbus-update-activation-environment --all"; }
|
{ command = "${dbus}/bin/dbus-update-activation-environment --all"; }
|
||||||
{ command = "${kanshi}/bin/kanshi"; }
|
{ command = "${kanshi}/bin/kanshi"; }
|
||||||
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
|
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
|
||||||
|
|
@ -226,7 +229,7 @@ in
|
||||||
};
|
};
|
||||||
seat = {
|
seat = {
|
||||||
"*" = {
|
"*" = {
|
||||||
xcursor_theme = common.gtk;
|
xcursor_theme = "macOS-Monterey 32";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
window = {
|
window = {
|
||||||
|
|
@ -273,11 +276,6 @@ in
|
||||||
childBorder = common.colorschemes.default.active;
|
childBorder = common.colorschemes.default.active;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bars = [
|
|
||||||
{
|
|
||||||
command = "${config.programs.waybar.package}/bin/waybar -c ${config.xdg.configHome}/waybar/swaybar.json -s ${config.xdg.configHome}/waybar/swaybar.css";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
for_window [title="Firefox — Sharing Indicator"] {
|
for_window [title="Firefox — Sharing Indicator"] {
|
||||||
|
|
|
||||||
|
|
@ -66,10 +66,7 @@ in
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"actions": {
|
"format": "{:%a %b %d %H:%M}",
|
||||||
"on-click": "tz_up"
|
|
||||||
},
|
|
||||||
"format": "{:%a, %d %b, %H:%M}",
|
|
||||||
"timezones": [
|
"timezones": [
|
||||||
"Europe/Berlin"
|
"Europe/Berlin"
|
||||||
],
|
],
|
||||||
|
|
@ -81,10 +78,30 @@ in
|
||||||
"interval": 3,
|
"interval": 3,
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
"sway/mode": {
|
||||||
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
|
},
|
||||||
|
"sway/window": {
|
||||||
|
"format": "{title}",
|
||||||
|
},
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": true,
|
||||||
|
"persistent-workspaces": {
|
||||||
|
"1": [],
|
||||||
|
"2": [],
|
||||||
|
"3": [],
|
||||||
|
"4": [],
|
||||||
|
"5": [],
|
||||||
|
"6": [],
|
||||||
|
"7": [],
|
||||||
|
"8": [],
|
||||||
|
"9": [],
|
||||||
|
"10": [],
|
||||||
|
}
|
||||||
|
},
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"margin": "5 5 5 5",
|
"margin": "5 5 5 5",
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"clock"
|
|
||||||
],
|
],
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
|
|
@ -98,7 +115,8 @@ in
|
||||||
"custom/mem",
|
"custom/mem",
|
||||||
"temperature",
|
"temperature",
|
||||||
"backlight",
|
"backlight",
|
||||||
"battery"
|
"battery",
|
||||||
|
"clock"
|
||||||
],
|
],
|
||||||
"name": "swaybar",
|
"name": "swaybar",
|
||||||
"network": {
|
"network": {
|
||||||
|
|
@ -136,22 +154,6 @@ in
|
||||||
"on-click": "${pkgs.pavucontrol}/bin/pavucontrol",
|
"on-click": "${pkgs.pavucontrol}/bin/pavucontrol",
|
||||||
"reverse-scrolling": 1
|
"reverse-scrolling": 1
|
||||||
},
|
},
|
||||||
"sway/mode": {
|
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
|
||||||
},
|
|
||||||
"sway/window": {
|
|
||||||
"format": "{title}",
|
|
||||||
"max-length": 43
|
|
||||||
},
|
|
||||||
"sway/workspaces": {
|
|
||||||
"disable-scroll": true,
|
|
||||||
"persistent-workspaces": {
|
|
||||||
"1": [],
|
|
||||||
"2": [],
|
|
||||||
"3": [],
|
|
||||||
"4": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
"format": "{temperatureC}°C {icon}",
|
"format": "{temperatureC}°C {icon}",
|
||||||
|
|
@ -166,141 +168,127 @@ in
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 16,
|
"icon-size": 16,
|
||||||
"spacing": 0
|
"show-passive-items": true,
|
||||||
|
"spacing": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"waybar/swaybar.css".text = ''
|
"waybar/swaybar.css".text = ''
|
||||||
@define-color bg-color #212529;
|
|
||||||
|
|
||||||
window.swaybar,
|
window.swaybar,
|
||||||
window.swaybar * {
|
window.swaybar * {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 10px;
|
||||||
font-family: DejaVuSansM Nerd Font;
|
font-family: DejaVuSansM Nerd Font;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar#waybar {
|
window.swaybar#waybar {
|
||||||
background: transparent;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar#waybar.hidden {
|
window.swaybar#waybar.hidden {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #workspaces {
|
window.swaybar #workspaces {
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
border-radius: 10px;
|
transition: none;
|
||||||
transition: none;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #workspaces button {
|
window.swaybar #workspaces button {
|
||||||
transition: none;
|
transition: none;
|
||||||
color: #7c818c;
|
color: black;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.swaybar #workspaces button.empty {
|
||||||
|
color: #7c818c;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #workspaces button.persistent {
|
window.swaybar #workspaces button.persistent {
|
||||||
color: #7c818c;
|
font-size: 12px;
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.swaybar #workspaces button:hover {
|
|
||||||
transition: none;
|
|
||||||
box-shadow: inherit;
|
|
||||||
text-shadow: inherit;
|
|
||||||
border-radius: inherit;
|
|
||||||
color: @bg-color;
|
|
||||||
background: #7c818c;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.swaybar #workspaces button.focused {
|
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #workspaces button.visible {
|
window.swaybar #workspaces button.visible {
|
||||||
color: white;
|
color: black;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.swaybar #workspaces button.focused {
|
||||||
|
background: lightgray;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.swaybar #workspaces button:hover {
|
||||||
|
color: white;
|
||||||
|
background: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #window {
|
window.swaybar #window {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
margin-right: 8px;
|
transition: none;
|
||||||
border-radius: 10px 10px 10px 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #mode {
|
window.swaybar #mode {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
border-radius: 10px;
|
transition: none;
|
||||||
transition: none;
|
color: black;
|
||||||
color: #ffffff;
|
background: transparent;
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #clock {
|
window.swaybar #tray {
|
||||||
padding-left: 16px;
|
margin-right: 10px;
|
||||||
padding-right: 16px;
|
padding-left: 10px;
|
||||||
border-radius: 10px 10px 10px 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
color: #ffffff;
|
color: white;
|
||||||
background: @bg-color;
|
background: rgb(66, 118, 185);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #network {
|
window.swaybar #network {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 10px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #pulseaudio {
|
window.swaybar #pulseaudio {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 10px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #pulseaudio.muted {
|
window.swaybar #pulseaudio.muted {
|
||||||
background-color: #90b1b1;
|
color: gray;
|
||||||
color: #2a5c45;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #custom-mem {
|
window.swaybar #custom-mem {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 10px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #temperature {
|
window.swaybar #temperature {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 10px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #temperature.critical {
|
window.swaybar #temperature.critical {
|
||||||
|
|
@ -308,22 +296,19 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #backlight {
|
window.swaybar #backlight {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 10px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #battery {
|
window.swaybar #battery {
|
||||||
padding-left: 16px;
|
padding-left: 10px;
|
||||||
padding-right: 16px;
|
padding-right: 10px;
|
||||||
border-radius: 10px;
|
transition: none;
|
||||||
transition: none;
|
color: black;
|
||||||
color: #ffffff;
|
background: transparent;
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #battery.charging {
|
window.swaybar #battery.charging {
|
||||||
|
|
@ -346,14 +331,12 @@ in
|
||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.swaybar #tray {
|
window.swaybar #clock {
|
||||||
margin-right: 8px;
|
padding-left: 10px;
|
||||||
padding-left: 16px;
|
padding-right: 16px;
|
||||||
padding-right: 16px;
|
transition: none;
|
||||||
border-radius: 10px;
|
color: black;
|
||||||
transition: none;
|
background: transparent;
|
||||||
color: #ffffff;
|
|
||||||
background: @bg-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
|
|
@ -587,7 +570,6 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.hyprbar #network {
|
window.hyprbar #network {
|
||||||
/* margin-right: 4px; */
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
@ -596,7 +578,6 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.hyprbar #pulseaudio {
|
window.hyprbar #pulseaudio {
|
||||||
/* margin-right: 4px; */
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
@ -609,7 +590,6 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.hyprbar #custom-mem {
|
window.hyprbar #custom-mem {
|
||||||
/* margin-right: 8px; */
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
@ -618,7 +598,6 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.hyprbar #temperature {
|
window.hyprbar #temperature {
|
||||||
/* margin-right: 8px; */
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
@ -631,7 +610,6 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
window.hyprbar #backlight {
|
window.hyprbar #backlight {
|
||||||
/* margin-right: 8px; */
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue