Compare commits

..

2 Commits

Author SHA1 Message Date
69d748c3ff add waybar and librewolf 2025-10-30 22:40:47 -05:00
4e59f2d8ca add waybar and librewolf 2025-10-30 22:36:04 -05:00
8 changed files with 307 additions and 422 deletions

View File

@@ -6,6 +6,8 @@
./hardware-configuration.nix
../../nixos
../../../modules/desktop/hypr
../../../modules/desktop/waybar
../../../modules/desktop/librewolf
../../../modules/desktop/greetd
../../../users/blake
../../../modules/system

View File

@@ -6,11 +6,9 @@
home.packages = with pkgs; [
nwg-displays
posy-cursors
hyprpicker
];
wayland.windowManager.hyprland = {
enable = true;
systemd.variables = ["--all"];
@@ -111,7 +109,7 @@
"$mainMod, Return, exec, kitty"
"$mainMod, E, exec, kitty lf"
"$mainMod, R, exec, tofi-drun --drun-launch=true --prompt-text=\"launch:\""
"$mainMod, B, exec, firefox"
"$mainMod, B, exec, librewolf"
"$mainMod, G, exec, lutris"
"$mainMod, M, exec, thunderbird"
"$mainMod, D, exec, flatpak run com.discordapp.Discord"

View File

@@ -1,40 +0,0 @@
# --- general settings ---
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
# --- dim screen ---
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 1 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
# --- blank screen ---
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
# --- lock screen ---
listener {
timeout = 900 # 15min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
# --- suspend timeout ---
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
#listener {
# timeout = 150 # 2.5min.
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
#}

View File

@@ -1,279 +0,0 @@
# blake's hyprland config
# Please note not all available settings / options are set here.
# For a full list, see the wiki ; )
# --- displays ---
# See https://wiki.hyprland.org/Configuring/Monitors/
# currently being managed by nwg-displays
source = ~/.config/hypr/monitors.conf
#monitor = eDP-1,preferred,0x0,1
#monitor = HDMI-A-1,3840x2160@60,auto-left,1.5
#monitor = HDMI-A-1,3840x2160@60,-2560x0,1.5
#monitor = DP-6,1920x1080@120,auto,1
#monitor = HDMI-A-1,referred,0x-1080,1
# workspaces
# currently being managed by nwg-displays
source = ~/.config/hypr/workspaces.conf
#workspace = 1, monitor:eDP-1
#workspace = 2, monitor:desc:Philips Consumer Electronics Company PHL 278E1 0x0000032B
# --- auto-launch ---
exec-once = hyprpaper
exec-once = waybar
exec-once = dunst
exec-once = hypridle
exec-once = wl-paste --type text --watch cliphist store #clipboard history text data
exec-once = wl-paste --type image --watch cliphist store #clipboard history image data
exec-once = /usr/lib/polkit-kde-authentication-agent-1
# --- settings ---
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Set programs that you use
$terminal = kitty
$fileManager = lf
$menu = tofi-drun --drun-launch=true --prompt-text="launch:"
$browser = firefox
# --- enviroment variables ---
# sharp text in firefox
env = MOZ_ENABLE_WAYLAND,1
# xdg info
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
# cursors
env = HYPRCURSOR_THEME,posy-hypr
env = HYPRCURSOR_SIZE,48
env = XCURSOR_THEME,posy
env = XCURSOR_SIZE,48
# themes
env = GTK_THEME,gradient-dark-gtk
env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that
env = QT_STYLE_OVERRIDE,gtk2
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
numlock_by_default = true
follow_mouse = 2
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
disable_while_typing = yes
natural_scroll = yes
clickfinger_behavior = yes
tap-to-click = yes
}
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 2
gaps_out = 5
border_size = 3
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
# disables cursor warping to focused window
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 3
blur {
enabled = true
size = 3
passes = 1
}
# drop_shadow = yes
# shadow_range = 4
# shadow_render_power = 3
# col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
# new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = on
}
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
disable_hyprland_logo = true
disable_splash_rendering = true
focus_on_activate = true
}
# --- window rules ---
windowrulev2 = float,class:(kitty),title:(pulsemixer)
#windowrulev2 = float,center,size 30%,class:(kitty),title:(bluetuith)
# floating audio controls
#windowrulev2 = float,class:(kitty),title:(pulsemixer)
#windowrulev2 = center,class:(kitty),title:(pulsemixer)
#windowrulev2 = size 80%,class:(kitty),title:(pulsemixer)
# floating network controls
#windowrulev2 = float,class:floating
#windowrulev2 = float,class:(kitty),title:(nmtui)
#windowrulev2 = size 100 100,class:(kitty),title:(nmtui)
#windowrulev2 = center,class:(kitty),title:(nmtui)
# floating bluetooth controls
#windowrulev2 = float,class:(kitty),title:(bluetuith)
#windowrulev2 = size 70%,class:(kitty),title:(bluetuith)
#windowrulev2 = center,class:(kitty),title:(bluetuith)
# --- bindings ---
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# system
bind = $mainMod, Q, exec, loginctl lock-session
# programs
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, E, exec, kitty $fileManager
bind = $mainMod, R, exec, $menu
bind = $mainMod, B, exec, $browser
bind = $mainMod, K, exec, hyprpicker --autocopy --format=hex
bind = $mainMod, T, exec, cliphist list | tofi | cliphist decode | wl-copy # clipboard history
# screenshots
bind = , print, exec, hyprshot --mode region --output-folder ~/pictures/screenshots # region capture
bind = $mainMod, print, exec, hyprshot --mode window --output-folder ~/pictures/screenshots # window capture
bind = shift, print, exec, hyprshot --mode output --output-folder ~/pictures/screenshots # monitor capture
# multimedia
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+
bind = , XF86AudioPlay, exec, playerctl play-pause
# brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl set +10%
bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%- --min-value
# scratch pad
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# general window management (https://wiki.hyprland.org/Configuring/Binds/ for more)
bind = $mainMod, C, killactive
bind = $mainMod SHIFT, M, exit
bind = $mainMod, V, togglefloating
bind = $mainMod, F, fullscreen, 1 # maximize
bind = $mainMod SHIFT, F, fullscreen, 0 # full screen proper
bind = $mainMod, P, pseudo # dwindle
bind = $mainMod, J, togglesplit # dwindle
# window switching
bind = $mainMod, tab, cyclenext
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# window moving
bind = $mainMod SHIFT, left, swapwindow, l
bind = $mainMod SHIFT, right, swapwindow, r
bind = $mainMod SHIFT, up, swapwindow, u
bind = $mainMod SHIFT, down, swapwindow, d
# window resizing X Y
bind = $mainMod CTRL, left, resizeactive, -60 0
bind = $mainMod CTRL, right, resizeactive, 60 0
bind = $mainMod CTRL, up, resizeactive, 0 -60
bind = $mainMod CTRL, down, resizeactive, 0 60
# workspace switching
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# window workspace moving
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# window managment with mouse
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# waybar
bind = $mainMod, N, exec, pkill -SIGUSR1 waybar # hide waybar
bind = $mainMod SHIFT, N, exec, pkill -SIGUSR2 waybar # reload waybar

