Fix pulseaudio indicator in waybar

This commit is contained in:
Daniel Flanagan 2020-10-25 00:33:20 -05:00
parent f3c1b1b2ce
commit ba7e4d52d5
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
16 changed files with 48 additions and 69 deletions

View file

@ -1,3 +1,5 @@
include $HOME/.env/sway/config.d/main
# TODO: # TODO:
# #
# + Super+r should rotate the selected group of windows. # + Super+r should rotate the selected group of windows.
@ -9,9 +11,9 @@ set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
set $term term set $term kitty
set $fterm floating-term set $fterm /home/daniel/.home/.config/dotfiles/bin/floating-term
set $menu app-launcher set $menu /home/daniel/.home/.config/dotfiles/bin/app-launcher
set $fileexplorer thunar set $fileexplorer thunar
output * bg $HOME/.wallpaper fill output * bg $HOME/.wallpaper fill
@ -27,7 +29,6 @@ bindsym Control+Space exec makoctl dismiss
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+shift+Return exec $fterm bindsym $mod+shift+Return exec $fterm
bindsym $mod+t exec $term bindsym $mod+t exec $term
bindsym $mod+Alt+Return exec urxvt
bindsym $mod+Shift+Alt+Return exec kitty bindsym $mod+Shift+Alt+Return exec kitty
bindsym $mod+c kill bindsym $mod+c kill
bindsym $mod+Shift+c kill # TODO: kill -9? bindsym $mod+Shift+c kill # TODO: kill -9?
@ -162,6 +163,3 @@ exec mako
exec gammastep -t 6500:3500 -l 39.0:-94.5 exec gammastep -t 6500:3500 -l 39.0:-94.5
exec_always makoctl reload exec_always makoctl reload
exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded." exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded."
include $ENV_PATH/sway/config.d/*

View file

@ -54,7 +54,7 @@
"interval": 3 "interval": 3
}, },
"memory": { "memory": {
"format": "{} <span foreground=\"#666666\"></span>" "format": "{} <span foreground=\"#666666\"></span>"
}, },
"temperature": { "temperature": {
// "thermal-zone": 2, // "thermal-zone": 2,
@ -92,14 +92,14 @@
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
"format": "{volume} <span foreground=\"#666666\">{icon}</span> {format_source}", "format": "{volume} <span weight='900' face=\"Font Awesome 5 Free\" foreground=\"#666666\">{icon}</span> {format_source}",
//"format": "{volume}% {icon} {format_source}", //"format": "{volume}% {icon} {format_source}",
//"format-bluetooth": "{volume}% {icon} {format_source}", //"format-bluetooth": "{volume}% {icon} {format_source}",
//"format-bluetooth-muted": " {icon} {format_source}", //"format-bluetooth-muted": " {icon} {format_source}",
//"format-muted": " {format_source}", //"format-muted": " {format_source}",
"format-muted": "<span foreground=\"#666666\"></span> {format_source}", "format-muted": "<span foreground=\"#666666\"></span> {format_source}",
"format-source": "<span foreground=\"#666666\"></span>", "format-source": "<span foreground=\"#f92672\">  </span>",
"format-source-muted": "<span foreground=\"#666666\"></span>", "format-source-muted": "<span foreground=\"#66d9ef\">  </span>",
"format-icons": { "format-icons": {
"headphones": "", "headphones": "",
"handsfree": "", "handsfree": "",
@ -107,8 +107,9 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
// TODO: toggle mute?
"on-click": "pavucontrol" "on-click": "pavucontrol"
} }
} }

View file

@ -1,8 +1,7 @@
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */ font-family: "Iosevka", "Font Awesome 5 Free", sans-serif;
font-family: "Iosevka", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px; font-size: 16px;
min-height: 0; min-height: 0;
} }

View file

@ -4,8 +4,6 @@ repaint_delay 5
input_delay 1 input_delay 1
sync_to_monitor no sync_to_monitor no
# font_features Iosevka Fixed SS07 Medium -liga -dlig -calt
font_size 11.0 font_size 11.0
adjust_line_height 0 adjust_line_height 0
window_padding_width 10.0 window_padding_width 10.0
@ -22,15 +20,11 @@ enable_audio_bell yes
url_style curly url_style curly
# https://google.com
strip_trailing_spaces smart strip_trailing_spaces smart
kitty_mod ctrl+shift+alt kitty_mod ctrl+shift+alt
open_url_modifiers ctrl open_url_modifiers ctrl
# dark theme
# TODO: generate via color scheme generator # TODO: generate via color scheme generator
background #111111 background #111111
@ -55,7 +49,7 @@ color13 #f5f4f1
color14 #cc6633 color14 #cc6633
color15 #f9f8f5 color15 #f9f8f5
# color18 #333333 color18 #333333
# # light theme # # light theme
# #
@ -82,9 +76,7 @@ color15 #f9f8f5
# color15 #f9f8f5 # color15 #f9f8f5
# #
# color18 #cccccc # color18 #cccccc
#
color18 #333333
kitty_mod ctrl+shift+alt kitty_mod ctrl+shift+alt
open_url_modifiers ctrl open_url_modifiers ctrl
wheel_scroll_multiplier 5.0 wheel_scroll_multiplier 5.0

