1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

23 Commits

Author SHA1 Message Date
7ebb5ab79d Merge branch 'master' into surface-docked 2018-04-03 17:17:57 +01:00
2733f214eb Merge branch 'master' into surface-docked 2018-03-31 21:57:02 +01:00
cb4c89ab5b scripts/dock-displays: update fehbg after resize 2018-03-31 21:55:50 +01:00
c329271f0f aliases: start vim with servername for lervag/vimtex 2018-03-31 21:55:23 +01:00
1d12a5afab gvim: use consistent font size with system 2018-03-31 21:54:53 +01:00
80fc648fad vim: highlight cursor position with cursor{line,column} 2018-03-31 21:54:36 +01:00
ae855ed967 vim: add wqa and fat-finger aliases 2018-03-31 21:54:08 +01:00
5f76cace04 vim: add magic regex to search patterns 2018-03-31 21:53:40 +01:00
daea729cc8 vim: split in the direction you'd expect 2018-03-31 21:52:52 +01:00
94b221ebb3 vim: autosave modified files, also when FocusGained 2018-03-31 21:52:28 +01:00
7bbe3f07c0 vim: add FZF and NERDTree <leader>.. keybinds 2018-03-31 21:52:02 +01:00
1f8272d259 vim: alias te to tabedit 2018-03-31 21:50:50 +01:00
061f358a7f Merge branch 'master' into surface-docked 2018-03-31 13:46:20 +01:00
914881a320 scripts: re-add missing dock-displays utility 2018-03-31 13:16:54 +01:00
0c99fe83be Merge remote-tracking branch 'origin/master' into surface-docked 2018-03-31 12:12:51 +01:00
4c578cad6f Rearrange docked displays 2018-03-13 12:07:27 +00:00
a394c223c9 Merge remote-tracking branch 'origin/master' into surface-docked 2018-03-10 09:28:05 +00:00
1e84320fab Update surface-scripts HEAD 2017-06-04 16:25:03 +01:00
d7f5ff2d77 Surface cannot handle intense compton blur
This reverts commit d7097cf749.
2017-06-04 16:24:24 +01:00
fe1365f444 Add surface-scripts rewritten in bash 2017-06-04 16:24:24 +01:00
ead1c1fcc3 Add rotation lock i3block 2017-06-04 16:24:24 +01:00
5786aee59f Change i3 config to account for external displays 2017-06-04 16:24:23 +01:00
2ac5f09b83 Add battery indicator to i3bar 2017-06-04 16:24:21 +01:00
7 changed files with 47 additions and 27 deletions

View File

@ -37,8 +37,9 @@ blur-background-frame = false; # Blur background of opaque windows with transpar
# frames as well.
blur-background-fixed = true; # Do not let blur radius adjust based on window opacity.
# Exclude conditions for background blur.
blur-kern = "5,5,0.894839,0.932912,0.945959,0.932912,0.894839,0.932912,0.972604,0.986207,0.972604,0.932912,0.945959,0.986207,0.986207,0.945959,0.932912,0.972604,0.986207,0.972604,0.932912,0.894839,0.932912,0.945959,0.932912,0.894839"
# python compton-convgen.py --dump-compton gaussian 9 -f=sigma=10
blur-kern = "9,9,0.852144,0.882497,0.904837,0.918512,0.923116,0.918512,0.904837,0.882497,0.852144,0.882497,0.913931,0.937067,0.951229,0.955997,0.951229,0.937067,0.913931,0.882497,0.904837,0.937067,0.960789,0.975310,0.980199,0.975310,0.960789,0.937067,0.904837,0.918512,0.951229,0.975310,0.990050,0.995012,0.990050,0.975310,0.951229,0.918512,0.923116,0.955997,0.980199,0.995012,0.995012,0.980199,0.955997,0.923116,0.918512,0.951229,0.975310,0.990050,0.995012,0.990050,0.975310,0.951229,0.918512,0.904837,0.937067,0.960789,0.975310,0.980199,0.975310,0.960789,0.937067,0.904837,0.882497,0.913931,0.937067,0.951229,0.955997,0.951229,0.937067,0.913931,0.882497,0.852144,0.882497,0.904837,0.918512,0.923116,0.918512,0.904837,0.882497,0.852144"
# Fading
fading = true; # Fade windows during opacity changes.

View File

@ -78,9 +78,10 @@ interval=5
[separator]
#[battery]
#label=
#interval=5
[rotation]
interval=once
[separator]
[keyboard]
label=
@ -88,6 +89,12 @@ interval=30
[separator]
[battery]
interval=30
signal=11
[separator]
[clock]
interval=5
min_width=" 00:00"

20
.config/i3/blocks/rotation Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
lock="/tmp/rotlock"
[[ -e $lock ]] || echo "unlocked" > "$lock"
status=$(<$lock)
if [ $BLOCK_BUTTON -gt 0 ]; then
case $status in
"unlocked") status="locked" ;;
"locked") status="unlocked";;
esac
echo $status > "$lock"
fi
case $status in
"locked") echo "";;
"unlocked") echo "";;
esac

View File

@ -44,21 +44,12 @@ bindsym $mod+e sticky toggle
bindsym $mod+a focus parent
bindsym $mod+o focus child
# Screen configs #
set $bl "DP-5"
set $tl "DP-1"
set $br "HDMI-0"
set $tr "DP-3"
set $surf eDP1
set $hdmi HDMI1
# Workspace -> Screen
workspace 1 output $bl
workspace 2 output $br
workspace 3 output $tl
workspace 4 output $tr
workspace 5 output $bl
workspace 6 output $br
workspace 7 output $tl
workspace 8 output $tr
workspace 1 output $hdmi
workspace 5 output $surf
# switch to workspace
bindsym $mod+1 workspace 1
@ -111,14 +102,10 @@ bar {
workspace_buttons yes
strip_workspace_numbers yes
tray_output primary
tray_padding 4
height 24
output $bl
output $br
output primary
position bottom
tray_output $hdmi
tray_padding 2
position top
height 20
colors {
separator #757575
@ -196,8 +183,7 @@ exec --no-startup-id nextcloud
exec --no-startup-id blueman-applet
exec --no-startup-id redshift
exec --no-startup-id xbindkeys
exec --no-startup-id solaar
exec --no-startup-id pullover
exec --no-startup-id onboard
exec --no-startup-id compton -b --config ~/.config/compton.conf
exec --no-startup-id chromium --no-startup-window

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "surface-scripts"]
path = surface-scripts
url = https://github.com/frebib/surface-scripts.git

View File

@ -1,3 +1,5 @@
setxkbmap -option caps:none
xset r rate 200 18
xrandr --dpi 96
~/.local/share/surface-scripts/pend &

1
surface-scripts Submodule

Submodule surface-scripts added at f94e25f0b8