Worked on ultrawide layouts

This commit is contained in:
Jesper Fussing Mørk 2018-11-07 08:10:14 +01:00
parent 3af55a0501
commit 1bf929addb
12 changed files with 211 additions and 207 deletions

View File

@ -62,7 +62,6 @@ no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = true;
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
@ -117,8 +116,7 @@ inactive-opacity-override = false;
alpha-step = 0.06;
opacity-rule = [
"100:name = 'Netflix'",
"100:class_g = 'Google-chrome'"
"100:name = 'Netflix'"
];
# Dim inactive windows. (0.0 - 1.0)
@ -134,7 +132,6 @@ blur-background-fixed = false;
blur-background-exclude = [
"name = 'Netflix'",
"class_g = 'netflix.com'",
"class_g = 'Google-chrome'",
"window_type = 'dock'",
"window_type = 'desktop'"
];
@ -157,10 +154,9 @@ fade-out-step = 0.03;
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [
fade-exclude = [
"name = 'Netflix'",
"class_g = 'netflix.com'",
"class_g = 'Google-chrome'"
];
#################################

View File

@ -160,7 +160,7 @@ for_window [class="^.*"] border pixel 0
for_window [class="Nitrogen"] floating enable sticky enable border none
for_window [class="feh"] floating enable sticky enable border none
for_window [class="mpv"] floating enable sticky enable border none
for_window [class="^jetbrains-.+"][window_type=dialog] focus
#for_window [class="^jetbrains-.+"][window_type=dialog] focus
for_window [class="Arandr"] floating enable sticky enable border none
# reload the configuration file
@ -174,10 +174,8 @@ bindsym $mod+l exec --no-startup-id light-locker-command -l
# Autostart applications
exec --no-startup-id compton --config /home/jfm/.config/compton/compton.conf
#exec --no-startup-id nitrogen --restore
exec --no-startup-id nm-applet
exec --no-startup-id pasystray
#exec --no-startup-id blueman-applet
exec --no-startup-id light-locker
# Color palette used for the terminal ( ~/.Xresources file )

View File

@ -15,11 +15,12 @@
"x": 0,
"y": 0
},
"name": "jfm@moerks:~",
"name": "Mail",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$"
"class": "^Google\\-chrome$",
"instance": "^mail.google.com$"
}
],
"type": "con"
@ -34,11 +35,12 @@
"x": 0,
"y": 0
},
"name": "jfm@moerks:~",
"name": "Calendar",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$"
"class": "^Google\\-chrome$",
"instance": "^calendar.google.com$"
}
],
"type": "con"
@ -63,11 +65,12 @@
"x": 0,
"y": 0
},
"name": "jfm@moerks:~",
"name": "Hangouts Chat",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$"
"class": "^Google\\-chrome$",
"instance": "^chat.google.com$"
}
],
"type": "con"
@ -82,11 +85,12 @@
"x": 0,
"y": 0
},
"name": "jfm@moerks:~",
"name": "Messages",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$"
"class": "^Google\\-chrome$",
"instance": "^messages.android.com$"
}
],
"type": "con"
@ -111,11 +115,12 @@
"x": 0,
"y": 0
},
"name": "jfm@moerks:~",
"name": "Mattermost",
"percent": 1,
"swallows": [
{
"class": "^Termite$"
"class": "^Google\\-chrome$",
"instance": "^mattermost.yousee.dk__tdcgroup_channels_onboarding$"
}
],
"type": "con"

View File

@ -9,7 +9,7 @@
"y": 0
},
"name": "Chrome",
"percent": 0.333333333333333,
"percent": 0.333,
"swallows": [
{
"class": "^Google\\-chrome"
@ -21,8 +21,8 @@
{
"border": "none",
"floating": "auto_off",
"layout": "splith",
"percent": 0.41875,
"layout": "tabbed",
"percent": 0.666,
"type": "con",
"nodes": [
{
@ -39,42 +39,11 @@
"percent": 0.595663265306122,
"swallows": [
{
"class": "^Termite$",
"title": "^vim$"
}
],
"type": "con"
}
]
}
{
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.247916666666667,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Shell",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$",
"title": "^shell$"
"class": "^jetbrains-idea$",
"instance": "^sun\\-awt\\-X11\\-XFramePeer$"
}
],
"type": "con"
}
]
}

