mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-11-08 11:41:14 +00:00
Move spotify and create glava desktop entries within home manager, switch to bemenu from wofi, add official spotify client
This commit is contained in:
@@ -1,19 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
spotifyPlayerDesktopEntry = pkgs.writeTextFile {
|
||||
name = "spotify-player-desktop";
|
||||
destination = "/share/applications/spotify-player.desktop";
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Spotify Player
|
||||
Exec=kitty -e spotify_player
|
||||
Icon=spotify_player
|
||||
Terminal=false
|
||||
Categories=Media;
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
boot = {
|
||||
# Make v4l2loopback kernel module available to NixOS.
|
||||
@@ -45,8 +30,8 @@ in
|
||||
plex-desktop
|
||||
projectm_3
|
||||
sox
|
||||
spotify
|
||||
spotify-player
|
||||
spotifyPlayerDesktopEntry
|
||||
vlc
|
||||
];
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
grim
|
||||
hyprpaper
|
||||
hyprpicker
|
||||
j4-dmenu-desktop
|
||||
kanshi
|
||||
libnotify
|
||||
mako
|
||||
@@ -42,7 +43,7 @@
|
||||
swayimg
|
||||
wl-clipboard
|
||||
wlogout
|
||||
wofi
|
||||
bemenu
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
@@ -40,10 +40,13 @@ in
|
||||
|
||||
};
|
||||
|
||||
programs.bemenu.enable = true;
|
||||
|
||||
programs.kitty = {
|
||||
font.name = "JetBrains Mono";
|
||||
};
|
||||
|
||||
# Application config files
|
||||
home.file.".config/hypr/hypridle.conf".source = ./dotfiles/hypridle/hypridle.conf;
|
||||
home.file.".config/hypr/hyprpaper.conf".source = ./dotfiles/hyprpaper/hyprpaper.conf;
|
||||
home.file.".config/hypr/backgrounds/black.png".source = ./dotfiles/hyprpaper/black.png;
|
||||
@@ -55,6 +58,11 @@ in
|
||||
home.file.".config/waybar/style.css".source = ./dotfiles/waybar/style.css;
|
||||
home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout;
|
||||
|
||||
# Desktop entry files so bemenu can find them
|
||||
home.file.".local/share/glava.desktop".source = ./dotfiles/.local/share/glava.desktop;
|
||||
home.file.".local/share/spotify-player.desktop".source =
|
||||
./dotfiles/.local/share/spotify-player.desktop;
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
|
||||
7
users/caperren/dotfiles/.local/share/glava.desktop
Normal file
7
users/caperren/dotfiles/.local/share/glava.desktop
Normal file
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Glava
|
||||
Exec=glava
|
||||
Icon=glava
|
||||
Terminal=false
|
||||
Categories=Media;
|
||||
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Spotify Player
|
||||
Exec=kitty -e spotify_player
|
||||
Icon=spotify_player
|
||||
Terminal=false
|
||||
Categories=Media;
|
||||
@@ -1,12 +1,12 @@
|
||||
# Always enable new monitors in automatic mode
|
||||
# Always enable new monitors in automatic mode, for when kanshi doesn't know about the setup
|
||||
monitor=,preferred,auto,1
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = kitty
|
||||
$fileManager = thunar
|
||||
$menu = wofi --show drun
|
||||
$menu = bemenu-run
|
||||
|
||||
# Some default env vars.
|
||||
# Some default env vars
|
||||
env = XCURSOR_SIZE,24
|
||||
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
|
||||
|
||||
@@ -158,17 +158,16 @@ bind = ,XF86MonBrightnessDown, exec, brightnessctl s 1%-
|
||||
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +1%
|
||||
|
||||
# Application launch
|
||||
exec-once = kanshi
|
||||
exec-once = ydotoold
|
||||
exec-once = hypridle
|
||||
exec-once = hyprpaper
|
||||
exec-once = kanshi # Automatically handles display configurations
|
||||
exec-once = ydotoold # Autoclicker/autokeyboard for automation
|
||||
exec-once = hypridle # Hyprland/wayland specific idle lock tool
|
||||
exec-once = hyprpaper # Hyprland/wayland specific wallpaper tool
|
||||
|
||||
exec-once = wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 10%
|
||||
exec-once = wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 10% # Keep eardrums intact on reboot
|
||||
|
||||
# Loop needed until waybar gtk icon crash fixed
|
||||
exec-once = bash -c "while true; do waybar; sleep 3; done"
|
||||
exec-once = waybar # Wayland specific status bar
|
||||
|
||||
exec-once = sleep 5 && nm-applet
|
||||
exec-once = sleep 5 && blueman-applet
|
||||
exec-once = sleep 5 && streamdeck -n
|
||||
exec-once = sleep 5 && Telegram -startintray
|
||||
exec-once = sleep 5 && nm-applet # Traditional notifications area
|
||||
exec-once = sleep 5 && blueman-applet # Traditional bluetooth management tool
|
||||
exec-once = sleep 5 && streamdeck -n # Streamdeck management tool
|
||||
exec-once = sleep 5 && Telegram -startintray # Gotta keep in touch with peeps
|
||||
Reference in New Issue
Block a user