diff --git a/i3/.config/i3/config b/i3/.config/i3/config index d0c24b1..26e06ff 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -41,14 +41,14 @@ bindsym $mod+Ctrl+m exec termite -e 'alsamixer' ################################################################################################ # Workspace names -set $ws1  -set $ws2  -set $ws3  -set $ws4  -set $ws5  -set $ws6  -set $ws7  -set $ws8  +set $ws1 1:  +set $ws2 2:  +set $ws3 3:  +set $ws4 4:  +set $ws5 5:  +set $ws6 6:  +set $ws7 7:  +set $ws8 8:  # switch to workspace bindsym $mod+1 workspace $ws1 @@ -122,7 +122,8 @@ exec --no-startup-id xautolock -time 10 -locker "python ~/.scripts/i3lock.py" exec --no-startup-id Nextcloud exec --no-startup-id emacs --daemon exec --no-startup-id udiskie -exec_always --no-startup-id polybar beep +exec --no-startup-id polybar beep +exec --no-startup-id setxkbmap gb,de ############################################################################### ################################# Keybindings ################################# ############################################################################### diff --git a/i3/.config/polybar/config b/i3/.config/polybar/config index 4ceb984..94ff67f 100644 --- a/i3/.config/polybar/config +++ b/i3/.config/polybar/config @@ -1,39 +1,33 @@ -;===================================================== -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;===================================================== - [colors] -;background = ${xrdb:color0:#222} -background = #222 -background-alt = #444 -;foreground = ${xrdb:color7:#222} -foreground = #dfdfdf -foreground-alt = #555 -primary = #ffb52a -secondary = #e60053 -alert = #bd2c40 +background = ${xrdb:color0:#223} +background-alt = ${xrdb:color8:#fa4} +foreground = ${xrdb:color7:#cdd} +foreground-alt = ${xrdb:color15:#eef} +black = ${xrdb:color0:#233} +red = ${xrdb:color1:#f90} +green = ${xrdb:color2:#8c4} +yellow = ${xrdb:colo3:#fc0} +blue = ${xrdb:color4:#0af} +magenta = ${xrdb:color5:#e16} +cyan = ${xrdb:color6:#098} +white = ${xrdb:color7:#cdd} + [bar/beep] -;monitor = ${env:MONITOR:HDMI-1} +monitor = eDP1 width = 100% -height = 27 -;offset-x = 1% -;offset-y = 1% +height = 25 + radius = 6.0 -fixed-center = false +fixed-center = true background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 -line-color = #f00 +line-size = 04 +line-color = ${colors.blue} -border-size = 4 +border-size = 2 border-color = #00000000 padding-left = 0 @@ -45,102 +39,53 @@ module-margin-right = 2 font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 +font-3 = FontAwesome:style=Regular:pixelsize=10 modules-left = i3 -modules-center = -modules-right = filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu +modules-center = date +modules-right = volume xbacklight xkeyboard wlan battery powermenu tray-position = right tray-padding = 2 ;tray-transparent = true -;tray-background = #0063ff -;wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize -[module/xwindow] -type = internal/xwindow -label = %title:0:30:...% - [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock -format-prefix = " " +format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} -format-prefix-underline = ${colors.secondary} +format-prefix-underline = ${colors.magenta} label-layout = %layout% -label-layout-underline = ${colors.secondary} +label-layout-underline = ${colors.magenta} label-indicator-padding = 2 label-indicator-margin = 1 -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} - -[module/filesystem] -type = internal/fs -interval = 25 - -mount-0 = / - -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} - +label-indicator-background = ${colors.magenta} +label-indicator-underline = ${colors.megenta} [module/i3] type = internal/i3 -; Only show workspaces defined on the same output as the bar -; -; Useful if you want to show monitor specific workspaces -; on different bars -; -; Default: false pin-workspaces = true -; This will split the workspace name on ':' -; Default: false strip-wsnumbers = true -; Sort the workspaces by index instead of the default -; sorting that groups the workspaces by output -; Default: false -index-sort = true +index-sort = false -; Create click handler used to focus workspace -; Default: true enable-click = false -; Create scroll handlers used to cycle workspaces -; Default: true enable-scroll = false -; Wrap around when reaching the first/last workspace -; Default: true wrapping-scroll = false -; Set the scroll cycle direction -; Default: true reverse-scroll = false -; Use fuzzy (partial) matching on labels when assigning -; icons to workspaces -; Example: code;♚ will apply the icon to all workspaces -; containing 'code' in the label -; Default: false fuzzy-match = true ws-icon-0 = 1; @@ -151,45 +96,41 @@ ws-icon-4 = 5; ws-icon-5 = 6; ws-icon-6 = 7; ws-icon-7 = 8; -ws-icon-default =  +ws-icon-default = \ -; Only show workspaces on the same output as the bar -pin-workspaces = true +format = +label-mode = %mode% label-mode-padding = 2 -label-mode-foreground = #000 -label-mode-background = ${colors.primary} +label-mode-background = #e60053 -; focused = Active workspace on focused monitor -label-focused = %index% -label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} -label-focused-padding = ${module/bspwm.label-focused-padding} +label-focused = %name% +label-focused-foreground = ${colors.white} +label-focused-background = #566268 +label-focused-underline = ${colors.blue} +label-focused-padding = 4 -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-padding = ${module/bspwm.label-occupied-padding} +label-unfocused = %name% +label-unfocused-padding = 4 -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} +label-visible = %name% +label-visible-underline = ${colors.red} +label-visible-padding = 4 -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${module/bspwm.label-urgent-background} -label-urgent-padding = ${module/bspwm.label-urgent-padding} +label-urgent = %name% +label-urgent-foreground = ${colors.black} +label-urgent-background = ${colors.red} +label-urgent-padding = 4 [module/mpd] type = internal/mpd format-online = -icon-prev = -icon-stop = -icon-play = -icon-pause = -icon-next = +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  label-song-maxlen = 25 label-song-ellipsis = true @@ -197,49 +138,23 @@ label-song-ellipsis = true [module/xbacklight] type = internal/xbacklight -format =