View File

@ -1,148 +1,150 @@
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.3,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Chrome",
"percent": 0.7,
"swallows": [
{
"class": "^Google\\-chrome$",
"instance": "^google\\-chrome$"
}
],
"type": "con"
},
"name": "Chrome",
"percent": 0.333333333333333,
"swallows": [
{
"class": "^Google\\-chrome"
}
],
"type": "con"
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Shell",
"percent": 0.3,
"swallows": [
{
"class": "^Termite$",
"title": "^shell$"
}
],
"type": "con"
}
]
}
{
"border": "none",
"floating": "auto_off",
"layout": "splith",
"percent": 0.41875,
"type": "con",
"nodes": [
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.4,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "NeoVim",
"percent": 0.7,
"swallows": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "NeoVim",
"percent": 0.595663265306122,
"swallows": [
{
"class": "^Termite$",
"title": "^vim$"
}
],
"type": "con"
},
{
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.404336734693878,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Shell",
"percent": 0.791666666666667,
"swallows": [
{
"class": "^Termite$",
"title": "^shell1$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Ranger",
"percent": 0.208333333333333,
"swallows": [
{
"class": "^Termite$",
"title": "^ranger$"
}
],
"type": "con"
}
]
"class": "^Termite$",
"title": "^vim$"
}
]
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Ranger",
"percent": 0.3,
"swallows": [
{
"class": "^Termite$",
"title": "^ranger$"
}
],
"type": "con"
}
]
}
{
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.247916666666667,
"type": "con",
"nodes": [
"border": "none",
"floating": "auto_off",
"layout": "splitv",
"percent": 0.3,
"type": "con",
"nodes": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Netflix",
"percent": 0.5,
"swallows": [
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "Netflix",
"percent": 0.5,
"swallows": [
{
"class": "^Netflix$"
}
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "WeeChat",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$",
"title": "^weechat$"
}
],
"type": "con"
"class": "^Google\\-chrome$",
"instance": "^netflix.com$"
}
]
],
"type": "con"
},
{
"border": "pixel",
"current_border_width": 0,
"floating": "auto_off",
"geometry": {
"height": 466,
"width": 739,
"x": 0,
"y": 0
},
"name": "WeeChat",
"percent": 0.5,
"swallows": [
{
"class": "^Termite$",
"title": "^weechat$"
}
],
"type": "con"
}
]
}

View File

@ -5,7 +5,7 @@ ENV_FILE="/home/jfm/.config/i3/env"
/bin/cat <<EOM >$ENV_FILE
export LAPTOP="DP1-3"
export PRIMARY="DP1-3"
export SECONDARY="DP1-2"
export SECONDARY="DP1-3"
export LOCATION="home"
EOM
@ -15,5 +15,4 @@ EOM
killall polybar &
sleep 1
polybar primary &
polybar secondary &
nitrogen --restore &

View File

@ -9,5 +9,5 @@ xrandr --output HDMI2 --off
xrandr --output HDMI1 --off
xrandr --output DP1-1 --off
xrandr --output DP2 --off
xrandr --output DP1-3 --primary --mode 1920x1200 --pos 0x0 --rotate normal
xrandr --output DP1-2 --mode 1920x1200 --pos 1920x0 --rotate normal
xrandr --output DP1-3 --primary --mode 3440x1440 --pos 0x0 --rotate normal
xrandr --output DP1-2 --off

View File

@ -7,8 +7,7 @@ export LAPTOP="eDP1"
export PRIMARY="DP1-2"
export SECONDARY="DP1-3"
export LDPI_PROFILE="default"
export HDPI_PROFILE="laptop"
export LOCATION="work"
EOM
. $ENV_FILE

