fix: cursor size inconsistent
This commit is contained in:
parent
1307aa78fa
commit
5951b04024
11 changed files with 81 additions and 41 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
"exclusive": true,
|
"exclusive": true,
|
||||||
"passthrough": false,
|
"passthrough": false,
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
"height": 40,
|
||||||
"spacing": 3,
|
"spacing": 3,
|
||||||
"fixed-center": true,
|
"fixed-center": true,
|
||||||
"ipc": true,
|
"ipc": true,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ pkgs, cursor-size, ... }:
|
{ pkgs, xcursor-size, ... }:
|
||||||
let
|
let
|
||||||
cursorName = "catppuccin-macchiato-lavender-cursors";
|
cursorName = "catppuccin-macchiato-lavender-cursors";
|
||||||
themeName = "catppuccin-macchiato-lavender-compact";
|
themeName = "catppuccin-macchiato-lavender-compact";
|
||||||
cursorSize = pkgs.lib.strings.toInt cursor-size;
|
cursorSize = pkgs.lib.strings.toInt xcursor-size;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ pkgs, lib, inputs, system, terminal }:
|
{
|
||||||
|
pkgs,
|
||||||
|
terminal,
|
||||||
|
xcursor-size,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
swayncScript = pkgs.pkgs.writeShellScriptBin "swaync-start" ''
|
swayncScript = pkgs.pkgs.writeShellScriptBin "swaync-start" ''
|
||||||
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
|
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
|
||||||
|
|
@ -10,6 +15,8 @@ let
|
||||||
dconf write /org/cinnamon/desktop/applications/terminal/exec "''\'${terminal}''\'" &
|
dconf write /org/cinnamon/desktop/applications/terminal/exec "''\'${terminal}''\'" &
|
||||||
dconf write /org/cinnamon/desktop/applications/terminal/exec-arg "''\'''\'" &
|
dconf write /org/cinnamon/desktop/applications/terminal/exec-arg "''\'''\'" &
|
||||||
|
|
||||||
|
dconf write /org/gnome/desktop/interface/cursor-size ${xcursor-size} &
|
||||||
|
|
||||||
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
|
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
|
||||||
uwsm app -- ${swayncScript}/bin/swaync-start &
|
uwsm app -- ${swayncScript}/bin/swaync-start &
|
||||||
dbus-update-activation-environment --systemd --all &
|
dbus-update-activation-environment --systemd --all &
|
||||||
|
|
@ -24,4 +31,3 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
''${startupScript}/bin/start''
|
''${startupScript}/bin/start''
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,30 @@
|
||||||
{ pkgs, lib, inputs, system, cursor-size, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
system,
|
||||||
|
hyprcursor-size,
|
||||||
|
xcursor-size,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
terminal = "ghostty";
|
terminal = "ghostty";
|
||||||
startScript = import ./hypr/exec.nix { inherit pkgs lib inputs system terminal; };
|
startScript = import ./hypr/exec.nix {
|
||||||
|
inherit
|
||||||
|
pkgs
|
||||||
|
lib
|
||||||
|
inputs
|
||||||
|
system
|
||||||
|
terminal
|
||||||
|
xcursor-size
|
||||||
|
;
|
||||||
|
};
|
||||||
mainMod = "SUPER";
|
mainMod = "SUPER";
|
||||||
window = import ./hypr/window.nix;
|
window = import ./hypr/window.nix;
|
||||||
windowrule = import ./hypr/windowrule.nix;
|
windowrule = import ./hypr/windowrule.nix;
|
||||||
input = import ./hypr/input.nix;
|
input = import ./hypr/input.nix;
|
||||||
plugins = import ./hypr/plugin.nix;
|
plugins = import ./hypr/plugin.nix;
|
||||||
cursorSize = cursor-size;
|
|
||||||
cursorName = "catppuccin-macchiato-lavender-cursors";
|
cursorName = "catppuccin-macchiato-lavender-cursors";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -27,27 +43,33 @@ in
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
package = inputs.hyprland.packages.${system}.hyprland;
|
package = inputs.hyprland.packages.${system}.hyprland;
|
||||||
|
|
||||||
plugins = (with inputs.hyprland-plugins.packages.${system}; [
|
plugins =
|
||||||
xtra-dispatchers
|
(with inputs.hyprland-plugins.packages.${system}; [
|
||||||
hyprexpo
|
xtra-dispatchers
|
||||||
hyprwinwrap
|
hyprexpo
|
||||||
]) ++ ([
|
hyprwinwrap
|
||||||
inputs.hyprgrass.packages.${system}.default
|
])
|
||||||
]);
|
++ ([
|
||||||
|
inputs.hyprgrass.packages.${system}.default
|
||||||
|
]);
|
||||||
|
|
||||||
settings = {
|
settings =
|
||||||
bind = import ./hypr/bind.nix { inherit mainMod; };
|
{
|
||||||
bindm = import ./hypr/bindm.nix { inherit mainMod; };
|
bind = import ./hypr/bind.nix { inherit mainMod; };
|
||||||
monitor = import ./hypr/monitor.nix;
|
bindm = import ./hypr/bindm.nix { inherit mainMod; };
|
||||||
plugin = plugins;
|
monitor = import ./hypr/monitor.nix;
|
||||||
exec-once = ''${startScript}'';
|
plugin = plugins;
|
||||||
env = [
|
exec-once = ''${startScript}'';
|
||||||
''HYPRCURSOR_THEME, ${cursorName}''
|
env = [
|
||||||
''HYPRCURSOR_SIZE, ${cursorSize}''
|
''HYPRCURSOR_THEME, ${cursorName}''
|
||||||
''XCURSOR_THEME, ${cursorName}''
|
''HYPRCURSOR_SIZE, ${hyprcursor-size}''
|
||||||
''XCURSOR_SIZE, ${cursorSize}''
|
''XCURSOR_THEME, ${cursorName}''
|
||||||
];
|
''XCURSOR_SIZE, ${xcursor-size}''
|
||||||
} // window // windowrule // input;
|
];
|
||||||
|
}
|
||||||
|
// window
|
||||||
|
// windowrule
|
||||||
|
// input;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cursor-size = "24";
|
hyprcursor-size = "32";
|
||||||
|
xcursor-size = "24";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -32,7 +33,8 @@ in
|
||||||
inputs
|
inputs
|
||||||
system
|
system
|
||||||
nix-version
|
nix-version
|
||||||
cursor-size
|
xcursor-size
|
||||||
|
hyprcursor-size
|
||||||
git-config
|
git-config
|
||||||
username
|
username
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cursor-size = "32";
|
hyprcursor-size = "32";
|
||||||
|
xcursor-size = "24";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -36,7 +37,8 @@ in
|
||||||
inputs
|
inputs
|
||||||
system
|
system
|
||||||
nix-version
|
nix-version
|
||||||
cursor-size
|
xcursor-size
|
||||||
|
hyprcursor-size
|
||||||
git-config
|
git-config
|
||||||
username
|
username
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,5 @@ in
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
GSETTINGS_SCHEMA_DIR = "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas";
|
GSETTINGS_SCHEMA_DIR = "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas";
|
||||||
HYPERCURSOR_SIZE = 24;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
pkgs.xdg-desktop-portal-wlr
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
|
@ -22,7 +25,6 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pyprland
|
pyprland
|
||||||
hyprcursor
|
|
||||||
hyprsunset
|
hyprsunset
|
||||||
hyprpicker
|
hyprpicker
|
||||||
hyprshot
|
hyprshot
|
||||||
|
|
@ -46,7 +48,10 @@
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
substituters = [ "https://hyprland.cachix.org" ];
|
substituters = [ "https://hyprland.cachix.org" ];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
earlySetup = true;
|
||||||
|
font = "ter-124b";
|
||||||
useXkbConfig = true;
|
useXkbConfig = true;
|
||||||
|
packages = with pkgs; [ terminus_font ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
getIconScript = pkgs.writeShellScriptBin "get-icon" (builtins.readFile ../../home/config/scripts/getIcons.sh);
|
getIconScript = pkgs.writeShellScriptBin "get-icon" (
|
||||||
|
builtins.readFile ../../home/config/scripts/getIcons.sh
|
||||||
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
|
@ -33,7 +35,7 @@ in
|
||||||
set -g status-left "#[fg=#84977f,bg=default,bold] █ session: #S"
|
set -g status-left "#[fg=#84977f,bg=default,bold] █ session: #S"
|
||||||
set -g status-right " #[fg=#828bb8,bg=default,bold]${config.networking.hostName} "
|
set -g status-right " #[fg=#828bb8,bg=default,bold]${config.networking.hostName} "
|
||||||
|
|
||||||
setw -g window-status-format "#[bg=#171616,bg=default] #[fg=#495361,bg=default]#(${getIconScript}/get-icon #I) #W"
|
setw -g window-status-format "#[fg=#171616,bg=default] #[fg=#495361,bg=default]#(${getIconScript}/get-icon #I) #W"
|
||||||
setw -g window-status-current-format "#[fg=#7e93a9,bg=default] #[fg=#7e93a9,bg=default,bold]#(${getIconScript}/get-icon #I) #W"
|
setw -g window-status-current-format "#[fg=#7e93a9,bg=default] #[fg=#7e93a9,bg=default,bold]#(${getIconScript}/get-icon #I) #W"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
dbus.enable = true;
|
dbus.enable = true;
|
||||||
picom.enable = true;
|
|
||||||
|
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
|
|
||||||
|
|
@ -27,7 +26,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = false;
|
||||||
xkb.layout = "us";
|
xkb.layout = "us";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue