From 72821c3fa130753100088177a09a730abe39ba6b Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 28 Jan 2020 19:22:53 +0100 Subject: Restructed things --- config | 108 +++++++++++++++++++++++++++++++---------------------------------- 1 file changed, 52 insertions(+), 56 deletions(-) (limited to 'config') diff --git a/config b/config index d17f275..6c36825 100644 --- a/config +++ b/config @@ -7,22 +7,44 @@ # ================================================================================ # force_xinerama yes # fake-outputs 3840x1080+0+0 +include /home/max/.local/share/base16/base16-sway/themes/base16-tomorrow-night.config +include config_exec -output DP-2 { + +output LVDS-1 { + # pos 0 420 pos 0 0 - res 1920x1080 - background ~/.local/share/backgrounds/01-0.jpg fill + # res 1920x1080 + # background ~/.local/share/backgrounds/02-procrastination-hd1080.png center $base01 + background ~/.local/share/backgrounds/osb3unzg9j941-1280.png stretch $base01 dpms on } -output DP-1 { - pos 1920 0 - res 1920x1080 - background ~/.local/share/backgrounds/01-1.jpg fill - # transform 270 - dpms on -} + +input * xkb_layout "us" +input * xkb_variant "altgr-intl" + + +# input * xkb_options "grp:win_space_toggle" +# input "MANUFACTURER1 Keyboard" xkb_model "pc101" + +# finally keyboard configuration in sway :) +# input 1:1:AT_Translated_Set_2_keyboard { +# xkb_layout us,de +# xkb_variant intl +# # xkb_options grp:alt_shift_toggle +# } + + + +# output DP-1 { +# pos 1920 0 +# res 1920x1080 +# background ~/.local/share/backgrounds/IMG_5625.JPG fill +# # transform 270 +# dpms on +# } # ================================================================================ # Workspace settings @@ -77,7 +99,7 @@ bindsym Mod4+Shift+9 move container to workspace $WS9 # with default values from base16-tomorrow-night # ================================================================================ xwayland enable -hide_edge_borders both +# hide_edge_borders both title_align left # gaps inner 6 # smart_gaps on @@ -87,13 +109,13 @@ title_align left # we basically want to configure our font with ~/.config/fontconfig/* and can # configure what is called monospace that way. It is more portable that way. -font pango:monospace 9 +font pango:sans 9 +# font pango:FuraCode Nerd Font Mono Medium 11 +# font pango:monospace 9 # font pango:GoMono Nerd Font 9 # font pango:FuraCode Nerd Font Mono 9 # font pango:Code New Roman Nerd Font 9 -# load xrdb -exec xrdb ~/.Xresources ; swaymsg reload include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config # main variables ssource default @@ -120,7 +142,7 @@ bar { separator_symbol " " colors { - background $background + background #000000cc separator $foreground statusline $foreground @@ -156,13 +178,14 @@ assign [title="(?i)weechat"] $WS0 # for_window [title="^.*Thunderbird"] border pixel 0 # for_window [title="^.*Chromium"] border pixel 0 # for_window [class="Gvim"] border pixel 0 -for_window [title="(?i)Evolution"] title_format "📧 %title" -for_window [class="(?i)firefox"] title_format " %title" +for_window [title="(?i)Evolution"] title_format "📧 %title" +for_window [app_id="firefox"] title_format " %title" +for_window [app_id="firefox"] border pixel 5 for_window [class="(?i)chromium"] title_format " %title" for_window [class="(?i)hexchat"] title_format " %title" for_window [class="(?i)pidgin"] title_format "👥 %title" -for_window [class="(?i)thunar"] title_format "🗄️ %title" -for_window [class="(?i)keepassx?"] title_format "🔑 %title" +for_window [app_id="thunar"] title_format "🗄️ %title" +for_window [app_id="keepassxc"] title_format "🔑 %title" for_window [class="(?i).*terminal?"] title_format " %title" for_window [class="(?i).*termite?"] title_format " %title" for_window [class="(?i)xfce4-appfinder"] title_format " %title" @@ -171,6 +194,8 @@ for_window [title="(?i)weechat"] title_format " %title" for_window [title="YouTube"] title_format " %title" for_window [title=""] title_format "%title" for_window [title=" "] title_format "%title" +for_window [title=" "] border pixel 0 +for_window [app_id=".*terminal"] border pixel 0 # for_window [class="(?i)xfce4-terminal"] border pixel 0 # for_window [class="(?i)xfce4-appfinder"] border pixel 0 @@ -193,6 +218,8 @@ for_window [title=" "] title_format "%title" set $mod Mod4 bindsym $mod+j "mark --toggle a" +bindsym Pause exec grim -t png "/tmp/$(date '+%Y-%m-%d %H:%M:%S').png" + # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -215,7 +242,6 @@ bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right - bindsym $mod+Tab focus output right bindsym $mod+Shift+Tab focus output left bindsym mod1+Tab focus right @@ -255,9 +281,11 @@ bindsym $mod+Shift+m scratchpad show ; res # start a terminal # bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" +# bindsym $mod+Return exec "killall rofi ; rofi -show drun -show-icons" +bindsym $mod+Return exec dmenu_run bindsym Mod1+F2 exec "killall rofi ; rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5" -bindsym $mod+t exec alacritty +bindsym $mod+t exec xfce4-terminal +bindsym $mod+y exec gnome-terminal bindsym $mod+e exec thunar bindsym $mod+l exec swaylock -K -f -F -c "#000000" --text-color '#ffffff' --indicator-radius 200 --indicator-thickness 10 bindsym $mod+d exec i3-dmenu-desktop @@ -279,6 +307,8 @@ bindsym XF86AudioMute exec pactl set-sink-m # exit i3 (logs you out of your X session) # 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'" +# 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'" +bindsym $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?' # split in horizontal orientation # bindsym $mod+h split h @@ -336,9 +366,6 @@ mode "$mode_launcher" { # bindsym $mod+d exec --no-startup-id j4-dmenu-desktop # exec xrandr --dpi 95.48 --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 # bindcode 156 -# exec xrandr --output DP-1 --rotate left --pos 1920x-420 -# exec xrandr --output DP1 --rotate left --right-of HDMI1 -# exec xrandr --output DP1 --rotate left --pos 1920x-420 @@ -353,30 +380,6 @@ mode "$mode_launcher" { # ================================================================================ -# exec xrandr --output HDMI-1 --right-of DP-1 -# exec xrandr --output HDMI-1 --right-of VGA-1 -# exec /usr/bin/xrandr-reset.sh -# exec setsid xautolock -locker swaylock - -exec swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' - -# exec gnome-keyring-daemon --start --components=secrets -# start compositor... -# exec compton -b --config ~/.config/i3/compton.conf -# exec nitrogen --restore -exec mako -bindsym ctrl+space exec makoctl dismiss -a - -exec nm-applet -# exec pidgin -exec 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' - -# 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 -# exec xset r rate 330 40 -# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 -# exec setxkbmap -option caps:escape - - # input 16700:8467:Dell_KB216_Wired_Keyboard_Consumer_Control { # xkb_layout "us" @@ -389,11 +392,4 @@ exec bash -c 'for d in ~/.config/autostart/*.desktop; do awk -e 'match($0,"Exec= # } - - - -# exec setsid hexchat -e --minimize=2 -exec termite -e /home/max/.local/bin/weechat - - # vim: iskeyword+=\$,\-,\#,(,) nospell ft=tcl -- cgit v1.2.3