Fix gunter stuff

This commit is contained in:
Torjus Håkestad 2024-04-22 22:34:14 +02:00
parent 40c90f7fee
commit d0faa61427
7 changed files with 88 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
result

View File

@ -1,4 +1,8 @@
{ inputs, pkgs, lib, config, ... }: { { inputs, pkgs, lib, config, ... }: {
imports = [
./hyprlock.nix
./hypridle.nix
];
options.hyprland.enable = lib.mkEnableOption "Hyprland"; options.hyprland.enable = lib.mkEnableOption "Hyprland";
config = { config = {
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -122,6 +126,9 @@
# term # term
"$mainMod,Return,exec,$term" "$mainMod,Return,exec,$term"
# hyprlock
"$shiftMainMod,l,exec,hyprlock"
# rofi # rofi
"$mainMod,D,exec,rofi-launcher" "$mainMod,D,exec,rofi-launcher"
"$mainMod,P,exec,rofi-rbw" "$mainMod,P,exec,rofi-rbw"
@ -166,6 +173,7 @@
"waybar" "waybar"
"hyprpaper & sleep 2 && randomwp" "hyprpaper & sleep 2 && randomwp"
"easyeffects --gapplication-service" "easyeffects --gapplication-service"
"hypridle"
# "dunst" # "dunst"
]; ];
}; };

View File

@ -1,11 +1,11 @@
{ config, pkgs, ... }: { { config, osConfig, pkgs, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
unstable.hyprlock unstable.hyprlock
]; ];
xdg.configFile = { xdg.configFile = {
"hypr/hyprlock.conf" = { "hypr/hyprlock.conf" = {
source = config.lib.file.mkOutOfStoreSymlink ./. + "/hyprlock.conf"; source = config.lib.file.mkOutOfStoreSymlink ./. + "/hyprlock_${osConfig.system.name}.conf";
target = "hypr/hyprlock.conf"; target = "hypr/hyprlock.conf";
}; };
}; };

View File

@ -0,0 +1,64 @@
source = ~/.cache/wal/colors-hyprland.conf
# BACKGROUND
background {
monitor =
path = ~/wallpapers/current
blur_passes = 3
contrast = 0.8916
brightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
}
# GENERAL
general {
no_fade_in = false
grace = 0
disable_loading_bar = true
}
# INPUT FIELD
input-field {
monitor =
size = 250, 60
outline_thickness = 2
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 0.5)
font_color = rgb(200, 200, 200)
fade_on_empty = false
font_family = JetBrains Mono Nerd Font Mono
placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
hide_input = false
position = 0, -120
halign = center
valign = center
}
# TIME
label {
monitor =
text = cmd[update:1000] echo "$(date +"%b %d %H:%M")"
color = $foreground
#color = rgba(255, 255, 255, 0.6)
font_size = 120
font_family = JetBrains Mono Nerd Font Mono ExtraBold
position = 0, -300
halign = center
valign = top
}
## USER
#label {
# monitor =
# text = Hi there, $USER
# color = $foreground
# #color = rgba(255, 255, 255, 0.6)
# font_size = 25
# font_family = JetBrains Mono Nerd Font Mono
# position = 0, -40
# halign = center
# valign = center
#}

View File

@ -66,7 +66,7 @@ label {
# Battery level # Battery level
label { label {
monitor = monitor =
text = cmd[update:1000] echo "$(batlvl)" text = cmd[update:1000] echo "$(batlvl)"
color = $foreground color = $foreground
#color = rgba(255, 255, 255, 0.6) #color = rgba(255, 255, 255, 0.6)
font_size = 18 font_size = 18

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { pkgs, lib, osConfig, ... }:
let let
flakestat = pkgs.writeShellApplication { flakestat = pkgs.writeShellApplication {
name = "flakestat"; name = "flakestat";
@ -155,7 +155,15 @@ in
modules-left = [ "custom/launcher" "hyprland/workspaces" ]; modules-left = [ "custom/launcher" "hyprland/workspaces" ];
modules-center = [ "clock" ]; modules-center = [ "clock" ];
modules-right = modules-right =
[ "custom/flakestat" "pulseaudio" "pulseaudio#microphone" "memory" "cpu" "tray" "battery" ]; [
"custom/flakestat"
"pulseaudio"
"pulseaudio#microphone"
"memory"
"cpu"
"tray"
(lib.mkIf (osConfig.system.name == "magicman") "battery")
];
"custom/launcher" = { "custom/launcher" = {
"format" = " "; "format" = " ";
"on-click" = "pkill rofi || ~/.config/rofi/launcher.sh"; "on-click" = "pkill rofi || ~/.config/rofi/launcher.sh";

View File

@ -1,4 +1,4 @@
{ config, inputs, pkgs, ... }: { config, lib, inputs, pkgs, ... }:
{ {
imports = [ imports = [
@ -124,6 +124,7 @@
wget wget
v4l-utils v4l-utils
nmap nmap
(lib.mkIf (config.system.name == "gunter") pciutils)
# X shit # X shit
# xorg.xorgserver # xorg.xorgserver