mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-26 18:54:59 +08:00
chore: merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
commit
5865e9b08c
8 changed files with 160 additions and 18 deletions
|
|
@ -5,6 +5,90 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
|
||||
home.file.".config/nwg-dock-hyprland/style.css".text = ''
|
||||
* {
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
window {
|
||||
background: #000000;
|
||||
border-style: none;
|
||||
border-width: 1px;
|
||||
border-radius: 0;
|
||||
border-color: rgba(156, 142, 122, 0.7);
|
||||
padding: 4em 6em;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
-webkit-backdrop-filter: blur(25px);
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
#box {
|
||||
/* Define attributes of the box surrounding icons here */
|
||||
padding: 10px
|
||||
}
|
||||
|
||||
button,
|
||||
image {
|
||||
background: none;
|
||||
border-style: none;
|
||||
box-shadow: none;
|
||||
color: #999
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 4px;
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
color: #eee;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
box-shadow: 0 0 2px;
|
||||
}
|
||||
'';
|
||||
|
||||
home.file.".cache/nwg-dock-pinned".text = ''
|
||||
chromium-browser
|
||||
thunar
|
||||
${if (host == "sakura") then "darktable" else ""}
|
||||
${if (host == "sakura") then "flstudio" else ""}
|
||||
${if (host == "iris") then "steam" else ""}
|
||||
footclient
|
||||
qutebrowser
|
||||
librewolf
|
||||
anki
|
||||
virt-manager
|
||||
Element
|
||||
signal
|
||||
spotify
|
||||
thunderbird
|
||||
'';
|
||||
|
||||
services.hypridle.enable = true;
|
||||
|
||||
home.file.".config/hypr/hypridle.conf".text = ''
|
||||
general {
|
||||
lock_cmd = pgrep hyprlock || hyprlock
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 165 # in seconds
|
||||
on-timeout = pgrep hyprlock || hyprlock
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # in seconds
|
||||
on-timeout = systemctl suspend; hyprlock
|
||||
}
|
||||
'';
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
|
||||
|
|
@ -37,7 +121,9 @@
|
|||
"foot --server &"
|
||||
"hyprfloat &"
|
||||
"gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &"
|
||||
"nwg-dock-hyprland &"
|
||||
"nwg-dock-hyprland -l top &"
|
||||
"nextcloud &"
|
||||
"hyprland-monitor-attached dock-on-all-monitors dock-on-all-monitors &"
|
||||
];
|
||||
|
||||
input = {
|
||||
|
|
@ -51,11 +137,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
#workspace = [
|
||||
# "w[tv1], gapsout:0, gapsin:0"
|
||||
# "f[1], gapsout:0, gapsin:0"
|
||||
#];
|
||||
general = {
|
||||
"$mainMod" = "ALT";
|
||||
layout = "dwindle";
|
||||
gaps_in = 0;
|
||||
gaps_out = 0;
|
||||
gaps_out = "0,0,68,0";
|
||||
border_size = 2;
|
||||
"col.active_border" = "rgb(ffffff) rgb(ffffff) 45deg";
|
||||
"col.inactive_border" = "0x00000000";
|
||||
|
|
@ -157,11 +247,11 @@
|
|||
};
|
||||
|
||||
gesture = [
|
||||
"3, horizontal, workspace"
|
||||
"4, up, dispatcher, playerctl -p mpd play-pause"
|
||||
"4, left, dispatcher, playerctl -p mpd next"
|
||||
"4, right, dispatcher, playerctl -p mpd previous"
|
||||
# "4, horizontal, move"
|
||||
"3, left, dispatcher, changegroupactive, b"
|
||||
"3, right, dispatcher, changegroupactive, f"
|
||||
"4, horizontal, workspace"
|
||||
"4, pinchin, fullscreen"
|
||||
"4, pinchout, float"
|
||||
];
|
||||
|
||||
bind = [
|
||||
|
|
@ -282,11 +372,6 @@
|
|||
"$mainMod, mouse:273, resizewindow"
|
||||
];
|
||||
|
||||
workspace = [
|
||||
"w[tv1], gapsout:0, gapsin:0"
|
||||
"f[1], gapsout:0, gapsin:0"
|
||||
];
|
||||
|
||||
# windowrule
|
||||
# windowrule = [
|
||||
# "float,title:^(float_kitty)$"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
wayland
|
||||
direnv
|
||||
nwg-dock-hyprland
|
||||
hyprland-monitor-attached
|
||||
];
|
||||
# systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
||||
wayland.windowManager.hyprland = {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ let
|
|||
builtins.readFile ./scripts/toggle_oppacity.sh
|
||||
);
|
||||
ascii = pkgs.writeScriptBin "ascii" (builtins.readFile ./scripts/ascii.sh);
|
||||
dock-on-all-monitors = pkgs.writeScriptBin "dock-on-all-monitors" (
|
||||
builtins.readFile ./scripts/dock-on-all-monitors.sh
|
||||
);
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -25,5 +28,6 @@ in
|
|||
toggle_blur
|
||||
toggle_oppacity
|
||||
ascii
|
||||
dock-on-all-monitors
|
||||
];
|
||||
}
|
||||
|
|
|
|||
18
modules/home/scripts/scripts/dock-on-all-monitors.sh
Executable file
18
modules/home/scripts/scripts/dock-on-all-monitors.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
last="$(hyprctl monitors | grep Monitor | sed 's/Monitor //g' | awk '{print $3}' | sed 's/)://g' | sed ':a;N;$!ba;s/\n/ /g' | awk '{print $NF}')"
|
||||
|
||||
hyprctl dispatch focusmonitor 0
|
||||
setsid nwg-dock-hyprland -m -l top &
|
||||
|
||||
sleep 0.5
|
||||
|
||||
((last = last + 1)) # make number be one higher so it also takes last window (this is required as we used `i < "$last"`)
|
||||
for ((i = 0; i < "$last"; i++)); do
|
||||
hyprctl dispatch focusmonitor "$i"
|
||||
setsid nwg-dock-hyprland -m -l top -c 'bemenu-run -l 5' &
|
||||
sleep 0.5
|
||||
done
|
||||
|
|
@ -36,6 +36,11 @@ unfuck_bar() {
|
|||
setsid waybar &
|
||||
}
|
||||
|
||||
unfuck_dock() {
|
||||
pkill .nwg-dock-hyprl
|
||||
setsid dock-on-all-monitors &
|
||||
}
|
||||
|
||||
unfuck_networkmanager() {
|
||||
# sudo modprobe -r iwlwifi
|
||||
# sudo modprobe iwlwifi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue