initial macbook hyprland stuffs

This commit is contained in:
mjallen18
2025-07-01 22:15:12 -05:00
parent fbb8cd9054
commit a142fd05e6
5 changed files with 117 additions and 25 deletions

View File

@@ -35,16 +35,18 @@ in
bind = [ bind = [
"$mod, Return, exec, ${settings.defaultApps.terminal.pname}" "$mod, Return, exec, ${settings.defaultApps.terminal.pname}"
"$mod, SPACE, exec, wofi --show drun" "$mod, SPACE, exec, wofi --show drun"
", xf86Search, exec, wofi --show drun"
"$mod, Q, killactive, " "$mod, Q, killactive, "
"$mod, M, exec, wlogout --protocol layer-shell" "$mod, M, exec, wlogout --protocol layer-shell"
"$mod, E, exec, nautilus" "$mod, E, exec, ${settings.defaultApps.fileExplorer.pname}"
"$mod, V, togglefloating, " "$mod, V, togglefloating, "
"$mod, D, exec, ${drawer}" "$mod, D, exec, ${drawer}"
"$mod, P, pseudo, " # dwindle "$mod, P, pseudo, " # dwindle
"$mod, S, togglesplit, " # dwindle "$mod, S, togglesplit, " # dwindle
"$mod SHIFT, Q, exec, hyprlock" "$mod SHIFT, Q, exec, hyprlock"
"$mod SHIFT, 4, exec, hyprshot -m region --clipboard-only" "$mod SHIFT, 4, exec, hyprshot -m region --clipboard-only"
"$mod,F,exec,hyprctl dispatch fullscreen active" "$mod, F, fullscreen, 1"
"$mod SHIFT, F, fullscreen, 0"
"$mod SHIFT, E, exec, smile" "$mod SHIFT, E, exec, smile"
"$mod, mouse:276, movecurrentworkspacetomonitor, ${settings.displayLeft.input}" "$mod, mouse:276, movecurrentworkspacetomonitor, ${settings.displayLeft.input}"
@@ -112,11 +114,18 @@ in
", XF86AudioPlay, exec, playerctl play-pause" ", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPrev, exec, playerctl previous" ", XF86AudioPrev, exec, playerctl previous"
", XF86AudioNext, exec, playerctl next" ", XF86AudioNext, exec, playerctl next"
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
"$mod, XF86MonBrightnessUp, exec, brightnessctl -d kbd_backlight set +10%"
"$mod, XF86MonBrightnessDown, exec, brightnessctl -d kbd_backlight set 10%-"
]; ];
monitor = [ monitor = [
"${settings.displayLeft.input},${settings.displayLeft.resolution}@${settings.displayLeft.refreshRate},0x0,1,bitdepth,10,cm,hdr,sdrbrightness,1.2,sdrsaturation,0.98" "${settings.displayLeft.input},${settings.displayLeft.resolution}@${settings.displayLeft.refreshRate},0x0,1,bitdepth,10,cm,hdr,sdrbrightness,1.2,sdrsaturation,0.98"
"${settings.displayRight.input},${settings.displayRight.resolution}@${settings.displayRight.refreshRate},3840x0,1,bitdepth,10,cm,hdr,sdrbrightness,1.5,sdrsaturation,0.98" # "${settings.displayRight.input},${settings.displayRight.resolution}@${settings.displayRight.refreshRate},3840x0,1,bitdepth,10,cm,hdr,sdrbrightness,1.5,sdrsaturation,0.98"
]; ];
render = { render = {
@@ -258,6 +267,23 @@ in
"size 2160 7680, tag:horizonrdp" "size 2160 7680, tag:horizonrdp"
# float the vmware window cause its annoying to use in fullscreen # float the vmware window cause its annoying to use in fullscreen
"float, class:(.*[Vv][Mm]ware-view),title:([Vv][Mm]ware [Hh]orizon [Cc]lient)" "float, class:(.*[Vv][Mm]ware-view),title:([Vv][Mm]ware [Hh]orizon [Cc]lient)"
# "tag +fakefull, fullscreen: 0"
# "float, tag:fakefull"
# "size 3356 2160, tag:fakefull"
# "move 100 74, tag:fakefull"
# "noanim, tag:fakefull"
# "noblur, tag:fakefull"
# "norounding, tag:fakefull"
# "noshadow, tag:fakefull"
# "immediate, tag:fakefull"
# "noborder, tag:fakefull"
# "nodim, tag:fakefull"
# "idleinhibit, tag:fakefull"
]; ];
input = { input = {
@@ -273,7 +299,8 @@ in
follow_mouse = 1; follow_mouse = 1;
touchpad = { touchpad = {
natural_scroll = "no"; clickfinger_behavior = 1;
natural_scroll = "yes";
}; };
sensitivity = 0; # -1.0 - 1.0, 0 means no modification. sensitivity = 0; # -1.0 - 1.0, 0 means no modification.

View File

@@ -5,20 +5,29 @@ let
defaultOpacity = "opacity: 0.85;"; defaultOpacity = "opacity: 0.85;";
defaultBorderRadius = "border-radius: 1rem;"; defaultBorderRadius = "border-radius: 1rem;";
defaultCenterOptions = '' defaultCenterOptions = ''
padding: 0.5rem 1rem; padding-top: 0.5rem;
margin: 5px 0; padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
''; '';
borderRight = '' borderRight = ''
padding: 0.5rem 1rem; padding-top: 0.5rem;
margin: 5px 0; padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
border-radius: 0rem 1rem 1rem 0rem; border-radius: 0rem 1rem 1rem 0rem;
margin-right: 1rem; margin-right: 0.5rem;
''; '';
borderLeft = '' borderLeft = ''
padding: 0.5rem 1rem; padding-top: 0.5rem;
margin: 5px 0; padding-bottom: 0.5rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
margin: 3px 0;
border-radius: 1rem 0rem 0rem 1rem; border-radius: 1rem 0rem 0rem 1rem;
margin-left: 1rem; margin-left: 0.5rem;
''; '';
in in
{ {
@@ -34,7 +43,7 @@ in
systemd.enable = true; systemd.enable = true;
settings = { settings = {
mainBar = { mainBar = {
layer = "bottom"; layer = "top";
position = "top"; position = "top";
mod = "dock"; mod = "dock";
exclusive = true; exclusive = true;
@@ -49,15 +58,17 @@ in
modules-right = [ modules-right = [
"tray" "tray"
"custom/lights" # "custom/lights"
"temperature" "temperature"
"temperature#gpu" "temperature#gpu"
"keyboard-state#capslock" "keyboard-state#capslock"
"keyboard-state#numlock" "keyboard-state#numlock"
"wireplumber#sink" "wireplumber#sink"
"wireplumber#source" # "wireplumber#source"
"bluetooth" "bluetooth"
"network"
"clock" "clock"
"battery"
"custom/weather" "custom/weather"
]; ];
@@ -202,6 +213,19 @@ in
tooltip-format-connected = "{status}"; tooltip-format-connected = "{status}";
tooltip-format-enumerate-connected = { }; tooltip-format-enumerate-connected = { };
}; };
network = {
interface = "wlan0";
format = "{ifname}";
format-wifi = ""; # "{essid} ({signalStrength}%) ";
format-ethernet = "󰊗"; # "{ipaddr}/{cidr} 󰊗";
format-disconnected = "" ; # An empty format will hide the module.
tooltip-format = "{ifname} via {gwaddr} 󰊗";
tooltip-format-wifi = "{essid} ({signalStrength}%) ";
tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected";
max-length = 50;
};
clock = { clock = {
format = "{:%I:%M %p}"; format = "{:%I:%M %p}";
@@ -217,6 +241,18 @@ in
}; };
}; };
battery = {
# bat = "macsmc-ac";
interval = 60;
states = {
warning = 30;
critical = 15;
};
format = "{capacity}% {icon}";
format-icons = ["" "" "" "" ""];
max-length = 25;
};
"custom/weather" = { "custom/weather" = {
tooltip = true; tooltip = true;
format = { }; format = { };
@@ -292,8 +328,8 @@ in
${defaultOpacity} ${defaultOpacity}
${defaultBorderRadius} ${defaultBorderRadius}
${defaultCenterOptions} ${defaultCenterOptions}
margin-left: 6rem; margin-left: 4rem;
margin-right: 6rem; margin-right: 100rem;
} }
#custom-weather { #custom-weather {
@@ -303,6 +339,14 @@ in
${borderRight} ${borderRight}
} }
#battery {
color: ${settings.nord.aurora.nord15};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${defaultCenterOptions}
border-radius: 0;
}
#clock { #clock {
color: ${settings.nord.frost.nord9}; color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0}; background-color: ${settings.nord.polarNight.nord0};
@@ -312,11 +356,20 @@ in
/* ------------- */ /* ------------- */
#network {
color: ${settings.nord.aurora.nord15};
background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity}
${borderRight}
padding-right: 15px;
}
#bluetooth { #bluetooth {
color: ${settings.nord.frost.nord9}; color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0}; background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity} ${defaultOpacity}
${borderRight} ${defaultCenterOptions}
border-radius: 0;
} }
#wireplumber.source { #wireplumber.source {
@@ -363,8 +416,7 @@ in
color: ${settings.nord.frost.nord9}; color: ${settings.nord.frost.nord9};
background-color: ${settings.nord.polarNight.nord0}; background-color: ${settings.nord.polarNight.nord0};
${defaultOpacity} ${defaultOpacity}
${defaultCenterOptions} ${borderLeft}
border-radius: 0;
} }
#custom-lights { #custom-lights {

