Browse Source

add a 2 screen config, disable postswitch commands

master
Jonathan Tremesaygues 4 months ago
parent
commit
948fd3cb83
4 changed files with 23 additions and 4 deletions
  1. +0
    -0
      dot_config/autorandr/docked_small_screen/.keep
  2. +17
    -0
      dot_config/autorandr/docked_small_screen/config
  3. +2
    -0
      dot_config/autorandr/docked_small_screen/setup
  4. +4
    -4
      dot_config/autorandr/executable_postswitch

+ 0
- 0
dot_config/autorandr/docked_small_screen/.keep View File


+ 17
- 0
dot_config/autorandr/docked_small_screen/config View File

@ -0,0 +1,17 @@
output HDMI-1
off
output HDMI-2
off
output DP-1
crtc 1
gamma 1.0:0.769:0.556
mode 1280x1024
pos 0x0
rate 60.02
output eDP-1
crtc 0
gamma 1.0:0.769:0.556
mode 1920x1080
pos 1280x0
primary
rate 60.00

+ 2
- 0
dot_config/autorandr/docked_small_screen/setup View File

@ -0,0 +1,2 @@
DP-1 00ffffffffffff0026cd32482b01000025120104a5261e7822ce50a3544c99260f5054bfef0081800101010101010101010101010101302a009851002a4030701300782d1100001e000000ff0030353834314838393030323939000000fd00374b1e530e000a202020202020000000fc00504c313930320a2020202020200036
eDP-1 00ffffffffffff000daea714000000002c170104951f117802fda59255529428245054000000010101010101010101010101010101015e358096703814402c1c240034ad10000018000000fe004e3134304847452d4541410a20000000fe00434d4e0a202020202020202020000000fe004e3134304847452d4541410a2000d4

+ 4
- 4
dot_config/autorandr/executable_postswitch View File

@ -1,11 +1,11 @@
#!/bin/sh
# Get the current workspace
current_workspace=$(i3-msg -t get_workspaces | jq '.[] | select(.focused == true).num')
#current_workspace=$(i3-msg -t get_workspaces | jq '.[] | select(.focused == true).num')
# Focus the workspace 10 and move it to the right screen
i3-msg workspace 10
i3-msg move workspace to output right
#i3-msg workspace 10
#i3-msg move workspace to output right
# Restore the focus
i3-msg workspace $current_workspace
#i3-msg workspace $current_workspace

Loading…
Cancel
Save