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:
6
home/.cargo/.crates.toml
Normal file
6
home/.cargo/.crates.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[v1]
|
||||
"cargo-contract 3.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = ["cargo-contract"]
|
||||
"cargo-dylint 2.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = ["cargo-dylint"]
|
||||
"contracts-node 0.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = ["substrate-contracts-node"]
|
||||
"dylint-link 2.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = ["dylint-link"]
|
||||
"ink-lsp-server 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = ["ink-lsp-server"]
|
@@ -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
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
@@ -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
|
||||
|
22
home/.config/hypr/pyprland.toml
Normal file
22
home/.config/hypr/pyprland.toml
Normal 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
|
@@ -1 +1 @@
|
||||
rustflags = ["-C", "link-arg=-fuse-ld=/path/to/mold", "-Zcodegen-backend=cranelift" ] # Change '/path/to/mold' and DON'T use it in production, only for dev needs
|
||||
rustflags = ["-C", "link-arg=-fuse-ld=/path/to/mold", "-Z", "threads=8" ] # Change '/path/to/mold', use with nightly version of Rust
|
||||
|
@@ -2,6 +2,7 @@
|
||||
channel = "nightly"
|
||||
components = [ "rust-src", "rust-analyzer", "rustc-codegen-cranelift", "miri", "llvm-tools", "rust-docs-json" ]
|
||||
targets = [
|
||||
"wasm32-unknown-unknown",
|
||||
"wasm32-wasi",
|
||||
"wasm32-wasi-preview1-threads",
|
||||
"x86_64-pc-windows-gnu",
|
||||
|
Reference in New Issue
Block a user