minor fix polybar+launch script, i3 now uses polybar, xinit polkit

This commit is contained in:
Tiago Sousa 2023-05-13 19:44:40 +01:00
parent 25410d0319
commit e322da2b6d
5 changed files with 27 additions and 8 deletions

View file

@ -199,6 +199,11 @@ mode "resize" {
} }
bindsym $mod+r 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" { 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+e exec --no-startup-id i3-msg exit
bindsym $mod+Shift+s exec shutdown -h now 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 nitrogen --restore
exec --no-startup-id i3-msg 'workspace 2; exec firefox; workspace 1; exec alacritty' 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 --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 # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { #bar {
status_command i3status # status_command i3status
position top # position top
} #}

View file

@ -1,5 +1,5 @@
require'nvim-treesitter.configs'.setup { 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, sync_install = false,
highlight = { highlight = {

View file

@ -30,9 +30,9 @@ offset-x = 0.3%
offset-y = 0.7% offset-y = 0.7%
;radius = 8 ;radius = 8
modules-left = cpu dot memory sep i3 modules-left = i3
modules-center = date dot time modules-center = date dot time
modules-right = bluetooth space network sep pulseaudio modules-right = cpu dot memory dot pulseaudio sep filesystem
background = ${colors.crust} background = ${colors.crust}
foreground = ${colors.text} foreground = ${colors.text}

11
.config/polybar/launch.sh Executable file
View 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 &

View file

@ -36,6 +36,8 @@ if [[ -f /usr/bin/prime-offload ]]; then
/usr/bin/prime-offload /usr/bin/prime-offload
fi fi
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
setxkbmap -layout us,pt setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle setxkbmap -option grp:win_space_toggle
xrandr --auto xrandr --auto