View File

@@ -1,94 +0,0 @@
$font = Ubuntu Mono Regular
# GENERAL
general {
disable_loading_bar = true
hide_cursor = true
}
# BACKGROUND
background {
monitor =
path = ~/pictures/wallpapers/antartica.png
blur_passes = 1
color = rgb(0047ab)
}
# TIME
label {
monitor =
text = cmd[update:30000] echo "$(date +"%R")"
color = rgb(ffffff)
font_size = 90
font_family = $font
position = -130, -100
halign = right
valign = top
shadow_passes = 1
}
# DATE
label {
monitor =
text = cmd[update:43200000] echo "$(date +"%Y/%m/%d")"
color = $text
font_size = 25
font_family = $font
position = -130, -250
halign = right
valign = top
shadow_passes = 2
}
# KEYBOARD LAYOUT
label {
monitor =
text = $LAYOUT
color = rbg(ffffff)
font_size = 20
font_family = $font
rotate = 0 # degrees, counter-clockwise
position = -130, -310
halign = right
valign = top
shadow_passes = 2
}
# USER AVATAR
image {
monitor =
path = ~/pictures/pfps/pikacig.png
size = 350
border_color = rgb(0047ab)
rounding = -1
position = 0, 85
halign = center
valign = center
shadow_passes = 2
}
# INPUT FIELD
input-field {
monitor =
size = 400, 70
outline_thickness = 4
dots_size = 0.2
dots_spacing = 0.2
dots_center = true
outer_color = $accent
inner_color = $surface0
font_color = $text
fade_on_empty = false
placeholder_text = # <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false
check_color = rgb(0047ab)
fail_color = rgb(ff0000)
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = rgb(ff0000)
position = 0, -185
halign = center
valign = center
shadow_passes = 2
}

