Compare commits

..

No commits in common. "0df971176ed35826a1aa600e878a60b05f1c6a45" and "bb0e68d1aa4818408dd142cd941696452a530302" have entirely different histories.

2 changed files with 22 additions and 38 deletions

View file

@ -13,12 +13,13 @@
settings = settings =
let let
app_menu = "vicinae toggle"; app_menu = "${pkgs.fuzzel}/bin/fuzzel";
in in
{ {
# Autostart # Autostart
exec-once = [ exec-once = [
"uwsm app -- nm-applet" "uwsm app -- nm-applet"
"uwsm app -- ${pkgs.wl-clip-persist}/bin/persist --clipboard regular"
"uwsm app -- bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'" "uwsm app -- bash -c 'if [ ! -f ~/.config/hypr/wallpaper.png ]; then wall-change ~/.config/hypr/default_wallpaper.png; fi'"
"uwsm app -- ${pkgs.swaybg}/bin/swaybg -m fill -i ~/.config/hypr/wallpaper.png &" "uwsm app -- ${pkgs.swaybg}/bin/swaybg -m fill -i ~/.config/hypr/wallpaper.png &"
"uwsm app -- ${pkgs.poweralertd}/bin/poweralertd" "uwsm app -- ${pkgs.poweralertd}/bin/poweralertd"
@ -35,9 +36,6 @@
touchpad = { touchpad = {
natural_scroll = true; natural_scroll = true;
}; };
tablet = {
output = "current";
};
}; };
general = { general = {
@ -142,9 +140,10 @@
"$mainMod SHIFT, F, fullscreen, 1" "$mainMod SHIFT, F, fullscreen, 1"
"$mainMod, Space, togglefloating," "$mainMod, Space, togglefloating,"
"$mainMod, D, exec, uwsm app -- ${app_menu}" "$mainMod, D, exec, uwsm app -- ${app_menu}"
"$mainMod SHIFT, E, exec, vicinae vicinae://extensions/vicinae/vicinae/search-emojis" "$mainMod SHIFT, E, exec, uwsm app -- ${pkgs.bemoji}/bin/bemoji -n"
"$mainMod, M, exec, uwsm app -- element-desktop" "$mainMod, M, exec, uwsm app -- element-desktop"
"$mainMod, Y, exec, uwsm app -- kitty spotify_player" "$mainMod, Y, exec, uwsm app -- kitty spotify_player"
"$mainMod, X, exec, uwsm app -- rofi-rbw"
"$mainMod, Escape, exec, uwsm app -- loginctl lock-session" "$mainMod, Escape, exec, uwsm app -- loginctl lock-session"
"$mainMod SHIFT, Escape, exec, uwsm app -- shutdown-script" "$mainMod SHIFT, Escape, exec, uwsm app -- shutdown-script"
"$mainMod, P, pseudo," "$mainMod, P, pseudo,"
@ -236,7 +235,7 @@
"$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-" "$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-"
# clipboard manager # clipboard manager
"$mainMod, V, exec, vicinae vicinae://extensions/vicinae/clipboard/history" "$mainMod, V, exec, cliphist list | fuzzel --dmenu --prompt '📋 ' | cliphist decode | wl-copy"
]; ];
# Bindings that work when locked # Bindings that work when locked
@ -310,12 +309,6 @@
"noblur,class:^(xwaylandvideobridge)$" "noblur,class:^(xwaylandvideobridge)$"
]; ];
layerrule = [
"blur,vicinae"
"ignorealpha 0, vicinae"
"noanim, vicinae" # disable fade animation for vicinae only
];
monitor = [ monitor = [
",preferred,auto,1" ",preferred,auto,1"
]; ];

View file

@ -1,5 +1,4 @@
{ pkgs, config, ... }: {pkgs, ...}: {
{
services.hyprpolkitagent.enable = true; services.hyprpolkitagent.enable = true;
programs.fuzzel = { programs.fuzzel = {
@ -25,34 +24,26 @@
}; };
}; };
programs.vicinae = { services.cliphist = {
enable = true; enable = true;
systemd = {
enable = true; allowImages = true;
autoStart = true;
};
settings = {
theme.iconTheme = "Default"; # Normal app icons in launcher
};
}; };
home.packages = [ home.packages = [
(pkgs.writeShellApplication { (pkgs.writeShellApplication
# From https://github.com/emersion/mako/wiki/Volume-change-notification#1-create-the-notifier-script {
name = "wp-vol"; # From https://github.com/emersion/mako/wiki/Volume-change-notification#1-create-the-notifier-script
runtimeInputs = with pkgs; [ name = "wp-vol";
wireplumber runtimeInputs = with pkgs; [wireplumber gawk bc];
gawk text = ''
bc # Get the volume level and convert it to a percentage
]; volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
text = '' volume=$(echo "$volume" | awk '{print $2}')
# Get the volume level and convert it to a percentage volume=$(echo "( $volume * 100 ) / 1" | bc)
volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
volume=$(echo "$volume" | awk '{print $2}')
volume=$(echo "( $volume * 100 ) / 1" | bc)
notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%" notify-send -t 1000 -a 'wp-vol' -h "int:value:$volume" "Volume: ''${volume}%"
''; '';
}) })
]; ];
} }