View File

@ -3,9 +3,11 @@
if [ $LOCATION = "home" ];
then
i3-msg "workspace 3:IDE; append_layout ~/.config/i3/layouts/ws-ide-wide.json"
i3-msg "workspace 3:IDE; move workspace to output $PRIMARY"
i3-msg "workspace 3:; append_layout ~/.config/i3/layouts/ws-ide-wide.json"
i3-msg "workspace 3:; exec google-chrome-stable --no-default-browser-check --new-window"
i3-msg "workspace 3:; exec /home/jfm/Tools/idea-2018.2/bin/idea.sh"
i3-msg "workspace 3:; move workspace to output $PRIMARY"
else
i3-msg "workspace 3:IDE; append_layout ~/.config/i3/layouts/workspace3-ide.json"
i3-msg "workspace 3:IDE; move workspace to output $PRIMARY"
i3-msg "workspace 3:; append_layout ~/.config/i3/layouts/workspace3-ide.json"
i3-msg "workspace 3:; move workspace to output $PRIMARY"
fi

View File

@ -5,16 +5,16 @@ if [ $LOCATION = "home" ];
then
i3-msg "workspace 4:; append_layout ~/.config/i3/layouts/ws-work-wide.json"
i3-msg "workspace 4:; exec google-chrome-stable --no-default-browser-check --new-window"
i3-msg "workspace 4:; exec termite -t vim -e 'nvr -s --remote'"
i3-msg "workspace 4:; exec termite -t shell1"
i3-msg "workspace 4:; exec termite -t ranger -e ~/.config/ranger/ranger.sh"
i3-msg "workspace 4:; exec termite -t vim -e 'nvr -s --remote' --hold"
i3-msg "workspace 4:; exec termite -t shell"
i3-msg "workspace 4:; exec termite -t ranger -e ~/.config/ranger/ranger.sh --hold"
i3-msg "workspace 4:; exec google-chrome-stable --app=http://netflix.com"
i3-msg "workspace 4:; exec termite -t weechat -e weechat"
i3-msg "workspace 4:; move workspace to output $PRIMARY"
else
i3-msg "workspace 4:; append_layout ~/.config/i3/layouts/workspace4-work.json"
i3-msg "workspace 4:; exec termite -t shell1"
i3-msg "workspace 4:; exec termite -t shell2 -e ~/.config/ranger/ranger.sh"
i3-msg "workspace 4:; exec termite -t vim -e 'nvr -s --remote'"
i3-msg "workspace 4:; exec termite -t shell2 -e ~/.config/ranger/ranger.sh --hold"
i3-msg "workspace 4:; exec termite -t vim -e 'nvr -s --remote' --hold"
i3-msg "workspace 4:; move workspace to output $PRIMARY"
fi

View File

@ -0,0 +1,33 @@
[options]
font = Source Code Pro for Powerline 15
scrollback_lines = 10000
size_hints = true
# Solarized dark color scheme
[colors]
foreground = #839496
foreground_bold = #eee8d5
foreground_dim = #002b36
background = #002b36
cursor = #93a1a1
# if unset, will reverse foreground and background
#highlight = #839496
# colors from color0 to color254 can be set
color0 = #073642
color1 = #dc322f
color2 = #859900
color3 = #b58900
color4 = #268bd2
color5 = #d33682
color6 = #2aa198
color7 = #eee8d5
color8 = #002b36
color9 = #cb4b16
color10 = #586e75
color11 = #657b83
color12 = #839496
color13 = #6c71c4
color14 = #93a1a1
color15 = #fdf6e3

View File

@ -1,12 +1,13 @@
[options]
font = DejaVu Sans Mono for Powerline 22
font = Source Code Pro for Powerline 15
scrollback_lines = 10000
size_hints = true
# Solarized dark color scheme
[colors]
foreground = #839496
foreground_bold = #eee8d5
#foreground_dim = #888888
foreground_dim = #002b36
background = #002b36
cursor = #93a1a1