Added setup-screens script
This commit is contained in:
parent
75c5ec6422
commit
58906ccfdb
@ -10,6 +10,7 @@
|
|||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
set $scripts ~/.config/i3/scripts
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# 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+p exec xwacomcalibrate
|
||||||
bindsym $mod+t exec thunar
|
bindsym $mod+t exec thunar
|
||||||
bindsym $mod+m exec xfce4-terminal -x mc
|
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+b exec firefox
|
||||||
bindsym $mod+s exec pavucontrol
|
bindsym $mod+s exec pavucontrol
|
||||||
|
|
||||||
workspace_auto_back_and_forth yes
|
workspace_auto_back_and_forth yes
|
||||||
|
|
||||||
|
########## Window settings ##########
|
||||||
|
exec_always $scripts/setup-screens
|
||||||
|
|
||||||
########## Window settings ##########
|
########## Window settings ##########
|
||||||
default_border normal
|
default_border normal
|
||||||
default_floating_border normal
|
default_floating_border normal
|
||||||
|
9
i3/.config/i3/scripts/setup-screens
Executable file
9
i3/.config/i3/scripts/setup-screens
Executable 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
|
Loading…
x
Reference in New Issue
Block a user