removing some cosmic stuff and fixing lots of things

This commit is contained in:
Chris Cochrun 2025-07-17 10:53:31 -05:00
parent e3e6cbe1b4
commit 17a592dc12
5 changed files with 40 additions and 32 deletions

View file

@ -253,14 +253,14 @@ const Instances = {
], ],
libreddit: [ libreddit: [
// "redditor.fly.dev", // "redditor.fly.dev",
"libreddit.kavin.rocks", // "libreddit.kavin.rocks",
// "libreddit.northboot.xyz", // "libreddit.northboot.xyz",
// "libreddit.kylrth.com", // "libreddit.kylrth.com",
"libreddit.privacy.com", // "libreddit.privacy.com",
// "l.opnxng.com", // "l.opnxng.com",
"libreddit.projectsegfau.lt", // "libreddit.projectsegfau.lt",
"safereddit.com", "safereddit.com",
"libreddit.privacydev.net", // "libreddit.privacydev.net",
// "libreddit.freedit.eu", // "libreddit.freedit.eu",
// "libreddit.mha.fi", // "libreddit.mha.fi",
// "lr.artemislena.eu", // "lr.artemislena.eu",
@ -1201,7 +1201,7 @@ switch (urlHostname) {
break; break;
case urlHostname.includes("reddit.com") ? urlHostname : 0: case urlHostname.includes("reddit.com") ? urlHostname : 0:
redirectReddit(); // redirectReddit();
break; break;
case urlHostname.includes("medium.com") ? urlHostname : 0: case urlHostname.includes("medium.com") ? urlHostname : 0:

View file

@ -45,7 +45,7 @@ in {
enable = true; enable = true;
config = { config = {
common = { common = {
default = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-cosmic ]; default = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ]; "org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
}; };
hyprland = { hyprland = {
@ -53,7 +53,7 @@ in {
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ]; "org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
}; };
}; };
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-cosmic ]; extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
}; };
mimeApps = { mimeApps = {
enable = true; enable = true;

View file

@ -109,7 +109,7 @@ in
"special,monitor:DP-1,1,default:true" "special,monitor:DP-1,1,default:true"
]; ];
input = { input = {
repeat_rate = 140; repeat_rate = 180;
repeat_delay = 180; repeat_delay = 180;
natural_scroll = 0; natural_scroll = 0;
@ -221,6 +221,7 @@ in
mouse_move_enables_dpms = true; mouse_move_enables_dpms = true;
key_press_enables_dpms = true; key_press_enables_dpms = true;
disable_hyprland_logo = true; disable_hyprland_logo = true;
anr_missed_pings = 10;
}; };
# example window rules # example window rules
@ -269,6 +270,7 @@ in
]; ];
# example binds # example binds
binds.scroll_event_delay = 10;
bind = [ bind = [
"SUPER,RETURN,exec,alacritty" "SUPER,RETURN,exec,alacritty"
"SUPER,C,killactive," "SUPER,C,killactive,"
@ -281,12 +283,15 @@ in
"SUPER,v,exec,cliphist list | rofi -p '󱃔 ' -dmenu | cliphist decode | wl-copy" "SUPER,v,exec,cliphist list | rofi -p '󱃔 ' -dmenu | cliphist decode | wl-copy"
"SUPER,B,exec,/home/chris/bin/qblof" "SUPER,B,exec,/home/chris/bin/qblof"
"SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer" "SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer"
"SUPERCTRL,i,exec,alacritty --class btop -e btop" "SUPER,i,exec,alacritty --class btop -e btop"
"SUPERSHIFT,p,exec,${pkgs.hyprshot}/bin/hyprshot -m region" "SUPERSHIFT,p,exec,${pkgs.hyprshot}/bin/hyprshot -m region"
"SUPERALT,p,exec,${pkgs.hyprshot}/bin/hyprshot -m window" "SUPERALT,p,exec,${pkgs.hyprshot}/bin/hyprshot -m window"
"SUPERCTRL,p,exec,${pkgs.hyprshot}/bin/hyprshot -m active" "SUPERCTRL,p,exec,${pkgs.hyprshot}/bin/hyprshot -m active"
"SUPERSHIFT,mouse_down,exec,zoomin in" "SUPERSHIFT,mouse_down,exec,zoomin in"
"SUPERSHIFT,mouse_up,exec,zoomin out" "SUPERSHIFT,mouse_up,exec,zoomin out"
"SUPER, mouse_down, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 1.1}')"
"SUPER, mouse_up, exec, hyprctl -q keyword cursor:zoom_factor $(hyprctl getoption cursor:zoom_factor | awk '/^float.*/ {print $2 * 0.9}')"
"SUPERALT,r,exec,zoomin in" "SUPERALT,r,exec,zoomin in"
"SUPERALT,m,exec,zoomin out" "SUPERALT,m,exec,zoomin out"
"SUPERALT,f,exec,hyprctl keyword cursor:zoom_factor 1.0" "SUPERALT,f,exec,hyprctl keyword cursor:zoom_factor 1.0"
@ -341,7 +346,6 @@ in
"SUPER,o,movewindow,mon:l" "SUPER,o,movewindow,mon:l"
"SUPER,y,togglespecialworkspace" "SUPER,y,togglespecialworkspace"
"SUPER,i,movewindow,left"
"SUPERSHIFT,p,pin" "SUPERSHIFT,p,pin"
"SUPER,n,movetoworkspace,special" "SUPER,n,movetoworkspace,special"
"SUPERALT,a,movetoworkspace,special:agenda" "SUPERALT,a,movetoworkspace,special:agenda"

View file

@ -33,7 +33,7 @@ in
boot.supportedFilesystems = [ "ntfs" ]; boot.supportedFilesystems = [ "ntfs" ];
services = { services = {
desktopManager.cosmic.enable = true; desktopManager.cosmic.enable = false;
}; };
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
@ -75,30 +75,34 @@ in
}; };
services.displayManager.cosmic-greeter = { services.displayManager.cosmic-greeter = {
enable = true; enable = false;
}; };
services.greetd = { services.greetd = {
enable = true; enable = true;
# settings = rec { settings = rec {
# initial_session = { initial_session = {
# command = "dbus-run-session Hyprland"; command = "if uwsm check may-start; then
# # command = "dbus-run-session startplasma-wayland"; exec uwsm start hyprland-uwsm.desktop
# user = "chris"; fi";
# }; # command = "dbus-run-session startplasma-wayland";
# default_session = { user = "chris";
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --window-padding 2 --cmd 'dbus-run-session Hyprland' -s /etc/greetd/environments"; };
# user = "greeter"; default_session = {
# }; command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --window-padding 2 --cmd 'if uwsm check may-start; then
# plasma_session = { exec uwsm start hyprland-uwsm.desktop
# command = "dbus-run-session startplasma-wayland"; fi' -s /etc/greetd/environments";
# user = "chris"; user = "greeter";
# }; };
# hyprland_session = { plasma_session = {
# command = "Hyprland"; command = "dbus-run-session startplasma-wayland";
# user = "chris"; user = "chris";
# }; };
# }; hyprland_session = {
command = "Hyprland";
user = "chris";
};
};
}; };
programs.regreet = { enable = true; }; programs.regreet = { enable = true; };

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
for filename in *.mov; do for filename in *.mov; do
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device /dev/dri/renderD128 -i "${filename}" -vf 'format=nv12,hwupload' -c:v hevc_vaapi -c:a aac -crf 22 "${filename%.*}".mp4 ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -i "${filename}" -vf 'format=nv12,hwupload' -c:v h264_vaapi -c:a aac -crf 28 "${filename%.*}".mp4
rm $filename rm $filename
done done