mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: update hyprland's startup script to reduce start duration, update gtk theme configs
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -62,11 +62,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1683456233,
|
"lastModified": 1683459775,
|
||||||
"narHash": "sha256-BUclM2YmS0rpkSlHSvJ+5aWTu+OcjFiI4iIMRt9qCuI=",
|
"narHash": "sha256-Ab1pIKOj7XRZbJAv4g9937ElhaZF7Pob3hqGTDKt5w8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "990b82ecd31f6372bc4c3f39a9171961bc370a22",
|
"rev": "6fc82e56971523acfe1a61dbcb20f4bb969b3990",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -9,6 +9,11 @@
|
|||||||
# copy the scripts directory recursively
|
# copy the scripts directory recursively
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
home.file.".config/gtk-3.0" = {
|
||||||
|
source = ./gtk-3.0;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
home.file.".gtkrc-2.0".source = ./gtkrc-2.0;
|
||||||
home.file.".config/hypr/wallpapers/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
home.file.".config/hypr/wallpapers/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
||||||
|
|
||||||
# allow fontconfig to discover fonts and configurations installed through home.packages
|
# allow fontconfig to discover fonts and configurations installed through home.packages
|
||||||
|
|||||||
16
home/hyprland/gtk-3.0/settings.ini
Normal file
16
home/hyprland/gtk-3.0/settings.ini
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[Settings]
|
||||||
|
gtk-theme-name=Arc-Dark
|
||||||
|
gtk-icon-theme-name=Qogir-dark
|
||||||
|
gtk-font-name=Noto Sans 10
|
||||||
|
gtk-cursor-theme-name=Qogir-dark
|
||||||
|
gtk-cursor-theme-size=0
|
||||||
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||||
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
|
gtk-button-images=0
|
||||||
|
gtk-menu-images=0
|
||||||
|
gtk-enable-event-sounds=1
|
||||||
|
gtk-enable-input-feedback-sounds=1
|
||||||
|
gtk-xft-antialias=1
|
||||||
|
gtk-xft-hinting=1
|
||||||
|
gtk-xft-hintstyle=hintmedium
|
||||||
|
gtk-xft-rgba=rgb
|
||||||
19
home/hyprland/gtkrc-2.0
Normal file
19
home/hyprland/gtkrc-2.0
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
||||||
|
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||||
|
|
||||||
|
include "~/.gtkrc-2.0.mine"
|
||||||
|
gtk-theme-name="Arc-Dark"
|
||||||
|
gtk-icon-theme-name="Qogir-dark"
|
||||||
|
gtk-font-name="Noto Sans 10"
|
||||||
|
gtk-cursor-theme-name="Qogir-dark"
|
||||||
|
gtk-cursor-theme-size=0
|
||||||
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||||
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
|
gtk-button-images=0
|
||||||
|
gtk-menu-images=0
|
||||||
|
gtk-enable-event-sounds=1
|
||||||
|
gtk-enable-input-feedback-sounds=1
|
||||||
|
gtk-xft-antialias=1
|
||||||
|
gtk-xft-hinting=1
|
||||||
|
gtk-xft-hintstyle="hintmedium"
|
||||||
|
gtk-xft-rgba="rgb"
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Set GTK Themes, Icons, Cursor and Fonts
|
|
||||||
|
|
||||||
THEME='Arc-Dark'
|
|
||||||
ICONS='Zafiro-Blue'
|
|
||||||
FONT='Noto Sans 9'
|
|
||||||
CURSOR='Qogirr'
|
|
||||||
|
|
||||||
SCHEMA='gsettings set org.gnome.desktop.interface'
|
|
||||||
|
|
||||||
apply_themes () {
|
|
||||||
${SCHEMA} gtk-theme "$THEME"
|
|
||||||
${SCHEMA} icon-theme "$ICONS"
|
|
||||||
${SCHEMA} cursor-theme "$CURSOR"
|
|
||||||
${SCHEMA} font-name "$FONT"
|
|
||||||
}
|
|
||||||
|
|
||||||
apply_themes
|
|
||||||
@@ -3,22 +3,16 @@
|
|||||||
## Autostart Programs
|
## Autostart Programs
|
||||||
|
|
||||||
# Kill already running process
|
# Kill already running process
|
||||||
_ps=(waybar mako mpd xfce-polkit)
|
_ps=(waybar mako mpd)
|
||||||
for _prs in "${_ps[@]}"; do
|
for _prs in "${_ps[@]}"; do
|
||||||
if [[ $(pidof ${_prs}) ]]; then
|
if [[ $(pidof ${_prs}) ]]; then
|
||||||
killall -9 ${_prs}
|
killall -9 ${_prs}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Polkit agent
|
|
||||||
/usr/lib/xfce-polkit/xfce-polkit &
|
|
||||||
|
|
||||||
# Set wallpaper
|
# Set wallpaper
|
||||||
swaybg --output '*' --mode fill --image ~/.config/hypr/wallpapers/wallpaper.png &
|
swaybg --output '*' --mode fill --image ~/.config/hypr/wallpapers/wallpaper.png &
|
||||||
|
|
||||||
# Apply themes
|
|
||||||
~/.config/hypr/scripts/gtkthemes &
|
|
||||||
|
|
||||||
# Lauch notification daemon (mako)
|
# Lauch notification daemon (mako)
|
||||||
~/.config/hypr/scripts/notifications &
|
~/.config/hypr/scripts/notifications &
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
];})
|
];})
|
||||||
|
|
||||||
(pkgs.callPackage ../fonts/icomoon-feather-icon-font.nix { })
|
(pkgs.callPackage ../fonts/icomoon-feather-icon-font.nix { })
|
||||||
|
|
||||||
|
# arch linux icon, used temporarily in waybar
|
||||||
(pkgs.callPackage ../fonts/archcraft-icon-font.nix { })
|
(pkgs.callPackage ../fonts/archcraft-icon-font.nix { })
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user