Sway : Use stylix for launcher.
This commit is contained in:
parent
5c8fde310a
commit
ebdbc2fce8
|
@ -5,9 +5,9 @@
|
|||
polarity = "dark";
|
||||
# base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||
opacity = {
|
||||
applications = 0.85;
|
||||
applications = 1.0;
|
||||
terminal = 0.85;
|
||||
popups = 0.85;
|
||||
popups = 1.0;
|
||||
desktop = 0.85;
|
||||
};
|
||||
cursor = {
|
||||
|
|
|
@ -11,6 +11,14 @@
|
|||
accent-r = config.lib.stylix.colors.base0A-rgb-r;
|
||||
accent-g = config.lib.stylix.colors.base0A-rgb-g;
|
||||
accent-b = config.lib.stylix.colors.base0A-rgb-b;
|
||||
|
||||
bg = config.lib.stylix.colors.base00;
|
||||
fg = config.lib.stylix.colors.base05;
|
||||
accent = config.lib.stylix.colors.base06;
|
||||
|
||||
|
||||
fontNamePopup = config.stylix.fonts.serif.name;
|
||||
fontSizePopup = config.stylix.fonts.sizes.popups;
|
||||
in {
|
||||
config = ''
|
||||
# If not running interactively, don't do anything.
|
||||
|
@ -25,6 +33,10 @@ in {
|
|||
export positive_rgb="${positive-r};${positive-g};${positive-b}"
|
||||
export accent_rgb="${accent-r};${accent-g};${accent-b}"
|
||||
|
||||
# Define font.
|
||||
export font_name_popup="${fontNamePopup}"
|
||||
export font_size_popup="${toString(fontSizePopup)}"
|
||||
|
||||
# Src custom modules.
|
||||
for module in $BASH_PATH/module/*.sh; do
|
||||
source "$module"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Application launcher.
|
||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||
# on the original workspace that the command was run on.
|
||||
set $menu _dmenu_path_wrapped | wmenu -b -p 'Run:' -i | xargs swaymsg exec --
|
||||
set $menu _dmenu_path_wrapped | wmenu -b -p 'Run:' -i -f "$font_name_popup $font_size_popup" -M $bg -S $bg -N $bg -m $accent -s $accent -n $fg | xargs swaymsg exec --
|
||||
|
||||
bindsym $mod+space exec $menu
|
||||
|
|
Loading…
Reference in a new issue