From 166afc7e83330abd17dca0a475739477481813ba Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 12 Apr 2024 11:49:16 +0200 Subject: [PATCH] remove unused files --- common/hypridle.nix | 8 --- common/hyprland-vnc.nix | 115 ---------------------------------------- common/hyprlock.nix | 8 --- common/waybar-vnc.nix | 88 ------------------------------ 4 files changed, 219 deletions(-) delete mode 100644 common/hypridle.nix delete mode 100644 common/hyprland-vnc.nix delete mode 100644 common/hyprlock.nix delete mode 100644 common/waybar-vnc.nix diff --git a/common/hypridle.nix b/common/hypridle.nix deleted file mode 100644 index 648f782..0000000 --- a/common/hypridle.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, inputs, ... }: - -{ - services.hypridle = { - enable = true; - # TODO: find commands to turn on/off monitors - }; -} diff --git a/common/hyprland-vnc.nix b/common/hyprland-vnc.nix deleted file mode 100644 index 26afcbe..0000000 --- a/common/hyprland-vnc.nix +++ /dev/null @@ -1,115 +0,0 @@ -{ config, pkgs, inputs, ... }: - -{ - # these are necessary for the config to function correctly - imports = [ - ./kitty.nix - ./waybar-vnc.nix - ./wofi.nix - ]; - home.packages = with pkgs; [ - hyprland - - # I always want these with hyprland anyways - dunst - wl-clipboard - - slurp - grim - ]; - wayland.windowManager.hyprland = { - enable = true; - settings = { - monitor = [ - "DP-3,2560x1440@144,0x0,1" - "DP-2,disable" - ]; - windowrulev2 = [ - "opacity 0.8 0.8,class:^(kitty)$" - "stayfocused,class:^(wofi)$" - ]; - env = [ - "WLR_NO_HARDWARE_CURSORS,1" - ]; - exec-once = [ - "waybar" - "wayvnc --output=DP-3 0.0.0.0 5909" - "dunst" - "hyprctl dispatcher focusmonitor 1" - ]; - general = { - sensitivity = "1.2"; - gaps_in = "2"; - gaps_out = "3"; - border_size = "3"; - "col.active_border"="0xff950fad"; - "col.inactive_border"="0xff26052e"; - }; - decoration = { - rounding = "6"; - active_opacity = "1"; - inactive_opacity = "1"; - }; - workspace = [ - "HEADLESS-2,1" - ]; - animations = { - enabled = "1"; - animation = [ - "windows,1,2,default" - "border,1,10,default" - "fade,0,5,default" - "workspaces,1,4,default" - ]; - }; - "$mod" = "SUPER"; - bind = [ - "$mod,Return,exec,kitty" - "$mod,tab,cyclenext" - "SUPERSHIFT,Q,killactive" - "$mod,SPACE,exec,wofi-launch" - "$mod,P,exec,wofi-power" - "SUPERSHIFT,m,exit" - "$mod,H,movefocus,l" - "$mod,J,movefocus,u" - "$mod,K,movefocus,d" - "$mod,L,movefocus,r" - "SUPERSHIFT,H,movewindow,l" - "SUPERSHIFT,J,movewindow,u" - "SUPERSHIFT,K,movewindow,d" - "SUPERSHIFT,L,movewindow,r" - "$mod,F,togglefloating" - "$mod,X,togglespecialworkspace" - "SUPERSHIFT,X,movetoworkspace,special" - "$mod,Print,exec,grim - | wl-copy && notify-send 'Screenshot Copied to Clipboard'" - "SUPERSHIFT,S,exec,slurp | grim -g - /tmp/photo && wl-copy < /tmp/photo && notify-send 'Screenshot Copied to Clipboard'" - "$mod,f11,fullscreen,0" - ",XF86AudioLowerVolume,exec,wpctl set-volume @DEFAULT_SINK@ 1%-" - ",XF86AudioRaiseVolume,exec,wpctl set-volume @DEFAULT_SINK@ 1%+" - ",XF86AudioMute,exec,wpctl set-mute @DEFAULT_SINK@ toggle" - ",XF86AudioPlay,exec,playerctl play-pause" - ",XF86AudioPrev,exec,playerctl previous" - ",XF86AudioNext,exec,playerctl next" - ] - ++ ( - builtins.concatLists (builtins.genList ( - x: let - ws = let - c = (x+1); - in - builtins.toString (x); - in [ - "$mod,${ws},workspace,${ws}" - "ALT,${ws},movetoworkspace,${ws}" - ] - ) - 10) - ); - bindm = [ - "$mod,mouse:272,movewindow" - "$mod,mouse:273,resizewindow" - ]; - }; - }; - -} diff --git a/common/hyprlock.nix b/common/hyprlock.nix deleted file mode 100644 index 076f805..0000000 --- a/common/hyprlock.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, inputs, ... }: - -{ - programs.hyprlock = { - enable = true; - # TODO: find commands to turn on/off monitors - }; -} diff --git a/common/waybar-vnc.nix b/common/waybar-vnc.nix deleted file mode 100644 index 78d4e40..0000000 --- a/common/waybar-vnc.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ config, pkgs, inputs, ... }: - -{ - home.packages = with pkgs; [ - waybar - font-awesome - ]; - programs.waybar = { - enable = true; - settings = { - mainBar = { - layer = "top"; - position = "top"; - height = 28; - output = [ - "HEADLESS-2" - ]; - modules-left = [ "hyprland/workspaces" "tray" "custom/pronouns" "custom/spotify" ]; - modules-center = [ "hyprland/window" "clock" ]; - modules-right = [ "custom/vpn" "wireplumber" "network" "cpu" "memory" "temperature" "custom/poweroff" ]; - "clock" = { - tooltip-format = "{:%Y %B}\n\n{calendar}"; - interval = 1; - format = "{:%H:%M:%S}"; - format-alt = ":%Y-%m-%d %H:%M:%S}"; - on-click-middle = "gnome-clocks"; - calendar = { - weeks-pos = "left"; - format = { - today = "{}"; - weeks = "{}"; - }; - }; - }; - "tray".spacing = 10; - "cpu" = { - format = "cpu: {usage}%"; - tooltip = false; - }; - "memory" = { - format = "mem: {}%"; - }; - "wireplumber" = { - format = "{volume}%"; - }; - "custom/vpn" = { - format = "VPN"; - exec = "echo '{\"class\": \"connected\"}'"; - exec-if = "test -d /proc/sys/net/ipv4/conf/tun0"; - return-type = "json"; - interval = 5; - }; - "temperature" = { - thermal-zone = 2; - hwmon-path = "/sys/class/hwmon/hwmon2/temp1_input"; - critical-threshold = 80; - format = "{temperatureC}°C {icon}"; - format-icons = ["" "" ""]; - }; - "custom/poweroff" = { - format = ""; - on-click = "wofi-power"; - on-click-right = "swaylock"; - }; - "network" = { - format-wifi = "{essid} ({signalStrength}%) 󰖩"; - format-ethernet = "{ipaddr}/{cidr} 󰛳"; - tooltip-format = "{ifname} via {gwaddr} 󰛳"; - format-linked = "{ifname} (No IP) 󰛳"; - format-disconnected = "Disconnected "; - format-alt = "{ifname}: {ipaddr}/{cidr}"; - }; - "custom/pronouns" = { - format = "{}"; - exec = "${config.xdg.configHome}/waybar/pronouns"; - interval = 5; - }; - "hyprland/workspaces" = { - format = "{name}"; - on-click = "activate"; - sort-by = "id"; - }; - }; - }; - style = ../styles/waybar.css; - }; - -}