This commit is contained in:
danijoo
2020-09-25 10:01:02 +02:00
parent e028095def
commit 88baca7458
6 changed files with 47 additions and 38 deletions

View File

@@ -6,12 +6,19 @@ include-file = ~/.config/polybar/config.d/base_bar
[bar/laptop] [bar/laptop]
inherit = bar/base inherit = bar/base
monitor = ${env:MONITOR:eDP-1} monitor = ${env:MONITOR:}
modules-left = i3 xwindow modules-left = i3 xwindow
modules-right = previous playpause next spotify pulseaudio cpu memory battery1 date modules-right = previous playpause next spotify pulseaudio cpu memory battery1 date
tray-position = right
tray-padding = 2
[bar/laptop_extern] [bar/laptop_secondary]
inherit = bar/laptop inherit = bar/base
monitor = ${env:MONITOR:HDMI-2} monitor = ${env:MONITOR:}
modules-left = i3 xwindow
modules-right = previous playpause next spotify pulseaudio cpu memory battery1 date
tray-position = none

View File

@@ -5,8 +5,19 @@ killall -q polybar
# Wait until the processes have been shut down # 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
# Launch bar1 and bar2 if type "xrandr"; then
polybar -c ~/.config/polybar/config laptop & # primary screen
polybar -c ~/.config/polybar/config laptop_extern & for m in $(xrandr --query | grep " connected" | grep "primary" | cut -d" " -f1); do
MONITOR=$m polybar --reload laptop &
done
# other screens
for m in $(xrandr --query | grep " connected" | grep -v "primary" | cut -d" " -f1); do
MONITOR=$m polybar --reload laptop_secondary &
done
else
polybar --reload laptop &
fi
# polybar -c ~/.config/polybar/config laptop &
# polybar -c ~/.config/polybar/config laptop_extern &
echo "Bars launched..." echo "Bars launched..."

View File

