Add sound level popuo

This commit is contained in:
2023-03-06 01:40:57 +09:00
parent 20955fc076
commit 9b75d47387
9 changed files with 43 additions and 35 deletions

16
flake.lock generated
View File

@@ -241,14 +241,18 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 0,
"narHash": "sha256-/+H7WC/UFwZSq+0fFskDNPOvvHFEK1ZvLt+e6JwxeD0=",
"path": "/home/zoriya/projects/nixpkgs",
"type": "path"
"lastModified": 1677689251,
"narHash": "sha256-xxfYu5wBM6gZlOJ6xFQeBWJ15BbbsR6zjA0H0FASRfw=",
"owner": "zoriya",
"repo": "nixpkgs",
"rev": "3f7e2345852b90921c55061eab06debfbc6b9e4f",
"type": "github"
},
"original": {
"path": "/home/zoriya/projects/nixpkgs",
"type": "path"
"owner": "zoriya",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {

View File

@@ -63,7 +63,7 @@
networking.hostName = hostname;
users.users.${user} = {
isNormalUser = true;
extraGroups = ["wheel" "input" "docker"];
extraGroups = ["wheel" "input" "docker" "audio"];
shell = pkgs.zsh;
packages = with pkgs; [
git

View File

@@ -19,6 +19,8 @@ in {
grim
slurp
wl-clipboard
pulseaudio
wob
];
wayland.windowManager.hyprland = {
enable = true;
@@ -44,7 +46,7 @@ in {
home.pointerCursor = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 16;
size = 24;
x11 = {
enable = true;
defaultCursor = "Adwaita";
@@ -59,5 +61,19 @@ in {
fi
'';
};
xdg.configFile."wob/wob.ini".text = with config.colorScheme.colors; ''
timeout = 500
anchor = bottom center
margin = 200
output_mode = all
overflow_mode = wrap
bar_color = ${base0C}
overflow_bar_color = ${base08}
overflow_background_color = ${base01}
background_color = ${base01}
border_color = ${base00}
overflow_border_color = ${base00}
'';
};
}

View File

@@ -177,9 +177,15 @@ bind = $mainMod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-cop
# bind = $mainMod, SPACE, exec, gfold | rofi -dmenu |
#bindr = SUPER, SUPER_L, exec, ~/.config/eww/togglepanel.sh
bindl=,XF86MonBrightnessUp,exec,brightnessctl set 5%+
bindl=,XF86MonBrightnessDown,exec,brightnessctl set 5%-
bindl=,XF86AudioRaiseVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ +5%
bindl=,XF86AudioLowerVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ -5%
bindl=,XF86AudioMute,exec,pactl set-sink-mute @DEFAULT_SINK@ toggle
$WOBSOCK = $XDG_RUNTIME_DIR/wob.sock
exec-once=rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
bindle=,XF86MonBrightnessDown,exec,brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
bindle=,XF86MonBrightnessUp,exec,brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
bindle=,XF86AudioRaiseVolume,exec,pamixer --allow-boost -ui 2 && pamixer --get-volume > $WOBSOCK
bindle=,XF86AudioLowerVolume,exec,pamixer --allow-boost -ud 2 && pamixer --get-volume > $WOBSOCK
bindl=,XF86AudioMute,exec,pamixer --toggle-mute && ( [ "$(pamixer --get-mute)" = "true" ] && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
bindl=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle

View File

@@ -105,6 +105,8 @@ return {
-- Prefer pyright
"pylsp",
"jedi_language_server",
-- rls is deprecated, rust_analyzer should be used instead.
"rls"
},
default_config = {
on_attach = lsp_on_attach,

View File

@@ -1,20 +0,0 @@
* {
base00: #1e1e2e;
base01: #181825;
base02: #313244;
base03: #45475a;
base04: #585b70;
base05: #cdd6f4;
base06: #f5e0dc;
base07: #b4befe;
base08: #f38ba8;
base09: #fab387;
base0A: #f9e2af;
base0B: #a6e3a1;
base0C: #94e2d5;
base0D: #89b4fa;
base0E: #cba6f7;
base0F: #f2cdcd;
}
/* vim:ft=css

View File

@@ -15,7 +15,7 @@ in {
};
xdg.configFile."rofi/base16.rasi".text = with config.colorScheme.colors; ''
* {
base00: #${base00}
base00: #${base00};
base01: #${base01};
base02: #${base02};
base03: #${base03};

View File

@@ -22,7 +22,7 @@ in {
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
#wireplumber.enable = true;
};
# Autostart hyprland and display lockscreen as greeter

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 MiB