mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
i3
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
# exec xrandr --auto --output DP-4 --right-of HDMI-0 --primary --dpi 150
|
||||
exec --no-startup-id ~/.config/i3/autoxrandr
|
||||
exec --no-startup-id ~/.config/i3/xrandr.sh
|
||||
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
|
||||
5
.config/i3/xrandr.sh
Executable file
5
.config/i3/xrandr.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f ~/.screenlayout/default.sh ]; then
|
||||
bash ~/.screenlayout/default.sh
|
||||
fi
|
||||
@@ -26,17 +26,11 @@ padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 3
|
||||
|
||||
font-0 = "Noto Sans:size=14:style=Regular;1"
|
||||
font-1 = unifont:fontformat=truetype:size=14:antialias=false;0
|
||||
font-2 = FontAwesome:size=14;0
|
||||
|
||||
|
||||
wm-restack = i3
|
||||
;override-redirect = true
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
|
||||
[bar/laptop]
|
||||
monitor = ${env:MONITOR:eDP-1}
|
||||
inherit = bar/base
|
||||
@@ -46,22 +40,26 @@ tray-padding = 2
|
||||
modules-left = i3 xwindow
|
||||
modules-right = spotify volume cpu memory battery1 date
|
||||
|
||||
[bar/example_left]
|
||||
font-0 = "Noto Sans:size=14:style=Regular;1"
|
||||
font-1 = unifont:fontformat=truetype:size=14:antialias=false;0
|
||||
font-2 = FontAwesome:size=14;0
|
||||
|
||||
[bar/workstation]
|
||||
inherit = bar/base
|
||||
monitor = ${env:MONITOR:HDMI-0}
|
||||
modules-left = i3
|
||||
modules-center = xwindow
|
||||
modules-right = spotify mpd volume filesystem memory gpu cpu date
|
||||
monitor = ${env:MONITOR:DP-2}
|
||||
modules-left = i3 xwindow
|
||||
modules-right = spotify mpd volume filesystem cpu gpu memory date
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
;tray-transparent = true
|
||||
;tray-background = #0063ff
|
||||
|
||||
font-0 = "Noto Sans:size=11:style=Regular;1"
|
||||
font-1 = unifont:fontformat=truetype:size=11:antialias=false;0
|
||||
font-2 = FontAwesome:size=11;0
|
||||
|
||||
[bar/example_right]
|
||||
inherit = bar/base
|
||||
[bar/workstation2]
|
||||
inherit = bar/workstation
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
modules-left = i3
|
||||
tray-position = false
|
||||
|
||||
|
||||
[module/xwindow]
|
||||
@@ -229,7 +227,7 @@ format = <label> <bar-used>
|
||||
label = MEM
|
||||
|
||||
bar-used-indicator =
|
||||
bar-used-width = 17
|
||||
bar-used-width = 20
|
||||
bar-used-foreground-0 = ${colors.green}
|
||||
bar-used-foreground-1 = ${colors.yellow}
|
||||
bar-used-foreground-2 = ${colors.red}
|
||||
@@ -379,8 +377,7 @@ type=custom/script
|
||||
exec = /bin/bash ~/.config/polybar/gpu.sh
|
||||
interval = 1
|
||||
tail = false
|
||||
format = <label>
|
||||
format-underline = #268bd2
|
||||
format = GPU <label>
|
||||
|
||||
[module/spotify]
|
||||
type=custom/script
|
||||
@@ -417,4 +414,4 @@ ramp-capacity-3-foreground = ${colors.green}
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-4-foreground = ${colors.green}
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-0 =
|
||||
|
||||
@@ -6,8 +6,8 @@ killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config example_left &
|
||||
polybar -c ~/.config/polybar/config example_right &
|
||||
polybar -c ~/.config/polybar/config workstation &
|
||||
polybar -c ~/.config/polybar/config workstation2 &
|
||||
polybar -c ~/.config/polybar/config laptop &
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
dir="${HOME}/dotfiles"
|
||||
conffolder="${HOME}/.config"
|
||||
|
||||
dotfiles=(".pymolrc" ".pymol" ".vimrc" ".vim" ".vimrc" ".zshrc" ".zshrc_functions" ".zim" ".zimrc" ".gitconfig")
|
||||
dotfiles=(".vimrc" ".vim" ".vimrc" ".zshrc" ".zshrc_functions" ".zim" ".zimrc" ".gitconfig")
|
||||
for dotfile in "${dotfiles[@]}"; do
|
||||
ln -sf $dir/$dotfile ${HOME}/${dotfile}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user