Multi input settings fix

This commit is contained in:
foglar 2024-11-15 20:54:41 +01:00
parent 0057f46567
commit 555e6ae91e
5 changed files with 59 additions and 53 deletions

View File

@ -26,8 +26,6 @@
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
zen-browser.url = "github:MarceColl/zen-browser-flake";
firefox-addons = { firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -59,7 +57,7 @@
in { in {
nixosConfigurations = { nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem { laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs system pkgs-stable;}; specialArgs = {inherit inputs system pkgs pkgs-stable;};
modules = [ modules = [
./nixos/configuration.nix ./nixos/configuration.nix

View File

@ -1,7 +1,7 @@
{ {
lib, lib,
config, config,
pkgs-stable, pkgs,
... ...
}: { }: {
options = { options = {
@ -25,7 +25,7 @@
services.dunst.enable = true; services.dunst.enable = true;
home.packages = [ home.packages = [
pkgs-stable.toybox pkgs.toybox
]; ];
stylix.targets = { stylix.targets = {
@ -126,18 +126,18 @@
"dunst" "dunst"
"wl-paste --type text --watch cliphist store # clipboard store text data" "wl-paste --type text --watch cliphist store # clipboard store text data"
"wl-paste --type image --watch cliphist store # clipboard store image data" "wl-paste --type image --watch cliphist store # clipboard store image data"
"$scrPath/batterynotify.sh # battery notification" #"$scrPath/batterynotify.sh # battery notification"
"$scrPath/resetxdgportal.sh # reset XDPH for screenshare" #"$scrPath/resetxdgportal.sh # reset XDPH for screenshare"
#"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH" #"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH"
#"dbus-update-activation-environment --systemd --all # for XDPH" #"dbus-update-activation-environment --systemd --all # for XDPH"
#"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH" #"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH"
"$scrPath/polkitkdeauth.sh # authentication dialogue for GUI apps" #"$scrPath/polkitkdeauth.sh # authentication dialogue for GUI apps"
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
"$term" = "kitty"; "$term" = "${pkgs.kitty}/bin/kitty";
"$editor" = "code"; "$editor" = "${pkgs.vscode}/bin/code";
"$file" = "dolphin"; "$file" = "dolphin";
"$browser" = "librewolf"; "$browser" = "librewolf";

View File

@ -1,25 +1,28 @@
{pkgs, ...}: { {pkgs, pkgs-stable, ...}: {
home.packages = with pkgs; [ home.packages = (with pkgs; [
hyprlock hyprlock
hyprpicker hyprpicker
hypridle hypridle
#swww dunst
playerctl libnotify
swayosd
kitty #swww
kitty-img playerctl
pavucontrol kitty
hyprshade kitty-img
swappy
grimblast
dunst
udiskie
wl-clipboard
cliphist
swayosd
hyprshade
swappy
grimblast
udiskie
wl-clipboard
cliphist
(writeShellScriptBin "dontkillsteam" '' (writeShellScriptBin "dontkillsteam" ''
if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then if [[ $(hyprctl activewindow -j | jq -r ".class") == "Steam" ]]; then
xdotool windowunmap $(xdotool getactivewindow) xdotool windowunmap $(xdotool getactivewindow)
@ -66,12 +69,14 @@
(writeShellScriptBin "keyboardswitch" '' (writeShellScriptBin "keyboardswitch" ''
hyprctl switchxkblayout all next hyprctl switchxkblayout all next
layMain=$(hyprctl -j devices | jq '.keyboards' | jq '.[] | select (.main == true)' | awk -F '"' '{if ($2=="active_keymap") print $4}') layMain=$(hyprctl -j devices | jq '.keyboards' | jq '.[] | select (.main == true)' | awk -F '"' '{if ($2=="active_keymap") print $4}')
dunstify -a "t1" -r 91190 -t 800 "$layMain" -i ~/dotfiles/config/keyboard.svg ${libnotify}/bin/notify-send -a "t1" -r 91190 -t 800 "$layMain" -i ~/dotfiles/config/keyboard.svg
'') '')
#(writeShellScriptBin "windowpin") #(writeShellScriptBin "windowpin")
#(writeShellScriptBin "logoutlaunch") #(writeShellScriptBin "logoutlaunch")
#(writeShellScriptBin "sysmonlaunch") #(writeShellScriptBin "sysmonlaunch")
#(writeShellScriptBin "rofilaunch" '''') #(writeShellScriptBin "rofilaunch" '''')
]; ]) ++ (with pkgs-stable; [
pavucontrol
]);
} }

View File

@ -172,8 +172,8 @@
rotate = 0; rotate = 0;
format = "{icon} {percent}%"; format = "{icon} {percent}%";
format-icons = ["" "" "" "" "" "" "" "" ""]; format-icons = ["" "" "" "" "" "" "" "" ""];
on-scroll-up = " swayosd-client --brightness raise"; on-scroll-up = "${pkgs.swayosd}/bin/swayosd-client --brightness raise";
on-scroll-down = " swayosd-client --brightness lower"; on-scroll-down = "${pkgs.swayosd}/bin/swayosd-client --brightness lower";
min-length = 6; min-length = 6;
}; };
@ -194,7 +194,7 @@
format = "{icon} {volume}"; format = "{icon} {volume}";
rotate = 0; rotate = 0;
format-muted = ""; format-muted = "";
on-click = "nvidia-offload pavucontrol -t 3"; on-click = "pavucontrol -t 3";
on-click-middle = "swayosd-client --output-volume mute-toggle"; on-click-middle = "swayosd-client --output-volume mute-toggle";
on-scroll-up = "swayosd-client --output-volume 5"; on-scroll-up = "swayosd-client --output-volume 5";
on-scroll-down = "swayosd-client --output-volume -5"; on-scroll-down = "swayosd-client --output-volume -5";
@ -216,7 +216,7 @@
rotate = 0; rotate = 0;
format-source = ""; format-source = "";
format-source-muted = ""; format-source-muted = "";
on-click = "nvidia-offload pavucontrol -t 4"; on-click = "pavucontrol -t 4";
on-click-middle = "swayosd-client --input-volume mute-toggle"; on-click-middle = "swayosd-client --input-volume mute-toggle";
on-scroll-up = "swayosd-client --input-volume 5"; on-scroll-up = "swayosd-client --input-volume 5";
on-scroll-down = "swayosd-client --input-volume -5"; on-scroll-down = "swayosd-client --input-volume -5";

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
pkgs, pkgs,
pkgs-stable,
config, config,
... ...
}: { }: {
@ -13,25 +14,27 @@
]; ];
config = lib.mkIf config.applications.enable { config = lib.mkIf config.applications.enable {
home.packages = with pkgs; [ home.packages =
librewolf (with pkgs; [
vesktop librewolf
ferdium ferdium
simple-scan stellarium
loupe libreoffice
localsend
stellarium plasma5Packages.kdeconnect-kde
libreoffice qbittorrent
localsend vlc
plasma5Packages.kdeconnect-kde #tor-browser
qbittorrent openrocket
vlc spotify
#tor-browser spotube
openrocket inkscape
spotify ])
spotube ++ (with pkgs-stable; [
inkscape loupe
]; simple-scan
vesktop
]);
}; };
} }