View File

@@ -19,6 +19,8 @@ in
./environment.nix ./environment.nix
]; ];
environment.systemPackages = [ bing-wallpaper pkgs.jq ];
home-manager.users."${settings.user}" = import ./home.nix; home-manager.users."${settings.user}" = import ./home.nix;
services = { services = {
@@ -152,8 +154,8 @@ in
xdg.portal = { xdg.portal = {
enable = true; enable = true;
wlr.enable = false; wlr.enable = true;
xdgOpenUsePortal = false; xdgOpenUsePortal = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gnome pkgs.xdg-desktop-portal-gnome

View File

@@ -1,6 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
box64
brightnessctl
ddcutil ddcutil
dunst dunst
egl-wayland egl-wayland
@@ -24,6 +26,7 @@
hyprsysteminfo hyprsysteminfo
kdePackages.qtmultimedia kdePackages.qtmultimedia
libnotify libnotify
libz
mako mako
meson meson
nautilus nautilus

View File

@@ -20,9 +20,9 @@ in
# Displays # Displays
displayLeft = { displayLeft = {
input = "DP-1"; input = "eDP-1";
resolution = "3840x2160"; resolution = "3456x2234"; # "3356x2160";
refreshRate = "240.00000"; refreshRate = "60.00000";
}; };
displayRight = { displayRight = {
input = "DP-2"; input = "DP-2";
@@ -81,6 +81,13 @@ in
catppuccin-sddm catppuccin-sddm
colloid-gtk-theme colloid-gtk-theme
colloid-icon-theme colloid-icon-theme
nemo
nemo-python
nemo-emblems
nemo-preview
nemo-seahorse
nemo-fileroller
nemo-qml-plugin-dbus
papirus-folders papirus-folders
sddm-astronaut sddm-astronaut
]; ];
@@ -88,6 +95,7 @@ in
defaultApps = { defaultApps = {
browser = pkgs.firefox; browser = pkgs.firefox;
editor = pkgs.micro; editor = pkgs.micro;
fileExplorer = pkgs.nemo;
visual = pkgs.vscodium; visual = pkgs.vscodium;
terminal = pkgs.kitty; terminal = pkgs.kitty;
office = pkgs.onlyoffice-bin_latest; office = pkgs.onlyoffice-bin_latest;