View file

@ -1,7 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
if is_wayland; then source "$HOME/.config/dotfiles/bin/prelude"
floating-term sh -c "launch | xargs swaymsg exec --" floating-term sh -c "launch | xargs swaymsg exec --"
else
rofi -combi-modi run,window -show combi -modi combi -sorting-method fzf --sort "$@"
fi

View file

@ -1,21 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env sh
# TODO: geomoetry flags? kitty \
-o remember_window_size=no \
flags=("") -o initial_window_width=60c \
case "$TERMINAL" in -o initial_window_height=12c \
kitty ) --class floating_terminal \
flags=(-o remember_window_size=no -o initial_window_width=60c -o initial_window_height=12c --class floating_terminal) "$@"
;;
# TODO: rxvt?
esac
if is_wayland; then
# wayland only needs app_id or class set to "floating_terminal"
: # no-op
else
bspc rule -a '*' -o state=floating
fi
"$TERMINAL" "${flags[@]}" "$@"

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
"$TERMINAL"

View file

@ -1,6 +1,8 @@
exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf # TODO: setup displays (when docked for work?)
output eDP-1 res 1600x900 pos 0 0
# exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' exec libinput-gestures -c $HOME/.config/dotfiles/apps/de/libinput/sway-gestures.conf
exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
bindswitch lid:toggle exec swaylock bindswitch lid:toggle exec swaylock
@ -15,7 +17,3 @@ input type:touchpad {
input type:keyboard { input type:keyboard {
xkb_options ctrl:nocaps xkb_options ctrl:nocaps
} }
# TODO: setup displays (when docked for work?)
output eDP-1 res 1600x900 pos 0 0

View file

@ -22,7 +22,10 @@
enable = true; enable = true;
}; };
console.font = "TER16x32"; console.useXkbConfig = true;
services.xserver.xkbOptions = "ctrl:nocaps";
# TODO: setup caps-lock as Control/Escape?
# console.font = "TER16x32";
# services.upower = { # services.upower = {
# enable = true; # enable = true;

View file

@ -10,9 +10,9 @@ in {
extraPackages = with pkgs; [ extraPackages = with pkgs; [
swaylock swaylock
swayidle swayidle
xwayland unstable.xwayland
waybar
mako mako
waybar
kanshi kanshi
wl-clipboard wl-clipboard
slurp slurp
@ -21,6 +21,9 @@ in {
unstable.gammastep unstable.gammastep
]; ];
extraSessionCommands = '' extraSessionCommands = ''
systemctl --user import-environment
export TERMINAL=kitty
export BROWSER=firefox-devedition
export WLC_REPEAT_DELAY=200 export WLC_REPEAT_DELAY=200
export WLC_REPEAT_RATE=60 export WLC_REPEAT_RATE=60
export CLUTTER_BACKEND=wayland export CLUTTER_BACKEND=wayland
@ -30,7 +33,6 @@ in {
export XDG_CURRENT_DESKTOP=sway export XDG_CURRENT_DESKTOP=sway
''; '';
}; };
waybar.enable = true;
}; };
services = { services = {
pipewire.enable = true; pipewire.enable = true;

View file

@ -3,7 +3,5 @@
enable = true; enable = true;
enableOnBoot = false; enableOnBoot = false;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = [ pkgs.docker-compose ];
docker docker-compose
];
} }

View file

@ -14,6 +14,10 @@
name = "Arc-Dark"; name = "Arc-Dark";
}; };
clock-format = "%H:%M:%S"; clock-format = "%H:%M:%S";
extraConfig = ''
xft-dpi=260
font-name=Iosevka
'';
}; };
# background = ""; # background = "";
}; };

View file

@ -4,5 +4,6 @@
support32Bit = true; support32Bit = true;
package = pkgs.pulseaudioFull; package = pkgs.pulseaudioFull;
}; };
nixpkgs.config.pulseaudio = true;
sound.enable = true; sound.enable = true;
} }

View file

@ -1,4 +1,7 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.tmux ]; environment.systemPackages = [ pkgs.tmux ];
programs.tmux = {
enable = true;
};
} }

View file

@ -33,6 +33,7 @@
autoconf autoconf
ncurses ncurses
weechat weechat
# thunar thunar-archive-plugin thunar-volman
]; ];
}; };
} }

View file

@ -6,7 +6,6 @@
../modules/neovim.nix ../modules/neovim.nix
]; ];
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "us";
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
environment = { environment = {
@ -19,6 +18,7 @@
pciutils usbutils binutils pciutils usbutils binutils
ripgrep sd fd ripgrep sd fd
unzip unzip
killall
]; ];
variables = { variables = {
PAGER = "less"; PAGER = "less";
@ -58,7 +58,5 @@
"a1efe4" "a1efe4"
"f9f8f5" "f9f8f5"
]; ];
# useXkbConfig = true;
# TODO: setup caps-lock as Control/Escape?
}; };
} }