updates for desktop

This commit is contained in:
Frieder Schlesier 2022-02-05 12:38:41 +00:00
parent 039a897afa
commit 46b6522a1d
4 changed files with 37 additions and 34 deletions

View File

@ -107,26 +107,28 @@ set $WS8 "8 "
set $WS9 "9 "
assign [class="^Firefox$"] $WS1
assign [class="^DebugScreen"] $WS3
assign [class="^Eclipse$"] $WS5
assign [class="^Thunderbird$"] $WS4
assign [class=".*ee.*ass.*"] $WS8
# https://faq.i3wm.org/question/3726/workspace-output-multiple-values/index.html%3Fanswer=3731.html#post-id-3731
set $LAPTOP LVDS-1
set $CENTER HDMI-1
set $RIGHT VGA-1
set $CENTER DP-2
set $RIGHT DP-1
set $LEFT DVI-D-0
# monitor settings
bindsym $mod+m mode "monitor"
mode "monitor" {
# only laptop
bindsym 1 exec xrandr --output $LAPTOP --auto --primary --output $CENTER --off $RIGHT --off
# HDMI main, laptop secondary
# CENTER main, RIGHT secondary
bindsym 2 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --off
# HDMI main, laptop left, VGA right, *not* supported on X230
bindsym 3 exec xrandr --output $CENTER --primary --auto --output $LAPTOP --auto --left-of $CENTER --output $RIGHT --auto --right-of $CENTER
# HDMI main, VGA right, laptop off
bindsym 4 exec xrandr --output $CENTER --primary --auto --output $RIGHT --right-of $CENTER --rotate left --auto --output $LAPTOP --off
# CENTER main, RIGHT right, rotated
bindsym 4 exec xrandr --output $CENTER --primary --auto --output $RIGHT --auto --right-of $CENTER --rotate left --output $LAPTOP --off --output $LEFT --off
# VGA main, laptop left, HDMI off
bindsym 8 exec xrandr --output $RIGHT --primary --auto --output $LAPTOP --auto --left-of $RIGHT --output $CENTER --off
# HDMI main, VGA right, laptop off
@ -138,15 +140,13 @@ mode "monitor" {
bindsym $mod+m mode "default"
}
bindsym $mod+p exec xrandr-toggle
workspace $WS1 output $CENTER
workspace $WS2 output $CENTER
workspace $WS3 output $LAPTOP
workspace $WS4 output $LAPTOP
workspace $WS3 output $RIGHT
workspace $WS4 output $RIGHT
workspace $WS5 output $CENTER
workspace $WS8 output $LAPTOP
workspace $WS9 output $LAPTOP
workspace $WS8 output $RIGHT
workspace $WS9 output $RIGHT
# switch to workspace
bindsym $mod+1 workspace $WS1
@ -226,17 +226,16 @@ bar {
inactive_workspace #002b36 #586e75 #002b36
urgent_workspace #d33682 #d33682 #fdf6e3
}
output $LAPTOP
output $CENTER
font pango:DejaVu Sans Mono, FontAwesome 7
status_command i3status --config ~/.i3/status.conf
tray_output $CENTER
}
bar {
# output $CENTER
output $RIGHT
status_command i3status --config ~/.i3/status_small.conf
tray_output $LAPTOP
tray_output $CENTER
}
# auto run commands
@ -254,9 +253,10 @@ bar {
exec amixer set Master 1+ off
exec amixer set Master 54
exec --no-startup-id nm-applet
exec --no-startup-id xrandr --output LVDS1 --left-of VGA1 --auto
exec --no-startup-id xrandr --output VGA1 --auto
# exec --no-startup-id xrandr --output LVDS1 --left-of VGA1 --auto
# exec --no-startup-id xrandr --output VGA1 --auto
#exec --no-startup-id clipit
exec --no-startup-id xrandr --output $CENTER --primary --auto --output $RIGHT --auto --right-of $CENTER --rotate left --output $LAPTOP --off --output $LEFT --off
exec --no-startup-id i3-msg 'workspace $WS1; exec firefox;'
exec --no-startup-id i3-msg 'workspace $WS2; exec emacs'
exec --no-startup-id i3-msg 'exec thunderbird'

View File

@ -25,7 +25,7 @@ order += "run_watch DHCP"
#order += "ipv6"
order += "wireless wlp3s0"
order += "ethernet fschl-vpn"
order += "ethernet enp0s25"
order += "ethernet enp31s0"
order += "volume Master"
order += "battery 0"
# order += "cpu_temperature 0"
@ -36,19 +36,19 @@ order += "tztime DE"
#order += "tztime KG"
# order += "tztime UK"
# look for icons: https://fontawesome.com/icons?d=gallery
wireless wlp3s0 {
format_up = " %essid(%quality) %ip"
format_down = "-"
}
ethernet fschl-vpn {
# if you use %speed, i3status requires root privileges
format_up = "VPN: %ip "
format_down = "VPN:-"
format_up = "fschl-vpn: %ip"
format_down = "fschl-vpn: -"
}
ethernet enp0s25 {
ethernet sl-optigem {
# if you use %speed, i3status requires root privileges
format_up = "optigem: %ip"
format_down = "optigem: -"
}
ethernet enp31s0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E:-"

View File

@ -22,7 +22,7 @@ order += "run_watch DHCP"
order += "path_exists VPN"
order += "wireless wlp3s0"
# order += "ethernet eth0"
order += "ethernet enp0s25"
order += "ethernet enp31s0"
order += "volume master"
order += "battery 0"
order += "load"
@ -39,13 +39,8 @@ battery 0 {
}
wireless wlp3s0 {
format_up = " %essid (%quality)"
format_down = " -"
}
# ethernet eth0 {
ethernet enp0s25 {
ethernet enp31s0 {
# if you use %speed, i3status requires root privileges
format_up = "E: up"
format_down = "E: down"

View File

@ -60,7 +60,15 @@ This function should only modify configuration layer settings."
spell-checking
syntax-checking
version-control
yaml)
yaml
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
;; spell-checking
;; syntax-checking
;; version-control
treemacs)
;; List of additional packages that will be installed without being wrapped
;; in a layer (generally the packages are installed only and should still be