This commit is contained in:
joygnu 2024-07-15 20:30:05 +02:00
parent e67316508a
commit be149f170c
6 changed files with 41 additions and 30 deletions

View file

@ -1,6 +1,7 @@
{ inputs, ... }: { inputs, ... }:
{ {
imports = [ imports = [
./rofi ./rofi
./firefox ./firefox

View file

@ -37,6 +37,7 @@
{ name = "Gamepad Tester"; url = "https://gamepad-tester.com/"; } { name = "Gamepad Tester"; url = "https://gamepad-tester.com/"; }
{ name = "Zophar's Domain"; url = "https://www.zophar.net/music"; } { name = "Zophar's Domain"; url = "https://www.zophar.net/music"; }
{ name = "Spotify Downloader"; url = "https://spotify-downloader.com/"; } { name = "Spotify Downloader"; url = "https://spotify-downloader.com/"; }
{ name = "Hyprland"; url = "https://wiki.hyprland.org/"; }
]; ];
}]; }];

View file

@ -28,6 +28,10 @@
"DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10" "DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10"
]; ];
windowrule = [
"float, lxqt-policykit-agent"
];
env = [ env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice" "HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24" "HYPRCURSOR_SIZE = 24"
@ -48,10 +52,10 @@
"$mod,TAB, exec, alacritty" "$mod,TAB, exec, alacritty"
"$mod, E, exec, nemo" "$mod, E, exec, nemo"
"$mod, S, exec, firefox" "$mod, S, exec, firefox"
"$mod, X, exec, keepassxc" "$mod, X, exec, secrets"
"$mod, D, exec, alacritty -e screen -r cmus" "$mod, D, exec, alacritty -e screen -r cmus"
"$mod, F, exec, freetube" "$mod, F, exec, freetube"
"$mod, M, exec, mbsync -a && alacritty -e neomutt" "$mod, M, exec, alacritty -e neomutt"
"$mod, C, exec, hyprpicker -a" "$mod, C, exec, hyprpicker -a"
"$mod, A, exec, rofi -show drun" "$mod, A, exec, rofi -show drun"
"$mod+Shift, W, exec, bash ~/nix/home/hyprland/vm.sh" "$mod+Shift, W, exec, bash ~/nix/home/hyprland/vm.sh"
@ -65,6 +69,7 @@
"$mod, R, togglesplit" "$mod, R, togglesplit"
"$mod+shift, S, exec, systemctl suspend" "$mod+shift, S, exec, systemctl suspend"
"$mod+shift, M, exit, hyprland" "$mod+shift, M, exit, hyprland"
"$mod, G, exec, sh ~/nix/home/hyprland/gamemode.sh"
# cmus # cmus
"$mod, P, exec, cmus-remote --pause" "$mod, P, exec, cmus-remote --pause"
@ -135,7 +140,7 @@
gaps_out = 20; gaps_out = 20;
border_size = 2; border_size = 2;
allow_tearing = false; allow_tearing = false;
layout = "dwindle"; layout = "master";
}; };
misc ={ misc ={
@ -153,10 +158,6 @@
kb_options = "grp:alt_shift_toggle"; kb_options = "grp:alt_shift_toggle";
}; };
animations = {
# enabled = false;
};
}; };
}; };

14
home/hyprland/gamemode.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\
keyword decoration:blur:enabled 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload

View file

@ -1,24 +1,12 @@
#!/bin/sh #!/bin/sh
# Start the virtual machine named "Windows" using virsh VM_NAME="Windows"
virsh --connect qemu:///system start Windows
# Wait for 3 seconds to allow the VM to start up vm_state=$(virsh --connect qemu:///system domstate "$VM_NAME")
sleep 3
# Get the hostname of the current machine if [ "$vm_state" != "running" ]; then
hostname=$(hostname) virsh --connect qemu:///system start "$VM_NAME"
sleep 5
# Set the IP address based on the hostname
if [ "$hostname" == "desktop" ]; then
ip="192.168.122.93"
elif [ "$hostname" == "laptop" ]; then
ip="192.168.122.29"
else
echo "Unknown hostname: $hostname"
exit 1
fi fi
# Start an RDP session to the VM using xfreerdp xfreerdp -grab-keyboard /v:192.168.122.93 /u:joy /p:1 /size:100% /dynamic-resolution /gfx-h264:avc444 +gfx-progressive /sec:nla /bpp:32 /rfx /rfx-mode:video -bitmap-cache -offscreen-cache -glyph-cache
xfreerdp -grab-keyboard /v:$ip /u:joy /p:1 /size:100% /dynamic-resolution /gfx-h264:avc444 +gfx-progressive /sec:nla /bpp:32 /rfx /rfx-mode:video -bitmap-cache -offscreen-cache -glyph-cache

View file

@ -15,11 +15,15 @@
htop htop
gotop gotop
#mutt #mutt
mutt-wizard # mutt-wizard
isync # neomutt
msmtp # curl
neomutt # isync
pass # msmtp
# pass
# lynx
# notmuch
# abook
#chromium #chromium
brave brave
freetube freetube
@ -38,9 +42,11 @@
firefox firefox
bottles bottles
boxbuddy boxbuddy
#gnome
gnome.gnome-clocks gnome.gnome-clocks
gnome-calculator gnome-calculator
gnome-disk-utility gnome-disk-utility
gnome-secrets
#random shit #random shit
brightnessctl brightnessctl
gnat14 gnat14