From b37db980044c23c08dc50c1a4c50d89625535d3a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 5 Jun 2020 17:48:34 +0300 Subject: picom & workspaces --- .config/i3/config##c.desktop,h.Maus | 42 ++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 24 deletions(-) (limited to '.config/i3') diff --git a/.config/i3/config##c.desktop,h.Maus b/.config/i3/config##c.desktop,h.Maus index 8187f6d..a4d8b82 100644 --- a/.config/i3/config##c.desktop,h.Maus +++ b/.config/i3/config##c.desktop,h.Maus @@ -13,7 +13,7 @@ exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer no #autostart exec --no-startup-id xsettingsd & -exec --no-startup-id picom -b & +exec --no-startup-id picom -b exec --no-startup-id flashfocus & exec --no-startup-id nextcloud & exec --no-startup-id copyq & @@ -36,16 +36,12 @@ exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf # set the wallpaper last (hopefully after xrandr) exec --no-startup-id ~/.fehbg - # Font for window titles font pango:Lato 11 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $alt -gaps inner 0 -gaps outer 0 - ############## # bindings # ############## @@ -59,14 +55,8 @@ bindsym $mod+o exec --no-startup-id xdotool mousemove 1087 1101 # bookmark from clipboard bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c -# add taskwarrior/gtd calendar item -bindsym $mod+Shift+t exec --no-startup-id ~/bin/td - -# add taskwarrior/gtd inbox item -bindsym $mod+Shift+i exec --no-startup-id ~/bin/in - # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) -bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace" +bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,us,tr -variant ,colemak, -option grp:alt_shift_toggle,caps:backspace" # ] on colemak ü on turkish # use flameshot with print screen bindsym Print exec flameshot gui @@ -75,12 +65,12 @@ bindsym Print exec flameshot gui bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" -bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause # for spotify bindsym XF86AudioPrev exec --no-startup-id playerctl previous bindsym XF86AudioNext exec --no-startup-id playerctl next -bindsym XF86Tools exec --no-startup-id mpc toggle +bindsym XF86Tools exec --no-startup-id mpc toggle # for mpd/ncmpcpp -# # media keys +# # media keys for "regular" keyboards # bindsym $mod+Up exec --no-startup-id "amixer set Master 2%+ && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" # bindsym $mod+Down exec --no-startup-id "amixer set Master 2%- && volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)" # bindsym $mod+m exec --no-startup-id "amixer set Master toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1); fi" @@ -96,7 +86,7 @@ bindsym $mod+minus scratchpad show # shortcuts for frequent programs bindsym $mod+Shift+z exec zotero -bindsym $mod+Shift+f exec thunar +bindcode $mod+Shift+41 exec thunar # t on colemak f on turkish # start a terminal bindsym $mod+Return exec kitty @@ -143,9 +133,6 @@ bindsym $mod+a sticky toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle -# focus the parent container -# bindsym $mod+a focus parent - # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" @@ -158,6 +145,9 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" +set $wsmusic "♫" +set $wszotero "ζ" +set $wsdesktop "Ξ" # switch to workspace bindsym $mod+1 workspace $ws1 @@ -170,6 +160,9 @@ bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 +bindsym $mod+m workspace $wsmusic +bindcode $mod+49 workspace $wszotero +bindcode $mod+60 workspace $wsdesktop # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 @@ -182,9 +175,11 @@ bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 +bindsym $mod+Shift+m move container to workspace $wsmusic +bindcode $mod+Shift+49 move container to workspace $wszotero +bindcode $mod+Shift+60 move container to workspace $wsdesktop bindsym $mod+z move container to output right -# bindsym $mod+Shift+less move container to output left # reload the configuration file bindsym $mod+Shift+c reload @@ -273,13 +268,12 @@ mode "$mode_gaps_inner" { bindsym Escape mode "default" } -for_window [class=".*"] border pixel 5 +# for_window [class=".*"] border pixel 5 +default_border pixel 2 for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable assign [class="^Steam$"] 9 -assign [class="^Thunderbird$"] 8 - -# exec --no-startup-id i3-msg 'exec /usr/bin/firefox;move container to output right' +assign [class="^Zotero$"] $wszotero # class border backgr. text indicator child_border client.focused #458588 #285577 #ffffff #458588 #285577 -- cgit v1.2.3-61-g4310