View File

@@ -1,5 +0,0 @@
preload = ~/pictures/wallpapers/antartica.png
# wallpaper = eDP-1,~/pictures/wallpapers/antartica.png
wallpaper = ,~/pictures/wallpapers/antartica.png
ipc = off
splash = false

View File

@@ -0,0 +1,10 @@
{
pkgs,
config,
...
}: {
# just using the normal lfrc
programs.librewolf = {
enable = true;
};
}

View File

@@ -0,0 +1,293 @@
{
pkgs,
config,
...
}: {
# just using the normal lfrc
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 25;
margin-top = 0;
modules-left = [ "hyprland/workspaces" ];
modules-center = [ "hyprland/window" ];
modules-right = [
"tray"
"temperature"
"backlight"
"wireplumber"
"battery"
"bluetooth"
"network"
"idle_inhibitor"
"clock"
];
"hyprland/workspaces" = {
format = "{icon}";
"on-scroll-up" = "hyprctl dispatch workspace e+1";
"on-scroll-down" = "hyprctl dispatch workspace e-1";
};
"hyprland/window" = {
"max-length" = 200;
"separate-outputs" = false;
};
tray = {
"icon-size" = 17;
spacing = 10;
};
clock = {
format = "{:%Y/%m/%d %a %H:%M}";
interval = 30;
"on-click" = "thunderbird -calendar";
"on-scroll" = 1;
calendar = {
mode = "month";
"mode-mon-col" = 3;
"weeks-pos" = "";
"on-scroll" = 1;
"on-click-right" = "mode";
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
};
};
actions = {
"on-click-right" = "mode";
"on-scroll-up" = "shift_up";
"on-scroll-down" = "shift_down";
};
"tooltip-format" = "<tt><small>{calendar}</small></tt>";
};
backlight = {
device = "intel_backlight";
format = "{icon} {percent}%";
"format-icons" = [ "" "" "" "" ];
interval = 60;
};
temperature = {
"hwmon-path" = [ "/sys/class/hwmon/hwmon3/temp1_input" ];
"critical-threshold" = 70;
format = "";
"format-critical" = " {temperatureC}°C";
};
battery = {
bat = "BAT0";
states = {
full = 99;
good = 80;
normal = 50;
warning = 30;
critical = 10;
};
format = "{icon} {capacity}%";
"format-charging" = " {capacity}%";
"format-icons" = [ "" "" "" "" "" ];
interval = 30;
};
network = {
"format-wifi" = "";
"format-ethernet" = "󰈀";
"format-disconnected" = "󰖪";
"tooltip-format-wifi" =
"{ifname} / {essid}\n\n {ipaddr}\n\n 󰘊 {signalStrength}% / 󰥛 {frequency}\n\n 󰕒 {bandwidthUpBits} / 󰇚 {bandwidthDownBits}";
"tooltip-format-ethernet" =
"{ifname} / {gwaddr}\n\n {ipaddr}\n\n 󰕒 {bandwidthUpBits} / 󰇚 {bandwidthDownBits}";
"tooltip-format-disconnected" = "Disconnected";
interval = 5;
"on-click" = "kitty nmtui";
};
wireplumber = {
format = " {volume}%";
"format-muted" = "󰝟 Mute";
"max-volume" = 150;
"on-scroll-up" = "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+";
"on-scroll-down" = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-";
"on-click-right" = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
"on-click" = "kitty pulsemixer";
};
bluetooth = {
"format-on" = "󰂯";
"format-off" = "󰂲";
"format-connected" = "󰂯 {device_alias}";
"format-connected-battery" = "󰥉 {device_alias} ({device_battery_percentage}%)";
"tooltip-format-off" = "Controller Powered Off";
"tooltip-format" =
"{controller_alias}\t{controller_address}\n\n{num_connections} connected";
"tooltip-format-connected" =
"{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
"tooltip-format-enumerate-connected" =
"{device_alias}\t{device_address}";
"tooltip-format-enumerate-connected-battery" =
"{device_alias}\t{device_address}\t{device_battery_percentage}%";
"on-click" = "kitty bluetuith --no-warning";
"on-click-right" =
"if bluetoothctl show|grep -q 'Powered: yes';then bluetoothctl power off;else bluetoothctl power on;fi";
};
idle_inhibitor = {
what = "idle";
format = "{icon}";
"format-icons" = {
activated = "";
deactivated = "";
};
};
};
};
style = ''
* {
border: none;
font-family: "UbuntuMono Nerd Font";
font-size: 17px;
}
.modules-left {
border-radius: 9px;
background-color: rgba(50, 50, 50, 0.5);
padding: 0px 0px 0px 0px;
}
.modules-right {
border-radius: 9px;
background-color: rgba(50, 50, 50, 0.5);
padding: 0px 5px 0px 0px;
}
/* --- window bar --- */
/* window title bar */
window#waybar {
border-radius: 9px;
background-color: rgba(47, 23, 48, 0.70);
color: #ffffff;
}
/* hide window title when empty*/
window#waybar.empty #window {
background-color: transparent;
color: transparent;
}
/* change title bar background color when empty */
window#waybar.empty {
background-color: rgba(47, 23, 48, 0.70);
}
/* --- left modules --- */
/* workspace buttons */
#workspaces button {
box-shadow: inset 0 -3px transparent;
padding: 0px 11px 0px 11px;
min-width: 1px;
color: #888888;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
background: rgba(50, 50, 50, 0.55);
color: #888888;
}
#workspaces button.active,
#workspaces button.visible {
padding: 0px 11px 0px 11px;
background-color: rgba(50, 50, 50, 0.55);
color: #e2c7c7;
}
/* --- right modules --- */
#tray {
margin: 0px 10px 0px 5px;
}
#clock {
margin: 0px 3px 0px 13px;
}
#idle_inhibitor,
#network,
#bluetooth,
#battery,
#wireplumber,
#backlight,
#temperature {
background-color: transparent;
color: #ffffff;
padding: 0px 10px 0px 10px;
}
#bluetooth {
background-color: transparent;
color: #ffffff;
padding: 0px 4px 0px 10px;
}
/* --- indicators --- */
/* blink red */
#temperature.critical,
#battery.critical:not(.charging) {
background-color: transparent;
animation-name: blink;
animation-duration: 0.75s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
/* turn red */
#network.disconnected,
#wireplumber.muted,
#bluetooth.off {
color: #ff5555;
}
/* --- animations --- */
@keyframes blink {
to {
background-color: transparent;
color: #ff5555;
}
}
'';
};
# install it to userspace
home.packages = with pkgs; [
pulsemixer
brightnessctl
bluetuith
bluez
nerdfonts
nerd-fonts.ubuntu
nerd-fonts.ubuntu-mono
];
}