minor fix polybar+launch script, i3 now uses polybar, xinit polkit
This commit is contained in:
parent
25410d0319
commit
e322da2b6d
5 changed files with 27 additions and 8 deletions
|
@ -199,6 +199,11 @@ mode "resize" {
|
|||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# window settings
|
||||
gaps inner 10
|
||||
gaps top 40
|
||||
|
||||
|
||||
mode "Power menu: [e]xit i3 | [S-s]hutdown | [s]uspend | [r]eboot" {
|
||||
bindsym $mod+e exec --no-startup-id i3-msg exit
|
||||
bindsym $mod+Shift+s exec shutdown -h now
|
||||
|
@ -212,12 +217,13 @@ bindsym $mod+Shift+e mode "Power menu: [e]xit i3 | [S-s]hutdown | [s]uspend | [r
|
|||
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id i3-msg 'workspace 2; exec firefox; workspace 1; exec alacritty'
|
||||
exec --no-startup-id i3-msg 'workspace 5; exec discord'
|
||||
exec --no-startup-id picom -b
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
assign [class="discord"] $ws5
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
position top
|
||||
}
|
||||
#bar {
|
||||
# status_command i3status
|
||||
# position top
|
||||
#}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {"vim","help","python","rust","lua","haskell","c","java", "bash"},
|
||||
ensure_installed = {"vim","python","rust","lua","haskell","c","java", "bash","go"},
|
||||
sync_install = false,
|
||||
|
||||
highlight = {
|
||||
|
|
|
@ -30,9 +30,9 @@ offset-x = 0.3%
|
|||
offset-y = 0.7%
|
||||
;radius = 8
|
||||
|
||||
modules-left = cpu dot memory sep i3
|
||||
modules-left = i3
|
||||
modules-center = date dot time
|
||||
modules-right = bluetooth space network sep pulseaudio
|
||||
modules-right = cpu dot memory dot pulseaudio sep filesystem
|
||||
|
||||
background = ${colors.crust}
|
||||
foreground = ${colors.text}
|
||||
|
|
11
.config/polybar/launch.sh
Executable file
11
.config/polybar/launch.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env sh
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar default &
|
||||
|
||||
|
2
.xinitrc
2
.xinitrc
|
@ -36,6 +36,8 @@ if [[ -f /usr/bin/prime-offload ]]; then
|
|||
/usr/bin/prime-offload
|
||||
fi
|
||||
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
|
||||
setxkbmap -layout us,pt
|
||||
setxkbmap -option grp:win_space_toggle
|
||||
xrandr --auto
|
||||
|
|
Loading…
Reference in a new issue