summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config108
-rw-r--r--config_exec40
-rw-r--r--env9
3 files changed, 101 insertions, 56 deletions
diff --git a/config b/config
index d17f275..6c36825 100644
--- a/config
+++ b/config
@@ -7,22 +7,44 @@
7# ================================================================================ 7# ================================================================================
8# force_xinerama yes 8# force_xinerama yes
9# fake-outputs 3840x1080+0+0 9# fake-outputs 3840x1080+0+0
10include /home/max/.local/share/base16/base16-sway/themes/base16-tomorrow-night.config
11include config_exec
10 12
11 13
12output DP-2 { 14
15output LVDS-1 {
16 # pos 0 420
13 pos 0 0 17 pos 0 0
14 res 1920x1080 18 # res 1920x1080
15 background ~/.local/share/backgrounds/01-0.jpg fill 19 # background ~/.local/share/backgrounds/02-procrastination-hd1080.png center $base01
20 background ~/.local/share/backgrounds/osb3unzg9j941-1280.png stretch $base01
16 dpms on 21 dpms on
17} 22}
18 23
19output DP-1 { 24
20 pos 1920 0 25input * xkb_layout "us"
21 res 1920x1080 26input * xkb_variant "altgr-intl"
22 background ~/.local/share/backgrounds/01-1.jpg fill 27
23 # transform 270 28
24 dpms on 29# input * xkb_options "grp:win_space_toggle"
25} 30# input "MANUFACTURER1 Keyboard" xkb_model "pc101"
31
32# finally keyboard configuration in sway :)
33# input 1:1:AT_Translated_Set_2_keyboard {
34# xkb_layout us,de
35# xkb_variant intl
36# # xkb_options grp:alt_shift_toggle
37# }
38
39
40
41# output DP-1 {
42# pos 1920 0
43# res 1920x1080
44# background ~/.local/share/backgrounds/IMG_5625.JPG fill
45# # transform 270
46# dpms on
47# }
26 48
27# ================================================================================ 49# ================================================================================
28# Workspace settings 50# Workspace settings
@@ -77,7 +99,7 @@ bindsym Mod4+Shift+9 move container to workspace $WS9
77# with default values from base16-tomorrow-night 99# with default values from base16-tomorrow-night
78# ================================================================================ 100# ================================================================================
79xwayland enable 101xwayland enable
80hide_edge_borders both 102# hide_edge_borders both
81title_align left 103title_align left
82# gaps inner 6 104# gaps inner 6
83# smart_gaps on 105# smart_gaps on
@@ -87,13 +109,13 @@ title_align left
87 109
88# we basically want to configure our font with ~/.config/fontconfig/* and can 110# we basically want to configure our font with ~/.config/fontconfig/* and can
89# configure what is called monospace that way. It is more portable that way. 111# configure what is called monospace that way. It is more portable that way.
90font pango:monospace 9 112font pango:sans 9
113# font pango:FuraCode Nerd Font Mono Medium 11
114# font pango:monospace 9
91# font pango:GoMono Nerd Font 9 115# font pango:GoMono Nerd Font 9
92# font pango:FuraCode Nerd Font Mono 9 116# font pango:FuraCode Nerd Font Mono 9
93# font pango:Code New Roman Nerd Font 9 117# font pango:Code New Roman Nerd Font 9
94 118
95# load xrdb
96exec xrdb ~/.Xresources ; swaymsg reload
97 119
98include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config 120include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config
99# main variables ssource default 121# main variables ssource default
@@ -120,7 +142,7 @@ bar {
120 separator_symbol " " 142 separator_symbol " "
121 143
122 colors { 144 colors {
123 background $background 145 background #000000cc
124 separator $foreground 146 separator $foreground
125 statusline $foreground 147 statusline $foreground
126 148
@@ -156,13 +178,14 @@ assign [title="(?i)weechat"] $WS0
156# for_window [title="^.*Thunderbird"] border pixel 0 178# for_window [title="^.*Thunderbird"] border pixel 0
157# for_window [title="^.*Chromium"] border pixel 0 179# for_window [title="^.*Chromium"] border pixel 0
158# for_window [class="Gvim"] border pixel 0 180# for_window [class="Gvim"] border pixel 0
159for_window [title="(?i)Evolution"] title_format "📧 %title" 181for_window [title="(?i)Evolution"] title_format "📧 %title"
160for_window [class="(?i)firefox"] title_format " %title" 182for_window [app_id="firefox"] title_format " %title"
183for_window [app_id="firefox"] border pixel 5
161for_window [class="(?i)chromium"] title_format " %title" 184for_window [class="(?i)chromium"] title_format " %title"
162for_window [class="(?i)hexchat"] title_format " %title" 185for_window [class="(?i)hexchat"] title_format " %title"
163for_window [class="(?i)pidgin"] title_format "👥 %title" 186for_window [class="(?i)pidgin"] title_format "👥 %title"
164for_window [class="(?i)thunar"] title_format "🗄️ %title" 187for_window [app_id="thunar"] title_format "🗄️ %title"
165for_window [class="(?i)keepassx?"] title_format "🔑 %title" 188for_window [app_id="keepassxc"] title_format "🔑 %title"
166for_window [class="(?i).*terminal?"] title_format " %title" 189for_window [class="(?i).*terminal?"] title_format " %title"
167for_window [class="(?i).*termite?"] title_format " %title" 190for_window [class="(?i).*termite?"] title_format " %title"
168for_window [class="(?i)xfce4-appfinder"] title_format " %title" 191for_window [class="(?i)xfce4-appfinder"] title_format " %title"
@@ -171,6 +194,8 @@ for_window [title="(?i)weechat"] title_format " %title"
171for_window [title="YouTube"] title_format " %title" 194for_window [title="YouTube"] title_format " %title"
172for_window [title=""] title_format "%title" 195for_window [title=""] title_format "%title"
173for_window [title=" "] title_format "%title" 196for_window [title=" "] title_format "%title"
197for_window [title=" "] border pixel 0
198for_window [app_id=".*terminal"] border pixel 0
174 199
175# for_window [class="(?i)xfce4-terminal"] border pixel 0 200# for_window [class="(?i)xfce4-terminal"] border pixel 0
176# for_window [class="(?i)xfce4-appfinder"] border pixel 0 201# for_window [class="(?i)xfce4-appfinder"] border pixel 0
@@ -193,6 +218,8 @@ for_window [title=" "] title_format "%title"
193 218
194set $mod Mod4 219set $mod Mod4
195bindsym $mod+j "mark --toggle a" 220bindsym $mod+j "mark --toggle a"
221bindsym Pause exec grim -t png "/tmp/$(date '+%Y-%m-%d %H:%M:%S').png"
222
196 223
197# Use Mouse+$mod to drag floating windows to their wanted position 224# Use Mouse+$mod to drag floating windows to their wanted position
198floating_modifier $mod 225floating_modifier $mod
@@ -215,7 +242,6 @@ bindsym $mod+Shift+j move down
215bindsym $mod+Shift+k move up 242bindsym $mod+Shift+k move up
216bindsym $mod+Shift+l move right 243bindsym $mod+Shift+l move right
217 244
218
219bindsym $mod+Tab focus output right 245bindsym $mod+Tab focus output right
220bindsym $mod+Shift+Tab focus output left 246bindsym $mod+Shift+Tab focus output left
221bindsym mod1+Tab focus right 247bindsym mod1+Tab focus right
@@ -255,9 +281,11 @@ bindsym $mod+Shift+m scratchpad show ; res
255 281
256# start a terminal 282# start a terminal
257# bindsym $mod+Return exec i3-sensible-terminal 283# bindsym $mod+Return exec i3-sensible-terminal
258bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" 284# bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons"
285bindsym $mod+Return exec dmenu_run
259bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" 286bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5"
260bindsym $mod+t exec alacritty 287bindsym $mod+t exec xfce4-terminal
288bindsym $mod+y exec gnome-terminal
261bindsym $mod+e exec thunar 289bindsym $mod+e exec thunar
262bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 290bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10
263bindsym $mod+d exec i3-dmenu-desktop 291bindsym $mod+d exec i3-dmenu-desktop
@@ -279,6 +307,8 @@ bindsym XF86AudioMute exec pactl set-sink-m
279 307
280# exit i3 (logs you out of your X session) 308# exit i3 (logs you out of your X session)
281# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" 309# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
310# bindsym $mod+Shift+e exec "sway-nag warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
311bindsym $mod+Shift+e exec swaynag --font "monospace 8" --background 000000 --button-background 000000 --button-border-size 1 --border aaaaaa -b yes "swaymsg exit" -s 'no' -m 'Do you really want to quit sway?'
282# split in horizontal orientation 312# split in horizontal orientation
283# bindsym $mod+h split h 313# bindsym $mod+h split h
284 314
@@ -336,9 +366,6 @@ mode "$mode_launcher" {
336# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop 366# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
337# exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 367# exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800
338# bindcode 156 368# bindcode 156
339# exec xrandr --output DP-1 --rotate left --pos 1920x-420
340# exec xrandr --output DP1 --rotate left --right-of HDMI1
341# exec xrandr --output DP1 --rotate left --pos 1920x-420
342 369
343 370
344 371
@@ -353,30 +380,6 @@ mode "$mode_launcher" {
353# ================================================================================ 380# ================================================================================
354 381
355 382
356# exec xrandr --output HDMI-1 --right-of DP-1
357# exec xrandr --output HDMI-1 --right-of VGA-1
358# exec /usr/bin/xrandr-reset.sh
359# exec setsid xautolock -locker swaylock
360
361exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
362
363# exec gnome-keyring-daemon --start --components=secrets
364# start compositor...
365# exec compton -b --config ~/.config/i3/compton.conf
366# exec nitrogen --restore
367exec mako
368bindsym ctrl+space exec makoctl dismiss -a
369
370exec nm-applet
371# exec pidgin
372exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};' $d; done'
373
374# exec setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print
375# exec xset r rate 330 40
376# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
377# exec setxkbmap -option caps:escape
378
379
380 383
381# input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { 384# input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control {
382# xkb_layout "us" 385# xkb_layout "us"
@@ -389,11 +392,4 @@ exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec=
389# } 392# }
390 393
391 394
392
393
394
395# exec setsid hexchat -e --minimize=2
396exec termite -e /home/max/.local/bin/weechat
397
398
399# vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl 395# vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl
diff --git a/config_exec b/config_exec
new file mode 100644
index 0000000..cd3dc77
--- /dev/null
+++ b/config_exec
@@ -0,0 +1,40 @@
1# load xrdb
2exec xrdb ~/.Xresources ; swaymsg reload
3exec ibus-daemon --xim -d
4
5
6# exec xrandr --output HDMI-1 --right-of DP-1
7# exec xrandr --output HDMI-1 --right-of VGA-1
8# exec /usr/bin/xrandr-reset.sh
9# exec setsid xautolock -locker swaylock
10
11exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000'
12
13# exec gnome-keyring-daemon --start --components=secrets
14# start compositor...
15# exec compton -b --config ~/.config/i3/compton.conf
16# exec nitrogen --restore
17
18
19exec mako
20bindsym ctrl+space exec makoctl dismiss -a
21
22
23# exec ibus-daemon -drx
24exec nm-applet
25# exec pidgin
26exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e \'match($0,"Exec=(.*)",q){ gsub(/ %.+/, "", q[1]); system("setsid -f " q[1])};\' $d; done'
27
28# exec setxkbmap de,us -device evdev -model pc105 -option "" -option keypad:pointerkeys,grp_led:caps,grp:caps_toggle,terminate:ctrl_alt_bksp -v 1 -print
29# exec xset r rate 330 40
30# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
31# exec setxkbmap -option caps:escape
32# exec setsid hexchat -e --minimize=2
33# exec termite -e /home/max/.local/bin/weechat
34exec khal list today 500d > $HOME/.motd
35
36
37
38# exec xrandr --output DP-1 --rotate left --pos 1920x-420
39# exec xrandr --output DP1 --rotate left --right-of HDMI1
40# exec xrandr --output DP1 --rotate left --pos 1920x-420
diff --git a/env b/env
new file mode 100644
index 0000000..aa2e28e
--- /dev/null
+++ b/env
@@ -0,0 +1,9 @@
1IMSETTINGS_INTEGRATE_DESKTOP=yes
2IMSETTINGS_MODULE=ibus
3QT_IM_MODULE=ibus
4XMODIFIERS=@im=ibus
5GTK_IM_MODULE=ibus
6# export GTK_IM_MODULE_FILE=/usr/lib/gtk-3.0/3.0.0/immodules.cache
7GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules
8XDG_CURRENT_DESKTOP=Unity
9
..