From 46b6522a1d319b32f00700413566f9e5e4baa63e Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Sat, 5 Feb 2022 12:38:41 +0000 Subject: [PATCH] updates for desktop --- .i3/config | 32 ++++++++++++++++---------------- .i3/status.conf | 20 ++++++++++---------- .i3/status_small.conf | 9 ++------- .spacemacs | 10 +++++++++- 4 files changed, 37 insertions(+), 34 deletions(-) diff --git a/.i3/config b/.i3/config index fa6ba9b..2ee883f 100755 --- a/.i3/config +++ b/.i3/config @@ -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' diff --git a/.i3/status.conf b/.i3/status.conf index 5cbeeaf..64cfd87 100755 --- a/.i3/status.conf +++ b/.i3/status.conf @@ -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:-" diff --git a/.i3/status_small.conf b/.i3/status_small.conf index aba9800..6c6a9c0 100755 --- a/.i3/status_small.conf +++ b/.i3/status_small.conf @@ -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" diff --git a/.spacemacs b/.spacemacs index cc33b19..38a4e7b 100644 --- a/.spacemacs +++ b/.spacemacs @@ -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