feat(i3,rofi): minor theme and QoL updates

This commit is contained in:
winston 2022-12-09 07:08:35 +01:00
parent a4a0d5e805
commit f7d04b9da6
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 105 additions and 80 deletions

View file

@ -15,7 +15,7 @@ set $terminal wezterm-gui start
set $pwman 1password --quick-access set $pwman 1password --quick-access
# Set DPI value # Set DPI value
set_from_resource $dpi Xft.dpi 96 set_from_resource $dpi Xft.dpi 140
# Configure border style <normal|1pixel|pixel xx|none|pixel> # Configure border style <normal|1pixel|pixel xx|none|pixel>
default_border pixel 2 default_border pixel 2
@ -49,6 +49,7 @@ bindsym $mod+t exec --no-startup-id pkill picom
bindsym $mod+Ctrl+t exec --no-startup-id picom -b bindsym $mod+Ctrl+t exec --no-startup-id picom -b
bindsym $mod+Ctrl+x exec --no-startup-id xkill bindsym $mod+Ctrl+x exec --no-startup-id xkill
bindsym $hyper+p --release exec --no-startup-id flameshot gui bindsym $hyper+p --release exec --no-startup-id flameshot gui
bindsym $hyper+space exec --no-startup-id gopass ls --flat | rofi -dmenu | xargs --no-run-if-empty gopass show -o | xdotool type --clearmodifiers --file -
# change focus # change focus
bindsym $modFocus+h focus left bindsym $modFocus+h focus left
@ -177,19 +178,21 @@ mode "resize" {
# Autostart applications # Autostart applications
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id /usr/bin/gnome-keyring-daemon -c secrets
exec --no-startup-id 1password --silent exec --no-startup-id 1password --silent
exec --no-startup-id blueman-applet exec --no-startup-id blueman-applet
exec --no-startup-id dunst exec --no-startup-id dunst
exec --no-startup-id pcmanfm -d exec --no-startup-id pcmanfm -d
exec --no-startup-id setxkbmap -option caps:ctrl_modifier
exec --no-startup-id sleep 1; picom -b exec --no-startup-id sleep 1; picom -b
exec --no-startup-id mpd_discord_richpresence --no-idle --fork exec --no-startup-id ~/.screenlayout/main.sh
# Set inner/outer gaps # Set inner/outer gaps
gaps inner 0 gaps inner 1
gaps outer 0 gaps outer 1
# Smart gaps (gaps used if only more than one container on the workspace) # Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps off smart_gaps on
# Smart borders (draw borders around container only if it is not the only container on this workspace) # Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
@ -236,7 +239,7 @@ mode "$mode_gaps_outer" {
# rofi instead of drun # rofi instead of drun
bindsym $mod+space exec --no-startup-id rofi -show run -dpi $dpi bindsym $mod+space exec --no-startup-id rofi -show drun -dpi $dpi
# 1password # 1password
bindsym $mod+Shift+space exec --no-startup-id $pwman bindsym $mod+Shift+space exec --no-startup-id $pwman
@ -249,16 +252,16 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
# Theme colors # Theme colors
# class border backgr. text indic. child_border # class title bg text indic. border
client.focused #313244 #000000 #CDD6F4 #000000 #313244 client.focused #F5C2E7 #000000 #CDD6F4 #F5E0DC #F5C2E7
client.focused_inactive #000000 #000000 #9399B2 #000000 #313244 client.focused_inactive #CBA6F7 #000000 #9399B2 #F5E0DC #CBA6F7
client.unfocused #000000 #000000 #9399B2 #000000 #000000 client.unfocused #CBA6F7 #000000 #9399B2 #F5E0DC #CBA6F7
client.urgent #313244 #313244 #F38BA8 #000000 #F38BA8 client.urgent #F38BA8 #000000 #F38BA8 #313244 #F38BA8
client.placeholder #313244 #000000 #CDD6F4 #000000 #000000 client.placeholder #313244 #000000 #CDD6F4 #313244 #313244
client.background #000000 client.background #000000
bar { bar {
status_command I3RS_GITHUB_TOKEN=$(gopass git/winston) i3status-rs status_command i3status-rs
tray_output primary tray_output primary
tray_padding 2 tray_padding 2

View file

@ -1,21 +1,32 @@
/* colors */ /* colors */
* { * {
al: #00000000; rosewater: #f5e0dc;
bg: #2A212CFF; flamingo: #f2cdcd;
bga: #0a0a0aFF; pink: #f5c2e7;
fg: #FF80BFFF; mauve: #cba6f7;
ac: #fdd835FF; red: #f38ba8;
se: #fdd8351A; maroon: #eba0ac;
drac-bgd: #2A212C; peach: #fab387;
drac-cur: #544158; yellow: #f9e2af;
drac-fgd: #F8F8F2; green: #a6e3a1;
drac-cmt: #9F70A9; teal: #94e2d5;
drac-cya: #80FFEA; sky: #89dceb;
drac-grn: #8AFF80; sapphire: #74c7ec;
drac-ora: #FFCA80; blue: #89b4fa;
drac-pnk: #FF80BF; lavender: #b4befe;
drac-pur: #9580FF; text: #cdd6f4;
drac-red: #FF9580; subtext1: #bac2de;
drac-yel: #FFFF80; subtext0: #a6adc8;
overlay2: #9399b2;
overlay1: #7f849c;
overlay0: #6c7086;
surface2: #585b70;
surface1: #45475a;
surface0: #313244;
base: #1e1e2e;
mantle: #181825;
crust: #11111b;
} }
/* vim:ft=css */

View file

@ -1,23 +1,21 @@
@import "colors.rasi" @import "colors.rasi"
* { * {
font: "Jetbrains Mono NerdFont 12"; font: "Berkeley Mono 12";
foreground: @text;
background: @base;
foreground: @drac-fgd; active-background: @pink;
background: @drac-bgd; urgent-background: @red;
active-background: @drac-pnk;
urgent-background: @drac-red;
selected-background: @active-background; selected-background: @surface2;
selected-urgent-background: @urgent-background; selected-urgent-background: @surface2;
selected-active-background: @active-background; selected-active-background: @surface2;
separatorcolor: @active-background;
bordercolor: @drac-cmt;
} }
#window { #window {
background-color: @background; background-color: @background;
border-color: @bordercolor; border-color: @pink;
border: 2; border: 2;
padding: 0; padding: 0;
} }
@ -28,8 +26,8 @@
} }
#message { #message {
border: 1px dash 0px 0px ; border: 1px;
border-color: @separatorcolor; border-color: @crust;
padding: 1px; padding: 1px;
} }
@ -39,11 +37,10 @@
#listview { #listview {
fixed-height: 0; fixed-height: 0;
border: 2px 0px 0px; border: 1 0 0;
border-color: @bordercolor; border-color: @rosewater;
spacing: 2px; scrollbar: true;
scrollbar: false; padding: 0;
padding: 0px 0px 0px ;
} }
#element { #element {
@ -52,78 +49,92 @@
} }
#element.normal.normal { #element.normal.normal {
background-color: @background; background-color: @base;
text-color: @foreground; text-color: @text;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
} }
#element.normal.active { #element.normal.active {
background-color: @active-background; background-color: @surface2;
text-color: @background; text-color: @text;
} }
#element.selected.normal { #element.selected.normal {
background-color: @selected-background; background-color: @selected-background;
text-color: @foreground; text-color: @text;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @foreground;
} }
#element.selected.active { #element.selected.active {
background-color: @selected-active-background; background-color: @surface2;
text-color: @background; text-color: @crust;
} }
#element.alternate.normal { #element.alternate.normal {
background-color: @background; background-color: @base;
text-color: @foreground; text-color: @text;
}
#element.alternate.urgent {
background-color: @urgent-background;
text-color: @foreground;
} }
#element.alternate.active { #element.alternate.active {
background-color: @active-background; background-color: @active-background;
text-color: @foreground; text-color: @foreground;
} }
#element.normal.urgent {
background-color: @crust;
text-color: @red;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @text;
}
#element.alternate.urgent {
background-color: @urgent-background;
text-color: @text;
}
#scrollbar { #scrollbar {
background-color: @crust;
width: 2px ; width: 2px ;
border: 0; border: 0;
handle-width: 8px ; handle-width: 8px ;
padding: 0; padding: 0;
} }
#sidebar { #sidebar {
border: 2px dash 0px 0px ; border: 2px dash 0px 0px ;
border-color: @separatorcolor; border-color: @crust;
} }
#button.selected { #button.selected {
background-color: @selected-background; background-color: @base;
text-color: @foreground; text-color: @text;
} }
#inputbar { #inputbar {
spacing: 0; spacing: 0;
text-color: @foreground; text-color: @text;
padding: 1px ; padding: 1px ;
} }
#case-indicator { #case-indicator {
spacing: 0; spacing: 0;
text-color: @foreground; text-color: @text;
} }
#entry { #entry {
spacing: 0; spacing: 0;
text-color: @drac-cya; text-color: @text;
} }
#prompt { #prompt {
spacing: 0; spacing: 0;
text-color: @drac-grn; text-color: @pink;
} }
#inputbar { #inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; children: [
prompt,
textbox-prompt-colon,
entry,
case-indicator
];
} }
#textbox-prompt-colon { #textbox-prompt-colon {
expand: false; expand: false;
str: ":"; str: ":";
margin: 0px 0.3em 0em 0em ; margin: 0 0.5em 0 0;
text-color: @drac-grn; text-color: @pink;
} }
/* vim:ft=css */