From 2c792a85d772d77baa4fcb559087147024d01031 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 18 Jun 2024 20:14:39 +0200 Subject: [PATCH] feat: add rofi config and made GPG config work on Linux --- .chezmoiignore.tmpl | 2 + dot_config/hypr/hyprland.conf | 15 +- dot_config/rofi/config.rasi | 135 ++++++++++++++++++ .../{gpg-agent.conf => gpg-agent.conf.tmpl} | 4 + 4 files changed, 147 insertions(+), 9 deletions(-) create mode 100644 dot_config/rofi/config.rasi rename private_dot_gnupg/{gpg-agent.conf => gpg-agent.conf.tmpl} (81%) diff --git a/.chezmoiignore.tmpl b/.chezmoiignore.tmpl index 50844e4..ff01b65 100644 --- a/.chezmoiignore.tmpl +++ b/.chezmoiignore.tmpl @@ -3,8 +3,10 @@ RectangleProConfig.json {{ if eq .chezmoi.os "darwin" }} */hypr/ +*/rofi/ {{ end }} {{ if eq .chezmoi.os "linux" }} */Library/* +*/AutoRaise/ {{ end }} diff --git a/dot_config/hypr/hyprland.conf b/dot_config/hypr/hyprland.conf index d756b76..cdc085f 100644 --- a/dot_config/hypr/hyprland.conf +++ b/dot_config/hypr/hyprland.conf @@ -92,12 +92,6 @@ gestures { workspace_swipe = off } -# Example per-device config -# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more -device:epic mouse V1 { - sensitivity = -0.5 -} - # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 @@ -105,7 +99,9 @@ device:epic mouse V1 { windowrulev2 = float,class:^(org.twosheds.iwgtk)$,title:^(iwgtk)$ windowrulev2 = float,class:^(pavucontrol)$,title:^(Volume Control)$ windowrulev2 = float,class:^(org.keepassxc.KeePassXC)$,title:^(KeePassXC - Browser Access Request)$ -windowrulev2 = float,class:^(org.gnome.Calculator)$,title:^(Calculator)$ +windowrulev2 = float,class:^(org.gnome.Calculator)$,title:^(Calculator)$\ +windowrulev2 = tile,class:^(dev.warp.Warp)$ + # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more @@ -113,12 +109,13 @@ windowrulev2 = float,class:^(org.gnome.Calculator)$,title:^(Calculator)$ $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Return, exec, alacritty +bind = $mainMod, Return, exec, warp-terminal bind = $mainMod, q, killactive, bind = $mainMod, BackSpace, exit, bind = $mainMod, E, exec, thunar bind = $mainMod, V, togglefloating, -bind = $mainMod, Space, exec, rofi -show drun -config $HOME/.config/rofi/rofidmenu.rasi +bind = $mainMod, Space, exec, rofi -show drun +bind = $mainMod SHIFT, P, exec, rofi-rbw bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, fullscreen diff --git a/dot_config/rofi/config.rasi b/dot_config/rofi/config.rasi new file mode 100644 index 0000000..507e3c4 --- /dev/null +++ b/dot_config/rofi/config.rasi @@ -0,0 +1,135 @@ +/******************************************************* + * ROFI configs i3 Apps menu for EndeavourOS + * Maintainer: joekamprad + *******************************************************/ +configuration { + font: "Sourcecode Pro Regular 10"; + show-icons: true; + icon-theme: "Arc-X-D"; + display-drun: "Apps"; + drun-display-format: "{name}"; + scroll-method: 0; + disable-history: false; + sidebar-mode: false; +} + +@import "~/.config/rofi/arc_dark_transparent_colors.rasi" + +window { + background-color: @background; + border: 0; + padding: 30; +} +listview { + lines: 10; + columns: 3; +} +mainbox { + border: 0; + padding: 0; +} +message { + border: 2px 0px 0px ; + border-color: @separatorcolor; + padding: 1px ; +} +textbox { + text-color: @foreground; +} +listview { + fixed-height: 0; + border: 8px 0px 0px ; + border-color: @separatorcolor; + spacing: 8px ; + scrollbar: false; + padding: 2px 0px 0px ; +} +element { + border: 0; + padding: 1px ; +} +element-text { + background-color: inherit; + text-color: inherit; +} +element.normal.normal { + background-color: @normal-background; + text-color: @normal-foreground; +} +element.normal.urgent { + background-color: @urgent-background; + text-color: @urgent-foreground; +} +element.normal.active { + background-color: @active-background; + text-color: @active-foreground; +} +element.selected.normal { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} +element.selected.urgent { + background-color: @selected-urgent-background; + text-color: @selected-urgent-foreground; +} +element.selected.active { + background-color: @selected-active-background; + text-color: @selected-active-foreground; +} +element.alternate.normal { + background-color: @alternate-normal-background; + text-color: @alternate-normal-foreground; +} +element.alternate.urgent { + background-color: @alternate-urgent-background; + text-color: @alternate-urgent-foreground; +} +element.alternate.active { + background-color: @alternate-active-background; + text-color: @alternate-active-foreground; +} +scrollbar { + width: 4px ; + border: 0; + handle-color: @normal-foreground; + handle-width: 8px ; + padding: 0; +} +mode-switcher { + border: 2px 0px 0px ; + border-color: @separatorcolor; +} +button { + spacing: 0; + text-color: @normal-foreground; +} +button.selected { + background-color: @selected-normal-background; + text-color: @selected-normal-foreground; +} +inputbar { + spacing: 0; + text-color: @normal-foreground; + padding: 1px ; +} +case-indicator { + spacing: 0; + text-color: @normal-foreground; +} +entry { + spacing: 0; + text-color: @normal-foreground; +} +prompt { + spacing: 0; + text-color: @normal-foreground; +} +inputbar { + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} +textbox-prompt-colon { + expand: false; + str: ":"; + margin: 0px 0.3em 0em 0em ; + text-color: @normal-foreground; +} \ No newline at end of file diff --git a/private_dot_gnupg/gpg-agent.conf b/private_dot_gnupg/gpg-agent.conf.tmpl similarity index 81% rename from private_dot_gnupg/gpg-agent.conf rename to private_dot_gnupg/gpg-agent.conf.tmpl index 6507ef0..ee24d8f 100644 --- a/private_dot_gnupg/gpg-agent.conf +++ b/private_dot_gnupg/gpg-agent.conf.tmpl @@ -11,4 +11,8 @@ max-cache-ttl 120 #pinentry-program /usr/bin/pinentry-qt #pinentry-program /usr/local/bin/pinentry-curses #pinentry-program /usr/local/bin/pinentry-mac +{{- if eq .chezmoi.os "darwin" }} pinentry-program /opt/homebrew/bin/pinentry-mac +{{- else if eq .chezmoi.os "linux" }} +pinentry-program /usr/bin/pinentry-qt5 +{{- end }}