@@ -71,8 +71,8 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# move workspace left/right # move workspace left/right
bindsym $mod+Shift+greater move workspace to output left bindsym $mod+Shift+greater move workspace to output right
bindsym $mod+Shift+less move workspace to output right bindsym $mod+Shift+less move workspace to output left
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+h split h bindsym $mod+h split h
@@ -174,7 +174,7 @@ bindsym $mod+r mode "resize"
# finds out, if available) # finds out, if available)
#bar { #bar {
#position top #position top
# status_command i3blocks -c ~/.i3/i3blocks.conf # status_command 2> /tmp/i3blocks.err i3blocks -c ~/.config/i3/i3blocks.conf | tee /tmp/i3blocks.out
#} #}
@@ -189,19 +189,19 @@ exec_always --no-startup-id ~/.config/polybar/polybar.sh
# worksapce8 => chat # worksapce8 => chat
# workspace9 => emailing # workspace9 => emailing
# workspace0 => music # workspace0 => music
workspace $workspace7 output DP-0 workspace $workspace7 output eDP-1
assign [class="Zotero"] → $workspace7 assign [class="Zotero"] → $workspace7
assign [class="Mendeley"] → $workspace7 assign [class="Mendeley"] → $workspace7
workspace $workspace8 output DP-0 workspace $workspace8 output eDP-1
assign [class="Skype" title="Skype"] → $workspace8 assign [class="Skype" title="Skype"] → $workspace8
assign [class="Mattermost" instance="mattermost"] → $workspace8 assign [class="Mattermost" instance="mattermost"] → $workspace8
assign [class="Rambox" instance="rambox"] → $workspace8
workspace $workspace9 output DP-0 workspace $workspace9 output eDP-1
assign [class="thunderbird"] → $workspace9 assign [class="thunderbird"] → $workspace9
workspace $workspace10 output DP-0 workspace $workspace10 output eDP-1
for_window [class="Spotify"] move to workspace $workspace10
assign [class="Spotify"] → $workspace10 assign [class="Spotify"] → $workspace10
for_window [window_role="pop-up"] floating enable for_window [window_role="pop-up"] floating enable
@@ -210,18 +210,8 @@ for_window [class="Tk"] floating enable
for_window [title="PyMOL Viewer"] floating enable for_window [title="PyMOL Viewer"] floating enable
for_window [class="Toplevel"] floating enable for_window [class="Toplevel"] floating enable
for_window [title="VMD*"] floating enable for_window [title="VMD*"] floating enable
for_window [title="Area per Lipid*"] floating enable for_window [title="Figure*" instance="matplotlib"] floating enable
for_window [title="MEMBPLUGIN"] floating enable
#for_window [title="Figure*"] floating enable
for_window [window_role="conversation" class="Pidgin"] floating enable for_window [window_role="conversation" class="Pidgin"] floating enable
exec --no-startup-id thunderbird
exec feh --bg-fill /home/bauer/artistic/artistici2.png
#exec volumeicon
exec thunar --daemon
#exec --no-startup-id xautolock -time 5 -locker 'i3lock -i ~/.lockscreen/`ls /home/bauer/lockscreens | shuf -n 1` -t -f'
# Pulse Audio controls # Pulse Audio controls
bindsym --release XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- #decrease sound volume bindsym --release XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- #decrease sound volume
@@ -246,10 +236,12 @@ bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/scripts/change_monitor.sh
# reload workspace layouts # reload workspace layouts
#exec --no-startup-id "i3-msg 'workspace 9; append_layout /home/bauer/.i3/workspace-9.json'" #exec --no-startup-id "i3-msg 'workspace 9; append_layout /home/bauer/.i3/workspace-9.json'"
#exec feh --bg-fill /home/bauer/artistic/artistici2.png
exec --no-startup-id skypeforlinux #exec --no-startup-id xautolock -time 5 -locker 'i3lock -i ~/.lockscreen/`ls /home/bauer/lockscreens | shuf -n 1` -t -f'
exec --no-startup-id mattermost-desktop #exec --no-startup-id thunderbird
exec --no-startup-id nextcloud #exec --no-startup-id skypeforlinux
exec --no-startup-id nm-applet #exec --no-startup-id mattermost-desktop
exec --no-startup-id xfsettingsd --sm-client-disable & #exec --no-startup-id nextcloud
exec --no-startup-id /usr/bin/blueman-applet #exec --no-startup-id nm-applet
#exec --no-startup-id xfsettingsd --sm-client-disable &
#exec --no-startup-id /usr/bin/blueman-applet

View File

@@ -14,9 +14,6 @@ padding-right=2
module-margin-left=1 module-margin-left=1
module-margin-right=3 module-margin-right=3
tray-position = right
tray-padding = 2
font-0 = "Noto Sans:size=14:style=Regular;1" font-0 = "Noto Sans:size=14:style=Regular;1"
font-1 = unifont:fontformat=truetype:size=14:antialias=false;0 font-1 = unifont:fontformat=truetype:size=14:antialias=false;0
font-2 = FontAwesome:size=14;0 font-2 = FontAwesome:size=14;0

View File

@@ -5,6 +5,7 @@
], ],
"installed_packages": "installed_packages":
[ [
"Anaconda",
"bioSyntax", "bioSyntax",
"Color Convert", "Color Convert",
"Color Highlight", "Color Highlight",
@@ -14,6 +15,7 @@
"gruvbox", "gruvbox",
"Helium", "Helium",
"Incomprehensible Ex", "Incomprehensible Ex",
"INI",
"LaTeX Snippets", "LaTeX Snippets",
"LaTeXTools", "LaTeXTools",
"LSP", "LSP",

View File

@@ -12,7 +12,7 @@
"detect_indentation": false, "detect_indentation": false,
"dictionary": "Packages/Language - English/en_US.dic", "dictionary": "Packages/Language - English/en_US.dic",
"font_face": "Hack for Powerline Regular", "font_face": "Hack for Powerline Regular",
"font_size": 15, "font_size": 12,
"hot_exit": false, "hot_exit": false,
"ignored_packages": "ignored_packages":
[ [