From 52ed1492f93944a47aa2ea92c24b8c47541e7392 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sat, 1 May 2021 16:26:24 +0100 Subject: [PATCH] Add sirula --- .config/sirula/config.toml | 16 ++++++++++++++++ .config/sirula/style.css | 35 +++++++++++++++++++++++++++++++++++ .config/sway/config | 2 +- install | 11 +++++++++++ 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .config/sirula/config.toml create mode 100644 .config/sirula/style.css diff --git a/.config/sirula/config.toml b/.config/sirula/config.toml new file mode 100644 index 0000000..73b5049 --- /dev/null +++ b/.config/sirula/config.toml @@ -0,0 +1,16 @@ +markup_highlight = 'underline="low" weight="bold"' +#markup_extra = 'foreground="blue"' +#markup_default = 'foreground="yellow"' +exclusive = true +lines = 1 +icon_size = 20 +anchor_left = false +anchor_right = false +anchor_top = false +anchor_bottom = false +margin_top = 1 +margin_bottom = 0 +margin_left = 0 +margin_right = 0 +width = 750 +height = 450 diff --git a/.config/sirula/style.css b/.config/sirula/style.css new file mode 100644 index 0000000..6942b2c --- /dev/null +++ b/.config/sirula/style.css @@ -0,0 +1,35 @@ +.app-row { + transition: unset; + padding: 5px 0 5px 10px; + background-color: #1e2029; +} + +.app-row:selected { + background-color: #7246af; +} + +.app-label { + margin-left: 10px; + font-family: "Ubuntu Mono"; + font-size: 14px; + font-weight: 300; +} + +.app-list { + background-color: #f00; + } + +#root-box { + border: 2px solid #BD93F9; + border-radius: 5px 5px 5px 5px; + box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); + margin: 100px; + background-color: #1e2029; +} + +#search { + font-family: "Ubuntu Mono"; + font-size: 14px; + padding: 2px 8px; + margin: 5px; +} diff --git a/.config/sway/config b/.config/sway/config index 5b49965..bf666fc 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -18,7 +18,7 @@ set $term alacritty # Your preferred 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 | dmenu | xargs swaymsg exec -- +set $menu sirula ### Appearance # diff --git a/install b/install index aef8277..b7e5d42 100755 --- a/install +++ b/install @@ -22,6 +22,7 @@ install() { fzf \ git \ grim \ + gtk-layer-shell \ isync \ lynx \ mpd \ @@ -42,6 +43,7 @@ install() { python-pip \ rsync \ slurp \ + sway \ transmission-cli \ ttf-ubuntu-font-family \ youtube-dl \ @@ -73,6 +75,15 @@ install() { sudo sed -i '$a auth optional pam_exec.so expose_authtok /usr/bin/pam_exec-ssh' \ /etc/pam.d/system-local-login } + + [ -x "/usr/bin/sirula" ] || { + tmp_dir="$(mktemp -d)" && pushd "$tmp_dir" && { + curl -sSfO "https://jordanholt.xyz/sirula" + sudo install -m755 sirula /usr/bin/ + popd + rm -rf $tmp_dir + } + } } configure() {