From e322da2b6d2a67ec53e17ceb8ea419e93b0b9ff4 Mon Sep 17 00:00:00 2001 From: tiago Date: Sat, 13 May 2023 19:44:40 +0100 Subject: [PATCH] minor fix polybar+launch script, i3 now uses polybar, xinit polkit --- .config/i3/config | 16 +++++++++++----- .config/nvim/after/plugin/treesitter.lua | 2 +- .config/polybar/config.ini | 4 ++-- .config/polybar/launch.sh | 11 +++++++++++ .xinitrc | 2 ++ 5 files changed, 27 insertions(+), 8 deletions(-) create mode 100755 .config/polybar/launch.sh diff --git a/.config/i3/config b/.config/i3/config index 793efcc..0216eb9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 +#} diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index e95d257..59c6564 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -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 = { diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 596d512..dcd3f62 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -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} diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 0000000..853b2ea --- /dev/null +++ b/.config/polybar/launch.sh @@ -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 & + + diff --git a/.xinitrc b/.xinitrc index 4e543e9..39245b7 100755 --- a/.xinitrc +++ b/.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