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!
|
# 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 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
|
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-left = 1
|
||||||
module-margin-right = 3
|
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
|
wm-restack = i3
|
||||||
;override-redirect = true
|
;override-redirect = true
|
||||||
scroll-up = i3wm-wsnext
|
scroll-up = i3wm-wsnext
|
||||||
scroll-down = i3wm-wsprev
|
scroll-down = i3wm-wsprev
|
||||||
|
|
||||||
|
|
||||||
[bar/laptop]
|
[bar/laptop]
|
||||||
monitor = ${env:MONITOR:eDP-1}
|
monitor = ${env:MONITOR:eDP-1}
|
||||||
inherit = bar/base
|
inherit = bar/base
|
||||||
@@ -46,22 +40,26 @@ tray-padding = 2
|
|||||||
modules-left = i3 xwindow
|
modules-left = i3 xwindow
|
||||||
modules-right = spotify volume cpu memory battery1 date
|
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
|
inherit = bar/base
|
||||||
monitor = ${env:MONITOR:HDMI-0}
|
monitor = ${env:MONITOR:DP-2}
|
||||||
modules-left = i3
|
modules-left = i3 xwindow
|
||||||
modules-center = xwindow
|
modules-right = spotify mpd volume filesystem cpu gpu memory date
|
||||||
modules-right = spotify mpd volume filesystem memory gpu cpu date
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
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]
|
[bar/workstation2]
|
||||||
inherit = bar/base
|
inherit = bar/workstation
|
||||||
monitor = ${env:MONITOR:DP-4}
|
monitor = ${env:MONITOR:DP-4}
|
||||||
modules-left = i3
|
tray-position = false
|
||||||
|
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
@@ -229,7 +227,7 @@ format = <label> <bar-used>
|
|||||||
label = MEM
|
label = MEM
|
||||||
|
|
||||||
bar-used-indicator =
|
bar-used-indicator =
|
||||||
bar-used-width = 17
|
bar-used-width = 20
|
||||||
bar-used-foreground-0 = ${colors.green}
|
bar-used-foreground-0 = ${colors.green}
|
||||||
bar-used-foreground-1 = ${colors.yellow}
|
bar-used-foreground-1 = ${colors.yellow}
|
||||||
bar-used-foreground-2 = ${colors.red}
|
bar-used-foreground-2 = ${colors.red}
|
||||||
@@ -379,8 +377,7 @@ type=custom/script
|
|||||||
exec = /bin/bash ~/.config/polybar/gpu.sh
|
exec = /bin/bash ~/.config/polybar/gpu.sh
|
||||||
interval = 1
|
interval = 1
|
||||||
tail = false
|
tail = false
|
||||||
format = <label>
|
format = GPU <label>
|
||||||
format-underline = #268bd2
|
|
||||||
|
|
||||||
[module/spotify]
|
[module/spotify]
|
||||||
type=custom/script
|
type=custom/script
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ killall -q polybar
|
|||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
# Launch bar1 and bar2
|
# Launch bar1 and bar2
|
||||||
polybar -c ~/.config/polybar/config example_left &
|
polybar -c ~/.config/polybar/config workstation &
|
||||||
polybar -c ~/.config/polybar/config example_right &
|
polybar -c ~/.config/polybar/config workstation2 &
|
||||||
polybar -c ~/.config/polybar/config laptop &
|
polybar -c ~/.config/polybar/config laptop &
|
||||||
|
|
||||||
echo "Bars launched..."
|
echo "Bars launched..."
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
dir="${HOME}/dotfiles"
|
dir="${HOME}/dotfiles"
|
||||||
conffolder="${HOME}/.config"
|
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
|
for dotfile in "${dotfiles[@]}"; do
|
||||||
ln -sf $dir/$dotfile ${HOME}/${dotfile}
|
ln -sf $dir/$dotfile ${HOME}/${dotfile}
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user