updates for void

This commit is contained in:
Tyler Starr 2022-12-18 20:01:46 -08:00
parent 01bfd6ea46
commit 53a72a2f91
6 changed files with 100 additions and 49 deletions

View File

@ -81,3 +81,10 @@ Download a release [here](https://github.com/kdheepak/taskwarrior-tui) and move
The default Bitwarden application kind of sucks so I use a [PWA plugin](https://github.com/filips123/PWAsForFirefox). Follow instructions to install rpm and adjust ID in i3 config to launch correct PWA for Bitwarden. The default Bitwarden application kind of sucks so I use a [PWA plugin](https://github.com/filips123/PWAsForFirefox). Follow instructions to install rpm and adjust ID in i3 config to launch correct PWA for Bitwarden.
## display manager (or lack thereof)
I disable gdm and login from tty
```bash
sudo systemctl disable gdm
```

1
home/dot_Xresources Normal file
View File

@ -0,0 +1 @@
Xcursor.size: 20

View File

@ -26,6 +26,7 @@ export PATH="$HOME/.nimble/bin:$PATH"
alias spl="tmux_splat" alias spl="tmux_splat"
alias n="nnn -d -e -H -r" alias n="nnn -d -e -H -r"
alias s="startx"
# Chezmoi # Chezmoi
alias cmc="chezmoi cd" alias cmc="chezmoi cd"

View File

@ -20,11 +20,17 @@ set $mod Mod4
set $tag1 "1:game" set $tag1 "1:game"
set $tag2 "2:dev" set $tag2 "2:dev"
set $tag3 "3:web" set $tag3 "3:web"
set $tag4 "4:web" set $tag4 "4:dev"
set $tag5 "5:web" set $tag5 "5:web"
set $tag6 "6:web" set $tag6 "6:web"
set $tag7 "7:comm" set $tag7 "7:web"
set $tag8 "8:task" set $tag8 "8:comm"
set $tag9 "9:eng"
set $tag0 "10:web"
set $e exec i3-msg mode default
set $mode_power "[q]uit | [s]hutdown"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#----- COLORS #----- COLORS
@ -55,10 +61,12 @@ workspace $tag1 output $DISP_PRI
workspace $tag2 output $DISP_PRI workspace $tag2 output $DISP_PRI
workspace $tag3 output $DISP_PRI workspace $tag3 output $DISP_PRI
workspace $tag4 output $DISP_PRI workspace $tag4 output $DISP_PRI
workspace $tag5 output $DISP_SEC workspace $tag5 output $DISP_PRI
workspace $tag6 output $DISP_SEC workspace $tag6 output $DISP_SEC
workspace $tag7 output $DISP_SEC workspace $tag7 output $DISP_SEC
workspace $tag8 output $DISP_SEC workspace $tag8 output $DISP_SEC
workspace $tag9 output $DISP_SEC
workspace $tag0 output $DISP_SEC
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#----- CONTAINER GAPS #----- CONTAINER GAPS
@ -113,31 +121,47 @@ for_window [class="Nm-connection-editor"] floating enable, \
assign [class="Steam"] "1:game" assign [class="Steam"] "1:game"
for_window [class="Steam"] move container to workspace "1:game" for_window [class="Steam"] move container to workspace "1:game"
for_window [class="discord"] move container to workspace $tag8
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#----- KEY BINDINGS #----- KEY BINDINGS
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# i3 utility commands # [p]ower commands
bindsym $mod+Ctrl+r exec chezmoi apply && i3-msg restart bindsym $mod+p mode $mode_power
bindsym $mod+Ctrl+q exit mode $mode_power {
bindsym $mod+Ctrl+h resize shrink width 50 bindsym s exec shutdown now
bindsym $mod+Ctrl+j resize shrink height 50 bindsym Escape mode default
bindsym $mod+Ctrl+k resize grow height 50 }
bindsym $mod+Ctrl+l resize grow width 50
# layout commands # [u]tility commands
bindsym $mod+z layout splith bindsym $mod+u mode utility
bindsym $mod+x layout tabbed mode utility {
bindsym $mod+c layout stacked bindsym q exit
# bindsym $mod+v layout splitv bindsym r exec chezmoi apply && i3-msg restart
# bindsym $mod+s split h # TODO: flameshot (mod+Ctrl+f)
bindsym $mod+Shift+s split v # TODO: gamemode (mod+Ctrl+g). Needs script to toggle
bindsym Escape mode default
}
# l[a]yout commands
bindsym $mod+a mode layout
mode layout {
bindsym z layout splith
bindsym x layout tabbed
bindsym c layout stacked
bindsym v layout splitv
bindsym h resize shrink width 50
bindsym j resize shrink height 50
bindsym k resize grow height 50
bindsym l resize grow width 50
bindsym Escape mode default
}
# program management # program management
bindsym $mod+d kill bindsym $mod+d kill
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
bindsym $mod+t floating toggle bindsym $mod+y floating toggle
bindsym $mod+s sticky toggle bindsym $mod+s sticky toggle
bindsym $mod+Tab focus mode_toggle bindsym $mod+Tab focus mode_toggle
floating_modifier $mod floating_modifier $mod
@ -151,49 +175,61 @@ bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right bindsym $mod+Shift+l move right
bindsym $mod+minus split v
bindsym $mod+backslash split h
# workspace management # workspace management
bindsym $mod+1 workspace $tag1 bindsym $mod+1 workspace $tag1
bindsym $mod+2 workspace $tag2 bindsym $mod+2 workspace $tag2
bindsym $mod+3 workspace $tag3 bindsym $mod+3 workspace $tag3
bindsym $mod+4 workspace $tag4 bindsym $mod+4 workspace $tag4
bindsym $mod+q workspace $tag5 bindsym $mod+5 workspace $tag5
bindsym $mod+w workspace $tag6 bindsym $mod+q workspace $tag6
bindsym $mod+e workspace $tag7 bindsym $mod+w workspace $tag7
bindsym $mod+r workspace $tag8 bindsym $mod+e workspace $tag8
bindsym $mod+r workspace $tag9
bindsym $mod+t workspace $tag0
bindsym $mod+Shift+1 move container to workspace $tag1 bindsym $mod+Shift+1 move container to workspace $tag1
bindsym $mod+Shift+2 move container to workspace $tag2 bindsym $mod+Shift+2 move container to workspace $tag2
bindsym $mod+Shift+3 move container to workspace $tag3 bindsym $mod+Shift+3 move container to workspace $tag3
bindsym $mod+Shift+4 move container to workspace $tag4 bindsym $mod+Shift+4 move container to workspace $tag4
bindsym $mod+Shift+q move container to workspace $tag5 bindsym $mod+Shift+5 move container to workspace $tag5
bindsym $mod+Shift+w move container to workspace $tag6 bindsym $mod+Shift+q move container to workspace $tag6
bindsym $mod+Shift+e move container to workspace $tag7 bindsym $mod+Shift+w move container to workspace $tag7
bindsym $mod+Shift+r move container to workspace $tag8 bindsym $mod+Shift+e move container to workspace $tag8
bindsym $mod+Shift+r move container to workspace $tag9
bindsym $mod+Shift+t move container to workspace $tag0
# system utils # audio
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +2% bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +2%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -2% bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -2%
bindsym XF86AudioMute exec amixer -q set Master toggle bindsym XF86AudioMute exec amixer -q set Master toggle
# TODO: flameshot (mod+Ctrl+f)
# TODO: gamemode (mod+Ctrl+g). Needs script to toggle
# open applications # [o]pen applications
bindsym $mod+Return exec kitty bindsym $mod+o mode open
bindsym $mod+a exec rofi -show drun -theme gruvbox-dark-soft -show-icons mode open {
bindsym $mod+Shift+a exec rofi -show window -theme gruvbox-dark-soft -show-icons bindsym Return exec kitty, $e
bindsym $mod+g exec rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' bindsym w exec rofi -show drun -theme gruvbox-dark-soft -show-icons, $e
bindsym $mod+u exec firefox bindsym r exec rofi -show window -theme gruvbox-dark-soft -show-icons, $e
bindsym $mod+i exec steam bindsym b exec firefox, $e
bindsym s exec steam, $e
bindsym d exec flatpak run com.discordapp.Discord, $e
bindsym Escape mode default
}
# open scratchpads # s[c]ratchpads commands
bindsym $mod+Shift+Return exec $HOME/.config/i3/scripts/scratch.sh \ bindsym $mod+c mode scratch
'scratch-term' 'kitty' mode scratch {
bindsym $mod+n exec $HOME/.config/i3/scripts/scratch.sh \ bindsym Return exec $HOME/.config/i3/scripts/scratch.sh \
'scratch-nnn' 'kitty -e nnn -d -e -H -r' 'scratch-term' 'kitty', $e
bindsym $mod+b exec --no-startup-id $HOME/.config/i3/scripts/scratch.sh \ bindsym b exec --no-startup-id $HOME/.config/i3/scripts/scratch.sh \
'scratch-warden' 'firefoxpwa site launch 01GKYZS658452DK05DVDCRF5V4' 'scratch-warden' 'firefoxpwa site launch 01GKYZS658452DK05DVDCRF5V4, $e'
bindsym $mod+m exec $HOME/.config/i3/scripts/scratch.sh \ bindsym n exec $HOME/.config/i3/scripts/scratch.sh \
'scratch-warrior' 'kitty -e taskwarrior-tui' 'scratch-nnn' 'kitty -e nnn -d -e -H -r', $e
bindsym t exec $HOME/.config/i3/scripts/scratch.sh \
'scratch-warrior' 'kitty -e taskwarrior-tui', $e
bindsym Escape mode default
}
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#----- AUTOSTART WITH I3 #----- AUTOSTART WITH I3
@ -202,7 +238,6 @@ bindsym $mod+m exec $HOME/.config/i3/scripts/scratch.sh \
exec --no-startup-id "$HOME/.config/i3/scripts/xrandr.sh && \ exec --no-startup-id "$HOME/.config/i3/scripts/xrandr.sh && \
chezmoi apply && \ chezmoi apply && \
i3-msg restart" i3-msg restart"
exec --no-startup-id greenclip daemon
exec_always --no-startup-id "$HOME/.config/i3/scripts/polybar.sh" exec_always --no-startup-id "$HOME/.config/i3/scripts/polybar.sh"
exec_always --no-startup-id "nm-applet" exec_always --no-startup-id "nm-applet"
exec_always --no-startup-id "blueman-applet" exec_always --no-startup-id "blueman-applet"

2
home/dot_xinitrc Normal file
View File

@ -0,0 +1,2 @@
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
exec i3

View File

@ -19,8 +19,13 @@
- lxappearance - lxappearance
- network-manager-applet - network-manager-applet
- blueman - blueman
- xdotool - ImageMagick
- xclip - xrandr
- xdpyinfo
- xrdb
- xset
- dunst
- feh
state: present state: present
become: true become: true