1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

switched to cutting-edge channels & added pyprland & updated README.md

This commit is contained in:
XNM
2023-11-19 22:09:52 +02:00
parent c6b5ae6092
commit de00147118
12 changed files with 106 additions and 24 deletions

View File

@@ -57,5 +57,6 @@ syntax_highlight: true
# For more details, see https://docs.rs/termion/1.5.6/termion/color/index.html
color:
dir_fg: LightCyan
dirty_fg: LightGreen
file_fg: LightWhite
symlink_fg: LightYellow

View File

@@ -8,9 +8,8 @@ alias ldocker="lazydocker"
alias conf="z ~/.config"
alias nixos="z /etc/nixos"
alias store="z /nix/store"
alias rustenv="nix-shell -p pkg-config openssl sqlite protobuf --run fish" # run this command first if you have trouble with openssl, sqlite or protobuf during compiling a rust project (more https://nixos.wiki/wiki/Rust#Building_Rust_crates_that_require_external_system_libraries)
alias nswitch="sudo nixos-rebuild switch --flake /etc/nixos"
alias nswitchu="sudo nixos-rebuild switch --flake /etc/nixos --upgrade --update-input nixpkgs --update-input rust-overlay --commit-lock-file"
alias nswitchu="sudo nixos-rebuild switch --flake /etc/nixos --update-input nixpkgs --update-input rust-overlay --update-input hyprland --commit-lock-file --upgrade "
alias ncsu="sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos"
alias nsgc="sudo nix-store --gc"
alias ncg="sudo nix-collect-garbage -d"

View File

@@ -1,4 +1,5 @@
function startup
function autostart
pypr & \
wpaperd & \
waybar & \
poweralertd & \
@@ -6,4 +7,4 @@ function startup
avizo-service & \
systemctl --user start psi-notify &\
swayidle -w
end
end

View File

@@ -19,7 +19,7 @@ monitor=,preferred,auto,1.2
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = fish -c startup
exec-once = fish -c autostart
# Source a file (multi-file configs)
@@ -195,7 +195,23 @@ submap=reset
# keybinds further down will be global again...
# Scrachpads
bind = $mainMod CTRL, T, exec, pypr toggle term
$dropterm = ^(wezterm_dropdown)$
windowrule = float, $dropterm
windowrule = workspace special:scratch_term silent, $dropterm
bind = $mainMod CTRL, V, exec, pypr toggle volume
$volume_sidemenu = ^(pavucontrol)$
windowrule = float, $volume_sidemenu
windowrule = workspace special:scratch_volume silent, $volume_sidemenu
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod CTRL, M, togglespecialworkspace, minimized
bind = $mainMod, M, exec, pypr toggle_minimized
bind = $mainMod CTRL, E, exec, pypr expose
bind = $mainMod, Z, exec, pypr zoom
bind = $mainMod, T, exec, wezterm
bind = $mainMod SHIFT, T, exec, telegram-desktop
bind = $mainMod, B, exec, qutebrowser

View File

@@ -0,0 +1,22 @@
[pyprland]
plugins = [
"scratchpads",
"magnify",
"expose",
]
[scratchpads.term]
command = "wezterm start --class wezterm_dropdown"
animation = "fromTop"
unfocus = "hide"
excludes = "*"
lazy = true
[scratchpads.volume]
command = "pavucontrol --class volume_sidemenu"
animation = "fromRight"
class = "volume_sidemenu"
size = "40% 70%"
unfocus = "hide"
excludes = "*"
lazy = true