From 82371129faf2f84eb6dece7bfef6e827e2300cdd Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 8 May 2019 15:53:02 +0200 Subject: GAPS --- .Xdefaults | 6 +++ .compton.conf | 12 +++--- .i3/config | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- install.sh | 2 +- 4 files changed, 146 insertions(+), 10 deletions(-) create mode 100644 .Xdefaults diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..fec0254 --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,6 @@ +XTerm*foreground: white +XTerm*background: black +XTerm*faceName: Monospace +XTerm*faceSize: 12.0 +XTerm*selectToClipboard: true +#XTerm*loginShell: true diff --git a/.compton.conf b/.compton.conf index 573c103..8d92a79 100644 --- a/.compton.conf +++ b/.compton.conf @@ -114,9 +114,9 @@ inactive-opacity-override = false; # Do not let dimness adjust based on window opacity. # inactive-dim-fixed = true; # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. -# blur-background = true; +blur-background = true; # Blur background of opaque windows with transparent frames as well. -# blur-background-frame = true; + blur-background-frame = true; # Do not let blur radius adjust based on window opacity. blur-background-fixed = false; blur-background-exclude = [ @@ -124,10 +124,10 @@ blur-background-exclude = [ "window_type = 'desktop'" ]; -opacity-rule = [ - "90:class_g = 'URxvt' && focused", - "60:class_g = 'URxvt' && !focused" -]; +#opacity-rule = [ +# "90:class_g = 'URxvt' && focused", +# "60:class_g = 'URxvt' && !focused" +#]; ################################# # diff --git a/.i3/config b/.i3/config index 3fd88d2..516c875 100644 --- a/.i3/config +++ b/.i3/config @@ -30,10 +30,10 @@ font pango:monospace 9 floating_modifier $mod # start a terminal -bindsym $mod+Return exec "xterm -fa 'Monospace' -fs 12 -bg black -fg white -ls -xrm 'XTerm*selectToClipboard: true'" +bindsym $mod+Return exec "xterm" #start ranger -bindsym $mod+o exec "xterm -fa 'Monospace' -fs 11 -bg black -fg white -ls -xrm 'XTerm*selectToClipboard: true' ranger" +bindsym $mod+o exec "xterm -e bash ranger" # kill focused window bindsym $mod+Shift+q kill @@ -166,6 +166,130 @@ mode "resize" { bindsym $mod+r mode "resize" +##GAPS +set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym h mode "$mode_gaps_horiz" + bindsym v mode "$mode_gaps_verti" + bindsym t mode "$mode_gaps_top" + bindsym r mode "$mode_gaps_right" + bindsym b mode "$mode_gaps_bottom" + bindsym l mode "$mode_gaps_left" + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} + +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_horiz" { + bindsym plus gaps horizontal current plus 5 + bindsym minus gaps horizontal current minus 5 + bindsym 0 gaps horizontal current set 0 + + bindsym Shift+plus gaps horizontal all plus 5 + bindsym Shift+minus gaps horizontal all minus 5 + bindsym Shift+0 gaps horizontal all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_verti" { + bindsym plus gaps vertical current plus 5 + bindsym minus gaps vertical current minus 5 + bindsym 0 gaps vertical current set 0 + + bindsym Shift+plus gaps vertical all plus 5 + bindsym Shift+minus gaps vertical all minus 5 + bindsym Shift+0 gaps vertical all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_top" { + bindsym plus gaps top current plus 5 + bindsym minus gaps top current minus 5 + bindsym 0 gaps top current set 0 + + bindsym Shift+plus gaps top all plus 5 + bindsym Shift+minus gaps top all minus 5 + bindsym Shift+0 gaps top all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_right" { + bindsym plus gaps right current plus 5 + bindsym minus gaps right current minus 5 + bindsym 0 gaps right current set 0 + + bindsym Shift+plus gaps right all plus 5 + bindsym Shift+minus gaps right all minus 5 + bindsym Shift+0 gaps right all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_bottom" { + bindsym plus gaps bottom current plus 5 + bindsym minus gaps bottom current minus 5 + bindsym 0 gaps bottom current set 0 + + bindsym Shift+plus gaps bottom all plus 5 + bindsym Shift+minus gaps bottom all minus 5 + bindsym Shift+0 gaps bottom all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +mode "$mode_gaps_left" { + bindsym plus gaps left current plus 5 + bindsym minus gaps left current minus 5 + bindsym 0 gaps left current set 0 + + bindsym Shift+plus gaps left all plus 5 + bindsym Shift+minus gaps left all minus 5 + bindsym Shift+0 gaps left all set 0 + + bindsym Return mode "$mode_gaps" + bindsym Escape mode "default" +} +##/GAPS + +#COLOR set $bgb #282a36 set $bg #282a36AA set $fg #f8f8f2 @@ -189,6 +313,10 @@ client.urgent $yw $yw $tx $id client.placeholder $bg $bg $bg $bg client.background $black +default_border none +gaps inner 15 +## Program starting + exec --no-startup-id nm-applet exec --no-startup-id feh --bg-fill ~/.i3/wp.jpg @@ -212,9 +340,11 @@ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute s bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 -fps 30 # increase screen brightness bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 -fps 30 # decrease screen brightness +#Screenshot on win+p bindsym $mod+p exec "scrot ~/Downloads/Screenshot%Y-%m-%d%H:%M:%S.png" -exec "setxkbmap -layout de" +#Layout de +exec --no-startup-id "setxkbmap -layout de" exec --no-startup-id "compton &" diff --git a/install.sh b/install.sh index 14be458..7065395 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ # transset-df for xterm transparency #Configs for home dir -MODULES=(.i3 .vim .xinitrc .compton.conf .bashrc) +MODULES=(.i3 .vim .xinitrc .compton.conf .bashrc .Xdefaults) #Configs for .config CFGFOLDER=(polybar) -- cgit v1.2.3