20241108-1
This commit is contained in:
parent
275ea9cc13
commit
1028c62c0b
3 changed files with 73 additions and 105 deletions
|
@ -62,7 +62,7 @@ bindsym $mod+Control+j workspace prev
|
||||||
bindsym $mod+Tab workspace back_and_forth
|
bindsym $mod+Tab workspace back_and_forth
|
||||||
|
|
||||||
# start rofi (a program launcher)
|
# start rofi (a program launcher)
|
||||||
bindsym $mod+d exec --no-startup-id rofi -no-config -no-lazy-grab -show drun -modi drun -dpi 120
|
bindsym $mod+d exec --no-startup-id rofi -config ~/.config/rofi/gruvbox-soft.rasi -no-lazy-grab -show drun -modi drun -dpi 120
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
|
@ -209,63 +209,8 @@ bindsym $mod+r mode "resize"
|
||||||
# status_command i3blocks
|
# status_command i3blocks
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# wait for init displays
|
|
||||||
# exec --no-startup-id sleep 1
|
|
||||||
|
|
||||||
# setup displays (xrandr)
|
|
||||||
exec_always --no-startup-id ~/scripts/bin/setup_displays
|
|
||||||
|
|
||||||
# logi mx ergo
|
|
||||||
# exec_always --no-startup-id xinput --set-prop "pointer:Logitech MX Ergo Multi-Device Trackball " 'libinput Accel Speed' -0.2
|
|
||||||
|
|
||||||
# dpi fix
|
|
||||||
exec --no-startup-id xrdb -merge ~/.Xresources
|
|
||||||
|
|
||||||
# polybar
|
|
||||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
|
||||||
|
|
||||||
# mullvad
|
|
||||||
exec --no-startup-id mullvad-vpn
|
|
||||||
|
|
||||||
# solaar
|
|
||||||
exec --no-startup-id solaar --window=hide &
|
|
||||||
|
|
||||||
# caffeine
|
|
||||||
exec --no-startup-id caffeine start &
|
|
||||||
|
|
||||||
# backlight
|
|
||||||
# supports only intel
|
|
||||||
#exec --no-startup-id xbacklight -set 90 &
|
|
||||||
|
|
||||||
# nm-applet
|
|
||||||
exec --no-startup-id nm-applet &
|
|
||||||
|
|
||||||
# blueman
|
|
||||||
# exec --no-startup-id blueman-applet &
|
|
||||||
|
|
||||||
exec --no-startup-id nitrogen --restore; sleep 1; picom --config ~/.picom.conf
|
|
||||||
|
|
||||||
# dropbox
|
|
||||||
# exec --no-startup-id ~/.dropbox-dist/dropboxd &
|
|
||||||
|
|
||||||
# megasync
|
|
||||||
exec --no-startup-id megasync &
|
|
||||||
|
|
||||||
# vorta
|
|
||||||
# exec --no-startup-id vorta &
|
|
||||||
|
|
||||||
# keyboard layout
|
|
||||||
# @TODO move it to another file
|
|
||||||
exec --no-startup-id setxkbmap -layout us,ru -option 'grp:alt_space_toggle'
|
|
||||||
|
|
||||||
# power manager
|
|
||||||
#exec_always --no-startup-id xfce4-power-manager
|
|
||||||
|
|
||||||
# polkit
|
|
||||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
||||||
|
|
||||||
# default gaps
|
# default gaps
|
||||||
gaps inner 10
|
gaps inner 5
|
||||||
gaps outer 1
|
gaps outer 1
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
|
@ -276,7 +221,7 @@ set $text #ffffff
|
||||||
set $u-bgcolor #ff0000
|
set $u-bgcolor #ff0000
|
||||||
set $indicator #ffffff
|
set $indicator #ffffff
|
||||||
set $in-text #969696
|
set $in-text #969696
|
||||||
set $focused-ws #F0C674
|
set $focused-ws #d79921
|
||||||
set $bar-color #523d640D
|
set $bar-color #523d640D
|
||||||
# border background text indicator (a line which shows where the next window will be placed)
|
# border background text indicator (a line which shows where the next window will be placed)
|
||||||
client.focused $focused-ws $focused-ws $text $indicator
|
client.focused $focused-ws $focused-ws $text $indicator
|
||||||
|
@ -294,3 +239,5 @@ default_floating_border pixel 1
|
||||||
for_window [title="Picture-in-Picture"] sticky enable
|
for_window [title="Picture-in-Picture"] sticky enable
|
||||||
|
|
||||||
for_window [class="MEGAsync" title="Add sync"] floating disable
|
for_window [class="MEGAsync" title="Add sync"] floating disable
|
||||||
|
|
||||||
|
exec --no-startup-id ~/.config/i3/autostart.sh
|
||||||
|
|
|
@ -16,19 +16,43 @@
|
||||||
;
|
;
|
||||||
;==========================================================
|
;==========================================================
|
||||||
|
|
||||||
|
; [colors]
|
||||||
|
; background = #dd282A2E
|
||||||
|
; background-alt = #373B41
|
||||||
|
; foreground = #C5C8C6
|
||||||
|
; primary = #F0C674
|
||||||
|
; secondary = #8ABEB7
|
||||||
|
; alert = #A54242
|
||||||
|
; disabled = #707880
|
||||||
[colors]
|
[colors]
|
||||||
background = #dd282A2E
|
background = #dd282828
|
||||||
background-alt = #373B41
|
background-alt = #3c3836
|
||||||
foreground = #C5C8C6
|
bg-darker = #1d2021
|
||||||
primary = #F0C674
|
foreground = #fbf1c7
|
||||||
secondary = #8ABEB7
|
|
||||||
alert = #A54242
|
blue = #83a598
|
||||||
disabled = #707880
|
cyan = #8ec07c
|
||||||
|
green = #b8bb26
|
||||||
|
orange = #fe8019
|
||||||
|
purple = #d3869b
|
||||||
|
red = #fb4934
|
||||||
|
yellow = #fabd2f
|
||||||
|
|
||||||
|
bg-blue = #458588
|
||||||
|
bg-cyan = #689d6a
|
||||||
|
bg-green = #98971a
|
||||||
|
bg-orange = #d65d0e
|
||||||
|
bg-purple = #b16268
|
||||||
|
bg-red = #cc241d
|
||||||
|
bg-yellow = #d79921
|
||||||
|
|
||||||
|
black = #000
|
||||||
|
white = #FFF
|
||||||
|
|
||||||
[bar/fz0x1]
|
[bar/fz0x1]
|
||||||
monitor = ${env:MONITOR:HDMI-1-0}
|
monitor = ${env:MONITOR:HDMI-1-0}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 24pt
|
height = 22pt
|
||||||
radius = 6
|
radius = 6
|
||||||
|
|
||||||
dpi = 120
|
dpi = 120
|
||||||
|
@ -47,10 +71,10 @@ padding-right = 1
|
||||||
module-margin = 1
|
module-margin = 1
|
||||||
|
|
||||||
separator = ⟨
|
separator = ⟨
|
||||||
separator-foreground = ${colors.disabled}
|
separator-foreground = ${colors.yellow}
|
||||||
|
|
||||||
font-0 = JetBrainsMono Nerd Font Mono:size=9:style=Regular;2
|
font-0 = JetBrainsMono Nerd Font Mono:size=9:style=Regular;2
|
||||||
font-1 = JetBrainsMono Nerd Font Mono:size=18:style=Regular;3
|
font-1 = JetBrainsMono Nerd Font Mono:size=16:style=Regular;5
|
||||||
; font-0 = BigBlueTermPlus Nerd Font:size=10:style=Regular;2
|
; font-0 = BigBlueTermPlus Nerd Font:size=10:style=Regular;2
|
||||||
font-2 = "Font Awesome 6 Free"
|
font-2 = "Font Awesome 6 Free"
|
||||||
; font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=10;2"
|
; font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=10;2"
|
||||||
|
@ -90,27 +114,28 @@ label-urgent-font = 3
|
||||||
|
|
||||||
label-focused = %icon%
|
label-focused = %icon%
|
||||||
label-focused-foreground = #ffffff
|
label-focused-foreground = #ffffff
|
||||||
label-focused-background = #3f3f3f
|
label-focused-background = ${colors.background}
|
||||||
label-focused-underline = #fba922
|
label-focused-underline = ${colors.red}
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
|
|
||||||
label-unfocused = %icon%
|
label-unfocused = %icon%
|
||||||
label-unfocused-padding = 2
|
label-unfocused-padding = 2
|
||||||
|
|
||||||
label-visible = %icon%
|
; label-visible = %icon%
|
||||||
label-visible-underline = #555555
|
; label-visible-underline = #555555
|
||||||
label-visible-padding = 2
|
; label-visible-padding = 2
|
||||||
|
|
||||||
label-urgent = %icon%
|
; label-urgent = %icon%
|
||||||
label-urgent-foreground = #000000
|
; label-urgent-foreground = #000000
|
||||||
label-urgent-background = #bd2c40
|
; label-urgent-background = #bd2c40
|
||||||
label-urgent-padding = 2
|
; label-urgent-padding = 2
|
||||||
|
|
||||||
label-mode-padding = 2
|
; label-mode-padding = 2
|
||||||
|
|
||||||
; label-separator = |
|
; label-separator = |
|
||||||
; label-separator-padding = 2
|
; label-separator-padding = 2
|
||||||
; label-separator-foreground = #ffb52a
|
; label-separator-foreground = #ffb52a
|
||||||
|
|
||||||
ws-icon-0 = 1;
|
ws-icon-0 = 1;
|
||||||
ws-icon-1 = 2;
|
ws-icon-1 = 2;
|
||||||
ws-icon-2 = 3;
|
ws-icon-2 = 3;
|
||||||
|
@ -122,26 +147,26 @@ ws-icon-default =
|
||||||
type = internal/tray
|
type = internal/tray
|
||||||
|
|
||||||
tray-padding = 3px
|
tray-padding = 3px
|
||||||
#tray-background = #dd576574
|
; tray-background = #dd576574
|
||||||
tray-size = 50%
|
tray-size = 50%
|
||||||
|
|
||||||
[module/xworkspaces]
|
[module/xworkspaces]
|
||||||
type = internal/xworkspaces
|
type = internal/xworkspaces
|
||||||
|
|
||||||
label-active = %name%
|
label-active = %name%
|
||||||
label-active-background = ${colors.background-alt}
|
label-active-background = ${colors.background}
|
||||||
label-active-underline= ${colors.primary}
|
label-active-underline= ${colors.red}
|
||||||
label-active-padding = 1
|
label-active-padding = 1
|
||||||
|
|
||||||
label-occupied = %name%
|
label-occupied = %name%
|
||||||
label-occupied-padding = 1
|
label-occupied-padding = 1
|
||||||
|
|
||||||
label-urgent = %name%
|
label-urgent = %name%
|
||||||
label-urgent-background = ${colors.alert}
|
label-urgent-background = ${colors.bg-yellow}
|
||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
|
|
||||||
label-empty = %name%
|
label-empty = %name%
|
||||||
label-empty-foreground = ${colors.disabled}
|
label-empty-foreground = ${colors.red}
|
||||||
label-empty-padding = 1
|
label-empty-padding = 1
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
|
@ -151,32 +176,32 @@ label = %title:0:60:...%
|
||||||
[module/pulseaudio]
|
[module/pulseaudio]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
|
||||||
format-volume-prefix = "VOL "
|
format-volume-prefix = "vol "
|
||||||
format-volume-prefix-foreground = ${colors.primary}
|
format-volume-prefix-foreground = ${colors.yellow}
|
||||||
format-volume = <label-volume>
|
format-volume = <label-volume>
|
||||||
|
|
||||||
label-volume = %percentage%%
|
label-volume = %percentage%%
|
||||||
|
|
||||||
label-muted = muted
|
label-muted = muted
|
||||||
label-muted-foreground = ${colors.disabled}
|
label-muted-foreground = ${colors.red}
|
||||||
|
|
||||||
[module/xkeyboard]
|
[module/xkeyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
blacklist-0 = num lock
|
blacklist-0 = num lock
|
||||||
|
|
||||||
label-layout = %layout%
|
label-layout = %layout%
|
||||||
label-layout-foreground = ${colors.primary}
|
label-layout-foreground = ${colors.green}
|
||||||
|
|
||||||
label-indicator-padding = 2
|
label-indicator-padding = 2
|
||||||
label-indicator-margin = 1
|
label-indicator-margin = 1
|
||||||
label-indicator-foreground = ${colors.background}
|
label-indicator-foreground = ${colors.foreground}
|
||||||
label-indicator-background = ${colors.secondary}
|
label-indicator-background = ${colors.background}
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = "RAM "
|
format-prefix = "RAM "
|
||||||
format-prefix-foreground = ${colors.primary}
|
format-prefix-foreground = ${colors.white}
|
||||||
label = %percentage_used:2%%
|
label = %percentage_used:2%%
|
||||||
|
|
||||||
[network-base]
|
[network-base]
|
||||||
|
@ -189,7 +214,7 @@ label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
inherit = network-base
|
inherit = network-base
|
||||||
interface-type = wireless
|
interface-type = wireless
|
||||||
label-connected = %{A1:nm-connection-editor:}%{F#F0C674}%ifname%%{F-} %essid% %{A}
|
label-connected = %{A1:nm-connection-editor:}%{F#fabd2f}%ifname%%{F-} %essid% %{A}
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
|
@ -199,7 +224,7 @@ date = %H:%M
|
||||||
date-alt = %Y-%m-%d %H:%M:%S
|
date-alt = %Y-%m-%d %H:%M:%S
|
||||||
|
|
||||||
label = %date%
|
label = %date%
|
||||||
label-foreground = ${colors.primary}
|
label-foreground = ${colors.white}
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
|
@ -262,16 +287,16 @@ bar-indicator = |
|
||||||
bar-fill = ─
|
bar-fill = ─
|
||||||
bar-empty = ─
|
bar-empty = ─
|
||||||
|
|
||||||
[module/system-bluetooth-bluetoothctl]
|
; [module/system-bluetooth-bluetoothctl]
|
||||||
type = custom/script
|
; type = custom/script
|
||||||
exec = ~/.config/polybar/scripts/system-bluetooth-bluetoothctl.sh
|
; exec = ~/.config/polybar/scripts/system-bluetooth-bluetoothctl.sh
|
||||||
tail = true
|
; tail = true
|
||||||
click-left = ~/.config/polybar/scripts/system-bluetooth-bluetoothctl.sh --toggle &
|
; click-left = ~/.config/polybar/scripts/system-bluetooth-bluetoothctl.sh --toggle &
|
||||||
|
|
||||||
[module/bluetooth]
|
; [module/bluetooth]
|
||||||
type = custom/text
|
; type = custom/text
|
||||||
click-left = blueman-manager
|
; click-left = blueman-manager
|
||||||
content = "bt"
|
; content = "bt"
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
# Terminate already running bar instances
|
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
MONITOR="HDMI-1-0" polybar --reload fz0x1 -c ~/.config/polybar/config.ini &
|
MONITOR="HDMI-1-0" polybar --reload fz0x1 -c ~/.config/polybar/config.ini &
|
||||||
|
|
Loading…
Add table
Reference in a new issue