Compare commits
2 Commits
679f2e8f6b
...
428488f11d
| Author | SHA1 | Date | |
|---|---|---|---|
| 428488f11d | |||
| f8e843ec94 |
@@ -1,6 +1,9 @@
|
||||
{pkgs, ...}: {
|
||||
# TODO: implement a way to show binds, preferably use vicinae.
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
binds = {
|
||||
workspace_back_and_forth = true;
|
||||
};
|
||||
bindel = [
|
||||
", XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10"
|
||||
", XF86MonBrightnessDown, exec, ddcutil setvcp 10 - 10"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
gaps_in = 5;
|
||||
gaps_out = 15;
|
||||
layout = "dwindle";
|
||||
allow_tearing = true;
|
||||
};
|
||||
decoration = {
|
||||
rounding = 0;
|
||||
|
||||
@@ -352,6 +352,15 @@
|
||||
platformTheme.name = "gtk";
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme =
|
||||
if myConfig.theme.mode == "dark"
|
||||
then "prefer-dark"
|
||||
else "prefer-light";
|
||||
};
|
||||
};
|
||||
|
||||
# GTK theming with adw-gtk3 and Matugen colors
|
||||
gtk = {
|
||||
enable = true;
|
||||
@@ -364,7 +373,19 @@
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
gtk3.extraCss = ''@import url("colors.css");'';
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme =
|
||||
if myConfig.theme.mode == "dark"
|
||||
then 1
|
||||
else 0;
|
||||
};
|
||||
gtk4.extraCss = ''@import url("colors.css");'';
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme =
|
||||
if myConfig.theme.mode == "dark"
|
||||
then 1
|
||||
else 0;
|
||||
};
|
||||
};
|
||||
|
||||
programs.ghostty.settings.theme = "matugen";
|
||||
|
||||
@@ -71,6 +71,12 @@
|
||||
fi
|
||||
'';
|
||||
in {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bindd = [
|
||||
"SUPER, X, Open File Manager, exec, uwsm app -- yazi"
|
||||
];
|
||||
};
|
||||
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
@@ -109,7 +115,7 @@ in {
|
||||
default=hyprland;gtk
|
||||
org.freedesktop.impl.portal.FileChooser=termfilechooser
|
||||
'';
|
||||
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
email = "kenji@hakase";
|
||||
defaultBranch = "master";
|
||||
};
|
||||
theme = {
|
||||
mode = "dark";
|
||||
};
|
||||
terminal = {
|
||||
default = "ghostty";
|
||||
font = "MonoLisa";
|
||||
@@ -74,6 +77,9 @@
|
||||
email = "kenji@macbook";
|
||||
defaultBranch = "master";
|
||||
};
|
||||
theme = {
|
||||
mode = "dark";
|
||||
};
|
||||
terminal = {
|
||||
default = "ghostty";
|
||||
font = "MonoLisa";
|
||||
|
||||
+51
-16
@@ -1,4 +1,30 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
myConfig,
|
||||
...
|
||||
}: let
|
||||
games = [
|
||||
"Deadlock"
|
||||
];
|
||||
|
||||
# Generate monitor rules for each game in the config
|
||||
gameRules =
|
||||
lib.flatten (map (game: [
|
||||
"monitor 0, title:^(${game})$"
|
||||
"workspace name:gaming, title:^(${game})$"
|
||||
"fullscreen, title:^(${game})$"
|
||||
"immediate, title:^(${game})$"
|
||||
"stayfocused, title:^(${game})$"
|
||||
|
||||
"monitor 0, class:^(${game})$"
|
||||
"workspace name:gaming, class:^(${game})$"
|
||||
"fullscreen, class:^(${game})$"
|
||||
"immediate, class:^(${game})$"
|
||||
"stayfocused, class:^(${game})$"
|
||||
])
|
||||
games);
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
protonup-qt
|
||||
protontricks
|
||||
@@ -19,6 +45,10 @@
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
workspace = [
|
||||
"name:gaming, monitor:0, default:true"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"[workspace special:steam silent] uwsm app -- steam"
|
||||
];
|
||||
@@ -26,24 +56,29 @@
|
||||
bindd = [
|
||||
"SUPER, T, Toggle Steam, togglespecialworkspace, steam"
|
||||
"SUPER SHIFT, T, Move to Steam Special Workspace, movetoworkspace, special:steam"
|
||||
"SUPER, G, Switch to Gaming Workspace, workspace, name:gaming"
|
||||
];
|
||||
|
||||
windowrulev2 = [
|
||||
# --- STEAM RULES ---
|
||||
"workspace special:steam silent, class:^(steam)$"
|
||||
"noinitialfocus, class:^(steam)$"
|
||||
"suppressevent activate, class:^(steam)$"
|
||||
windowrulev2 =
|
||||
[
|
||||
# --- STEAM RULES ---
|
||||
"workspace special:steam silent, class:^(steam)$"
|
||||
"noinitialfocus, class:^(steam)$"
|
||||
"suppressevent activate, class:^(steam)$"
|
||||
|
||||
# --- GAMING RULES ---
|
||||
"fullscreen, class:^steam_app_\d+$"
|
||||
"monitor 0, class:^steam_app_\d+$"
|
||||
"workspace 1, class:^steam_app_\d+$"
|
||||
# --- GAMING RULES ---
|
||||
"fullscreen, class:^steam_app_\d+$"
|
||||
"monitor 0, class:^steam_app_\d+$"
|
||||
"workspace name:gaming, class:^steam_app_\d+$"
|
||||
"immediate, class:^steam_app_\d+$"
|
||||
"stayfocused, class:^steam_app_\d+$"
|
||||
|
||||
"fullscreen, class:^(gamescope)$"
|
||||
"fullscreen, class:^(lutris)$"
|
||||
"fullscreen, class:^(heroic)$"
|
||||
"fullscreen, class:^wine-.*$"
|
||||
"fullscreen, title:^Wine .*$"
|
||||
];
|
||||
"fullscreen, class:^(gamescope)$"
|
||||
"fullscreen, class:^(lutris)$"
|
||||
"fullscreen, class:^(heroic)$"
|
||||
"fullscreen, class:^wine-.*$"
|
||||
"fullscreen, title:^Wine .*$"
|
||||
]
|
||||
++ gameRules;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user