Added setup-screens script

This commit is contained in:
Julian Mutter 2021-07-12 09:41:48 +02:00
parent 75c5ec6422
commit 58906ccfdb
2 changed files with 14 additions and 1 deletions

View File

@ -10,6 +10,7 @@
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $scripts ~/.config/i3/scripts
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
@ -260,12 +261,15 @@ bindsym $mod+c exec xfce4-terminal --role floating --hide-scrollbar --title Calc
bindsym $mod+p exec xwacomcalibrate
bindsym $mod+t exec thunar
bindsym $mod+m exec xfce4-terminal -x mc
bindsym $mod+Shift+c exec jupyter-calculator
bindsym $mod+Shift+c exec $scripts/jupyter-calculator
bindsym $mod+b exec firefox
bindsym $mod+s exec pavucontrol
workspace_auto_back_and_forth yes
########## Window settings ##########
exec_always $scripts/setup-screens
########## Window settings ##########
default_border normal
default_floating_border normal

View File

@ -0,0 +1,9 @@
#!/bin/bash
# Author: Julian Mutter
# Date: 12.07.2021
if [[ $(xrandr | grep "HDMI1 connected") ]]; then
~/.screenlayout/layout2screen.sh
else
~/.screenlayout/layout1screen.sh
fi