Compare commits

...

2 commits

Author SHA1 Message Date
0df971176e
hyprland: use only current monitor for wacom tablet
Some checks failed
Flake check / check (push) Has been cancelled
Update `flake.lock` / update_lockfile (push) Has been cancelled
2026-01-05 15:05:33 +01:00
708b190d2b
vicinae: switch to vicinae 2026-01-05 15:05:02 +01:00
2 changed files with 38 additions and 22 deletions

View file

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

View file

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