From 0866efc2451e1c4e7edf2c5bc2ff56f45f8aea9b Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 16 Aug 2022 14:49:54 +0200 Subject: [PATCH] capibara back to sway --- home/alacritty/capibara.nix | 4 +-- home/capibara.nix | 4 +-- home/desktop-sway/bemenu.nix | 62 +++++++++++++++++++++++++++++++++++ home/desktop-sway/default.nix | 1 + 4 files changed, 67 insertions(+), 4 deletions(-) diff --git a/home/alacritty/capibara.nix b/home/alacritty/capibara.nix index 3ff3497..be4689d 100644 --- a/home/alacritty/capibara.nix +++ b/home/alacritty/capibara.nix @@ -2,6 +2,6 @@ { imports = [ ./nixos.nix ]; - # programs.alacritty.settings.font.size = 9; - programs.alacritty.settings.font.size = 7; + programs.alacritty.settings.font.size = 9; + # programs.alacritty.settings.font.size = 7; } diff --git a/home/capibara.nix b/home/capibara.nix index 5b91da2..d46cfc3 100644 --- a/home/capibara.nix +++ b/home/capibara.nix @@ -2,6 +2,6 @@ { imports = - # [ ./nixos-common.nix ./desktop-sway ./alacritty/capibara.nix ./theming ]; - [ ./nixos-common.nix ./desktop-xmonad/capibara.nix ./alacritty/capibara.nix ./theming ]; + [ ./nixos-common.nix ./desktop-sway ./alacritty/capibara.nix ./theming ]; + # [ ./nixos-common.nix ./desktop-xmonad/capibara.nix ./alacritty/capibara.nix ./theming ]; } diff --git a/home/desktop-sway/bemenu.nix b/home/desktop-sway/bemenu.nix index 011b1bf..eebe053 100644 --- a/home/desktop-sway/bemenu.nix +++ b/home/desktop-sway/bemenu.nix @@ -1,5 +1,65 @@ { config, pkgs, ... }: +# usage: bemenu [options] +# Options +# -h, --help display this help and exit. +# -v, --version display version. +# -i, --ignorecase match items case insensitively. +# -F, --filter filter entries for a given string. +# -w, --wrap wraps cursor selection. +# -l, --list list items vertically with the given number of lines. +# -p, --prompt defines the prompt text to be displayed. +# -P, --prefix text to show before highlighted item. +# -I, --index select item at index automatically. +# -x, --password hide input. +# -s, --no-spacing disable the title spacing on entries. +# --scrollbar display scrollbar. (none (default), always, autohide) +# --ifne only display menu if there are items. +# --fork always fork. (bemenu-run) +# --no-exec do not execute command. (bemenu-run) +# +# Use BEMENU_BACKEND env variable to force backend: +# curses ncurses based terminal backend +# wayland wayland backend +# x11 x11 backend +# +# If BEMENU_BACKEND is empty, one of the GUI backends is selected automatically. +# +# Backend specific options +# c = ncurses, w == wayland, x == x11 +# (...) At end of help indicates the backend support for option. +# +# -b, --bottom appears at the bottom of the screen. (wx) +# -c, --center appears at the center of the screen. (wx) +# -f, --grab show the menu before reading stdin. (wx) +# -n, --no-overlap adjust geometry to not overlap with panels. (w) +# -m, --monitor index of monitor where menu will appear. (wx) +# -H, --line-height defines the height to make each menu line (0 = default height). (wx) +# -M, --margin defines the empty space on either side of the menu. (wx) +# -W, --width-factor defines the relative width factor of the menu (from 0 to 1). (wx) +# -B, --border defines the width of the border in pixels around the menu. (wx) +# --ch defines the height of the cursor (0 = scales with line height). (wx) +# --cw defines the width of the cursor. (wx) +# --hp defines the horizontal padding for the entries in single line mode. (wx) +# --fn defines the font to be used ('name [size]'). (wx) +# --tb defines the title background color. (wx) +# --tf defines the title foreground color. (wx) +# --fb defines the filter background color. (wx) +# --ff defines the filter foreground color. (wx) +# --nb defines the normal background color. (wx) +# --nf defines the normal foreground color. (wx) +# --hb defines the highlighted background color. (wx) +# --hf defines the highlighted foreground color. (wx) +# --fbb defines the feedback background color. (wx) +# --fbf defines the feedback foreground color. (wx) +# --sb defines the selected background color. (wx) +# --sf defines the selected foreground color. (wx) +# --ab defines the alternating background color. (wx) +# --af defines the alternating foreground color. (wx) +# --scb defines the scrollbar background color. (wx) +# --scf defines the scrollbar foreground color. (wx) +# --bdr defines the border color. (wx) + let bemenuColors = { titleBackground = "#282828E0"; @@ -30,7 +90,9 @@ in { --fb '${bemenuColors.filterBackground}' \ --ff '${bemenuColors.filterForeground}' \ --nb '${bemenuColors.normalBackground}' \ + --ab '${bemenuColors.normalBackground}' \ --nf '${bemenuColors.normalForeground}' \ + --af '${bemenuColors.normalForeground}' \ --hb '${bemenuColors.highlightedBackground}' \ --hf '${bemenuColors.highlightedForeground}' \ --scb '${bemenuColors.scrollbarBackground}' \ diff --git a/home/desktop-sway/default.nix b/home/desktop-sway/default.nix index f3455fb..a9cfe2a 100644 --- a/home/desktop-sway/default.nix +++ b/home/desktop-sway/default.nix @@ -9,6 +9,7 @@ wl-clipboard wtype brightnessctl + foot ]; programs.mako = {