Skip to content

Commit

Permalink
i3: Fix bg and lock color
Browse files Browse the repository at this point in the history
  • Loading branch information
Granddave committed Oct 4, 2024
1 parent 8f3266c commit ab677d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $ ansible-playbook setup.yml -K

- Monospace font: [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) or [Hack](https://github.com/source-foundry/Hack)
- Color scheme: [Gruvbox](https://github.com/morhetz/gruvbox)
- Background color: `#1d2021`: ![#1d2021](https://dummyimage.com/15x15/1d2021/fff.png&text=+)

Custom [Vimium](https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb) mappings for Chrome

Expand Down
15 changes: 12 additions & 3 deletions i3/.config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ set $mod Mod4
# Alt
set $mod1 Mod1

# Background color
set $bg-color 1d2021

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 6
Expand All @@ -33,7 +36,13 @@ exec --no-startup-id dex --autostart --environment i3

# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork \
--ignore-empty-password \
--show-failed-attempts \
--color="$bg-color"

# Set background color
exec --no-startup-id xsetroot -solid "#$bg-color"

# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
Expand All @@ -58,10 +67,10 @@ floating_modifier $mod1

bindsym $mod+b exec google-chrome --password-store=gnome
bindsym $mod+Return exec alacritty
bindsym $mod+$mod1+l exec i3lock \
bindsym $mod+$mod1+l exec i3lock --nofork \
--ignore-empty-password \
--show-failed-attempts \
--color="1d2021"
--color="$bg-color"
bindsym $mod+i exec gnome-control-center
bindsym $mod+Shift+s exec --no-startup-id snippets.sh
bindsym Print exec flameshot gui
Expand Down

0 comments on commit ab677d6

Please sign in to comment.