hyprland: add startup apps, remove language modules and use fcitx5

This commit is contained in:
Alexandre Cavalheiro 2024-08-15 16:12:37 -03:00
parent 328e263dc3
commit 50dd221409
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
6 changed files with 54 additions and 13 deletions

View file

@ -46,6 +46,7 @@
# if you don't want to manage your shell through Home Manager. # if you don't want to manage your shell through Home Manager.
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
}; };
@ -85,6 +86,7 @@
zathura zathura
# Personal utilities # Personal utilities
anki
ledger ledger
vesktop vesktop
@ -109,6 +111,7 @@
# Games # Games
mindustry-wayland mindustry-wayland
prismlauncher
shattered-pixel-dungeon shattered-pixel-dungeon
xonotic xonotic
@ -301,6 +304,7 @@
# Configure XDG # Configure XDG
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"inode/directory" = [ "thunar.desktop" ];
"text/html" = [ "firefox.desktop" ]; "text/html" = [ "firefox.desktop" ];
"video/mp4" = [ "vlc.desktop" ]; "video/mp4" = [ "vlc.desktop" ];
"video/x-matroska" = [ "vlc.desktop" ]; "video/x-matroska" = [ "vlc.desktop" ];

View file

@ -151,6 +151,12 @@ in
# Define system-wide variables. # Define system-wide variables.
environment.variables = { }; environment.variables = { };
# Define variables that will be initialized in PAM.
environment.sessionVariables = {
# Set env for Fcitx5
QMODIFIERS = "@im=fcitx5";
};
# Set fish as the default shell for all users. # Set fish as the default shell for all users.
users.defaultUserShell = pkgs.fish; users.defaultUserShell = pkgs.fish;
@ -304,6 +310,22 @@ in
services.gvfs.enable = true; # For mounting drives, trash, etc. services.gvfs.enable = true; # For mounting drives, trash, etc.
services.tumbler.enable = true; # Thumbnail support services.tumbler.enable = true; # Thumbnail support
# Enable the Fcitx5 IME
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5 = {
addons = with pkgs; [
fcitx5-mozc
fcitx5-gtk
fcitx5-catppuccin
];
waylandFrontend = true;
};
};
## ##
## SOUND # ## SOUND #
## ##

View file

@ -145,9 +145,12 @@
# Inject home-manager session variables # Inject home-manager session variables
exec-once = /etc/profiles/per-user/wizardlink/etc/profile.d/hm-session-vars.sh exec-once = /etc/profiles/per-user/wizardlink/etc/profile.d/hm-session-vars.sh
# Execute your favorite apps at launch # Start the core services of my desktop
exec-once = ~/.local/share/scripts/hyprland/start_services.sh exec-once = ~/.local/share/scripts/hyprland/start_services.sh
# Open the apps I always use
exec-once = ~/.local/share/scripts/hyprland/start_apps.sh
# Set cursor size. # Set cursor size.
env = HYPRCURSOR_SIZE, 36 env = HYPRCURSOR_SIZE, 36
env = XCURSOR_SIZE, 36 env = XCURSOR_SIZE, 36
@ -157,10 +160,10 @@
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input { input {
kb_layout = us,br,jp kb_layout =
kb_variant = ,,kana86 kb_variant =
kb_model = kb_model =
kb_options = grp:alts_toggle kb_options =
kb_rules = kb_rules =
follow_mouse = 1 follow_mouse = 1
@ -347,5 +350,8 @@
windowrulev2 = noblur, tag:apt windowrulev2 = noblur, tag:apt
windowrulev2 = noborder, tag:apt windowrulev2 = noborder, tag:apt
windowrulev2 = noshadow, tag:apt windowrulev2 = noshadow, tag:apt
# Rules for anki
windowrulev2 = float, class:^(anki)$
''; '';
} }

View file

@ -17,7 +17,6 @@
"cpu" "cpu"
"temperature" "temperature"
"battery" "battery"
"hyprland/language"
"tray" "tray"
]; ];
@ -127,14 +126,6 @@
tooltip = false; tooltip = false;
}; };
"hyprland/language" = {
format = " {}";
format-en = "EN/US";
format-pt-br = "PT/BR";
#"on-click" = "hyprctl switchxkblayout www.hfd.cn-monsgeek-keyboard-1 next";
tooltip = false;
};
tray = { tray = {
icon-size = 18; icon-size = 18;
spacing = 10; spacing = 10;

13
scripts/hyprland/start_apps.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# Open qbittorrent
qbittorrent &
# Open vesktop
vesktop &
# Open steam
steam &
# Open firefox
firefox

View file

@ -56,6 +56,11 @@ kdeconnect-cli --refresh &
wl-paste --type text --watch cliphist store & wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store & wl-paste --type image --watch cliphist store &
#
# Start Fcitx5
#
fcitx5 &
# #
# Start the blueman applet for managing bluetooth devices # Start the blueman applet for managing bluetooth devices
# #