From adfc34fa5c61014abcda8aca745296ed2c21bd6d Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 23 Jun 2019 23:09:42 +0200 Subject: Forked from my i3 config --- config | 200 ++++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 104 insertions(+), 96 deletions(-) (limited to 'config') diff --git a/config b/config index 7dd49f2..6488365 100644 --- a/config +++ b/config @@ -2,57 +2,76 @@ # # Please see http://i3wm.org/docs/userguide.html for a complete reference! +# load xrdb +exec xrdb ~/.Xresources ; i3-msg reload output DP-1 { pos 0 0 res 1920x1080 - background ~/.local/share/backgrounds/01-0.jpg center + background ~/.local/share/backgrounds/01-0.jpg fill + dpms on } output DP-2 { pos 1920 0 res 1920x1080 - background ~/.local/share/backgrounds/01-1.jpg center + background ~/.local/share/backgrounds/01-1.jpg fill + # transform 270 + dpms on } -# load xrdb -exec xrdb ~/.Xresources ; i3-msg reload + +xwayland enable +gaps inner 0 +gaps outer 0 +smart_gaps on +smart_borders no_gaps # force_xinerama yes # fake-outputs 3840x1080+0+0 # we basically want to configure our font with ~/.config/fontconfig/* -# font pango:FuraCode Nerd Font Mono Retina 9 -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 +font pango:monospace 9 hide_edge_borders both +title_align left +# focus_follows_mouse no +# mouse_warping none set $mod Mod4 +bindsym $mod+j "mark --toggle a" + # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal # bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec --no-startup-id xfce4-appfinder -bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -bindsym $mod+t exec --no-startup-id xfce4-terminal +bindsym $mod+Return exec rofi -show drun -show-icons +bindsym Mod1+F2 exec rofi -show drun -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -show-icons -5 +bindsym $mod+t exec termite # bindsym $mod+t exec termite # bindsym $mod+t exec urxvt -bindsym $mod+e exec --no-startup-id thunar -bindsym $mod+l exec --no-startup-id ~/.local/bin/i3lock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" +bindsym $mod+e exec thunar +bindsym $mod+l exec swaylock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" -bindsym Print exec pactl set-sink-mute 0 toggle -bindsym Scroll_Lock exec pactl set-sink-volume 0 -5% -bindsym Pause exec pactl set-sink-volume 0 +5% +bindsym $mod+F10 exec pactl set-sink-mute 0 toggle +bindsym $mod+F11 exec pactl set-sink-volume 0 -5% +bindsym $mod+F12 exec pactl set-sink-volume 0 +5% # Pulse Audio controls bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% # increase sound volume bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound -bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 +# 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 # kill focused window bindsym $mod+Shift+q kill @@ -69,10 +88,10 @@ bindsym $mod+d exec --no-startup-id i3-dmenu-desktop bindsym $mod+Prior focus parent bindsym $mod+Next focus child -bindsym $mod+Left [workspace="__focused__"] focus left -bindsym $mod+Right [workspace="__focused__"] focus right -bindsym $mod+Down [workspace="__focused__"] focus down -bindsym $mod+Up [workspace="__focused__"] focus up +bindsym $mod+Left focus left +bindsym $mod+Right focus right +bindsym $mod+Down focus down +bindsym $mod+Up focus up bindsym $mod+Tab focus output right bindsym $mod+Shift+Tab focus output left bindsym mod1+Tab focus right @@ -116,20 +135,23 @@ workspace 1 output VGA1 workspace_layout tabbed # customize workspace names -set $WS1 1:1⃣ -set $WS2 2:2⃣ -set $WS3 3:3⃣ -set $WS4 4:4⃣ -set $WS5 5:5⃣ -set $WS6 6:6⃣ -set $WS7 7:7⃣ -set $WS8 8:8⃣ -set $WS9 9:9⃣ -set $WS10 10:0⃣ +set $WS1 1:1⃣ +set $WS2 2:2⃣ +set $WS3 3:3⃣ +set $WS4 4:4⃣ +set $WS5 5:5⃣ +set $WS6 6:6⃣ +set $WS7 7:7⃣ +set $WS8 8:8⃣ +set $WS9 9:9⃣ +set $WS10 10:0⃣ assign [class="^Thunderbird$"] → $WS10 -assign [class="^evolution"] → output right -assign [class="(?i)pidgin"] → output right +assign [class="^Pidgin"] → $WS10 +assign [class="^Hexchat"] → $WS10 +assign [class="(?i)pidgin"] → $WS10 + +bindsym Mod4+BackSpace exec i3-msg move workspace to output right # switch to workspace bindsym Mod4+1 workspace $WS1 @@ -155,16 +177,16 @@ bindsym Mod4+Shift+8 move container to workspace $WS8 bindsym Mod4+Shift+9 move container to workspace $WS9 bindsym Mod4+Shift+0 move container to workspace $WS10 -workspace 1 output DP-1 -workspace 2 output DP-1 -workspace 3 output DP-1 -workspace 4 output DP-1 -workspace 5 output HDMI-1 -workspace 6 output HDMI-1 -workspace 7 output HDMI-1 -workspace 8 output HDMI-1 -workspace "music" output HDMI-1 -workspace "background" output HDMI-1 +# workspace 1 output DP-1 +# workspace 2 output DP-1 +# workspace 3 output DP-1 +# workspace 4 output DP-1 +# workspace 5 output HDMI-1 +# workspace 6 output HDMI-1 +# workspace 7 output HDMI-1 +# workspace 8 output HDMI-1 +# workspace "music" output HDMI-1 +# workspace "background" output HDMI-1 # reload the configuration file bindsym $mod+Shift+c reload @@ -241,25 +263,25 @@ mode $mode_brightness { #! exec: execute when starting #! exec_always: execute when starting or restarting - - # 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 setxkbmap -option caps:escape exec xset r rate 330 40 exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 -exec setsid xautolock -locker i3lock +# exec setsid xautolock -locker swaylock -exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec --no-startup-id gnome-keyring-daemon --start --components=secrets -# start compositor... -exec --no-startup-id compton -b --config ~/.config/i3/compton.conf -exec --no-startup-id nitrogen --restore -exec --no-startup-id nm-applet +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 --no-startup-id ln -sf /dev/shm/recently-used.xbel $HOME/.local/share/recently-used.xbel +# exec gnome-keyring-daemon --start --components=secrets +# start compositor... +# exec compton -b --config ~/.config/i3/compton.conf +# exec nitrogen --restore +exec setsid mako +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_always 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 setxkbmap -option caps:escape @@ -273,39 +295,28 @@ exec setsid hexchat -e --minimize=2 # with default values from base16-tomorrow-night # ============================================== -set $base00 #1d1f21 -set $base01 #282a2e -set $base02 #373b41 -set $base03 #969896 -set $base04 #b4b7b4 -set $base05 #c5c8c6 -set $base06 #e0e0e0 -set $base07 #ffffff -set $base08 #cc6666 -set $base09 #de935f -set $base0A #f0c674 -set $base0B #b5bd68 -set $base0C #8abeb7 -set $base0D #81a2be -set $base0E #b294bb -set $base0F #a3685a -# d variable default -set $cursorColor $base05 -set $background $base00 -set $foreground $base05 -set $foreground $base05 -# +include /home/max/.config/base16/base16-sway/themes/base16-tomorrow.config +# main variables ssource default +# d variable default +set $background $base01 +set $foreground $base05 +set $cursorColor #00ff00 + +# set_from_resource $foreground base16.cursor $cursorColor +# set_from_resource $foreground base16.cursor $base05 # Basic bar configuration using the Base16 variables. bar { # status_command i3status --config ~/.config/i3/i3status.conf + font pango:monospace 9 status_command i3status --config ~/.config/i3/i3status.conf - # status_command /home/max/src/i3status/i3status --config ~/.config/i3/i3status.conf + # swaybar_command swaybar tray_padding 2 + tray_output DP-1 mode dock strip_workspace_numbers yes - # separator_symbol "│" + # separator_symbol "|" separator_symbol " " colors { @@ -318,7 +329,7 @@ bar { inactive_workspace $background $background $base03 urgent_workspace $background $background $base08 binding_mode $background $background $foreground -} + } } # Basic color configuration using the Base16 variables for windows and borders. @@ -331,30 +342,27 @@ client.placeholder $base00 $base00 $base05 $base00 $base00 client.background $background -for_window [class="(?i)evolution"] title_format "📧 %title" -for_window [class="(?i)thunderbird"] title_format "📧 %title" -for_window [class="(?i)firefox"] title_format " %title" -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 [class="(?i).*terminal?"] title_format " %title" -for_window [class="(?i)xfce4-appfinder"] title_format " %title" -for_window [title="YouTube"] title_format " %title" -for_window [title="SoundCloud"] title_format " %title" -for_window [title=""] title_format "%title" -for_window [title=" "] title_format "%title" - - # for_window [class="^.*"] border normal 3 # for_window [title="^.*Thunderbird"] border pixel 0 # for_window [title="^.*Chromium"] border pixel 0 # for_window [class="Gvim"] border pixel 0 +for_window [class="(?i)evolution"] title_format "📧 %title" +for_window [class="(?i)thunderbird"] title_format " %title" +for_window [class="(?i)firefox"] title_format " %title" +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 [class="(?i).*terminal?"] title_format " %title" +for_window [class="(?i).*termite?"] title_format " %title" +for_window [class="(?i)xfce4-appfinder"] title_format " %title" +for_window [title="YouTube"] title_format " %title" +for_window [title=""] title_format "%title" +for_window [title=" "] title_format "%title" # for_window [class="(?i)xfce4-terminal"] border pixel 0 # for_window [class="(?i)xfce4-appfinder"] border pixel 0 -# # for_window [title="^.*\|"] border pixel 4 - +# for_window [title="^.*\|"] border pixel 4 # for_window [title="^HexChat.*"] border pixel 0 # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks # for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks -- cgit v1.2.3