feat: add rofi config and made GPG config work on Linux

This commit is contained in:
Peter 2024-06-18 20:14:39 +02:00
parent 3622dba974
commit 2c792a85d7
Signed by: prskr
GPG key ID: F56BED6903BC5E37
4 changed files with 147 additions and 9 deletions

View file

@ -3,8 +3,10 @@ RectangleProConfig.json
{{ if eq .chezmoi.os "darwin" }}
*/hypr/
*/rofi/
{{ end }}
{{ if eq .chezmoi.os "linux" }}
*/Library/*
*/AutoRaise/
{{ end }}

View file

@ -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

135
dot_config/rofi/config.rasi Normal file
View file

@ -0,0 +1,135 @@
/*******************************************************
* ROFI configs i3 Apps menu for EndeavourOS
* Maintainer: joekamprad <joekamprad@endeavouros.com>
*******************************************************/
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;
}

View file

@ -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 }}