diff options
Diffstat (limited to 'i3')
| -rw-r--r-- | i3/config | 269 |
1 files changed, 269 insertions, 0 deletions
diff --git a/i3/config b/i3/config new file mode 100644 index 0000000..1eff55d --- /dev/null +++ b/i3/config @@ -0,0 +1,269 @@ +set $mod Mod4 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +font pango:Noto Sans 9 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +# bindsym $mod+Return exec urxvtc +# start browser +# bindsym $mod+Mod2+KP_1 exec palemoon +#start file browser +# bindsym $mod+Mod2+KP_9 exec urxvtc -e vifm +# kill focused window +bindsym $mod+Shift+q kill +# start pulsemixer +# bindsym $mod+Mod2+KP_3 exec urxvt -e pulsemixer +# start riot +# bindsym $mod+Mod2+KP_5 exec riot-desktop +# start ncmpcpp +# bindsym $mod+Mod2+KP_2 exec urxvtc -e ncmpcpp +# start lutris +# bindsym $mod+Mod2+KP_4 exec lutris +# start neomutt +# bindsym $mod+Mod2+KP_6 exec urxvtc -e neomutt +# start keepass +# bindsym $mod+Mod2+KP_7 exec keepassx2 +# start steam +# bindsym $mod+Mod2+KP_8 exec steam +# passmenu +# bindsym $mod+Mod2+KP_7 exec passmenu + +# equalizer +# bindsym $mod+p exec pulseaudio-equalizer toggle + +# dmenu network manager +bindsym $mod+n exec networkmanager_dmenu -fn "Noto Sans:style=Regular:size=11" -dim 0.5 -w 650 -x 365 -y 244 -nb "$bg" -nf "$fg" -sb "$fg" -sf "$bg" -p ">>" -l 15 + +# dmenu +bindsym $mod+r exec --no-startup-id dmenu_run -fn "Noto Sans:style=Regular:size=11" -dim 0.5 -w 650 -x 365 -y 244 -nb "$bg" -nf "$fg" -sb "$fg" -sf "$bg" -p ">>" -l 15 + +# rofi +#bindsym $mod+r exec rofi -show run -disable-history + +# screenshot +# bindsym --release Print exec import -window root ~/Pictures/Screenshots/$(date +%F_%H%M%S_%N).png + +# bindsym --release Shift+Print exec import ~/Pictures/Screenshots/$(date +%F_%H%M%S_%N).png + +# htop +# bindsym $mod+Escape exec urxvt -e htop + +# screenkey +# bindsym $mod+grave exec screenkey +# bindsym $mod+Shift+grave exec killall screenkey + +# emojis +# bindsym $mod+c exec dmenu-emoji.sh + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+b split h + +# split in vertical orientation +bindsym $mod+v split v + +bindsym $mod+q workspace back_and_forth + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# switch to workspace +bindsym $mod+1 workspace 1:一 +bindsym $mod+2 workspace 2:二 +bindsym $mod+3 workspace 3:三 +bindsym $mod+4 workspace 4:四 +bindsym $mod+5 workspace 5:五 +bindsym $mod+6 workspace 6:六 +bindsym $mod+7 workspace 7:七 +bindsym $mod+8 workspace 8:八 +bindsym $mod+9 workspace 9:九 +bindsym $mod+0 workspace 10:十 +bindsym $mod+Shift+Tab workspace prev +bindsym $mod+Tab workspace next + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace 1:一 +bindsym $mod+Shift+2 move container to workspace 2:二 +bindsym $mod+Shift+3 move container to workspace 3:三 +bindsym $mod+Shift+4 move container to workspace 4:四 +bindsym $mod+Shift+5 move container to workspace 5:五 +bindsym $mod+Shift+6 move container to workspace 6:六 +bindsym $mod+Shift+7 move container to workspace 7:七 +bindsym $mod+Shift+8 move container to workspace 8:八 +bindsym $mod+Shift+9 move container to workspace 9:九 +bindsym $mod+Shift+0 move container to workspace 10:十 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 5 px or 5 ppt + bindsym j resize grow height 5 px or 5 ppt + bindsym k resize shrink height 5 px or 5 ppt + bindsym l resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 5 px or 5 ppt + bindsym Down resize grow height 5 px or 5 ppt + bindsym Up resize shrink height 5 px or 5 ppt + bindsym Right resize grow width 5 px or 5 ppt + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+d mode "resize" + +# wallpaper +exec_always feh --bg-fill /home/trollshotlol/Pictures/Wallpapers/1544213727893.jpg + +# Color +set_from_resource $fg i3wm.foreground #f0f0f0 +set_from_resource $fg-alt i3wm.color9 #f0f0f0 +set_from_resource $bg i3wm.background #f0f0f0 + +# class border backgr. text indicator child_border +client.focused $bg $bg $fg $bg $fg +client.focused_inactive $bg $bg $fg $bg $fg-alt +client.unfocused $bg $bg $fg $bg $fg-alt +client.urgent $bg $bg $fg $bg $fg-alt +client.placeholder $bg $bg $fg $bg $fg-alt +client.background $bg $bg $fg $bg $fg-alt + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) + +# gaps +gaps inner 5 +gaps outer 0 +smart_gaps on +smart_borders on + +# bindsym $mod+Shift+x exec i3lock --blur 5 + +# increase sound volume +# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +5% + +# bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id playerctl volume 0.02+ + +# decrease sound volume +# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -5% + +# bindsym Shift+XF86AudioLowerVolume exec --no-startup-id playerctl volume 0.02- + +# Next/Previous Song +# bindsym XF86AudioNext exec --no-startup-id playerctl next +# bindsym XF86AudioPrev exec --no-startup-id playerctl previous +# bindsym XF86AudioPause exec --no-startup-id playerctl play-pause + +# mute sound +# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle + +# Sreen brightness controls +# bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness +# bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness + +# autostart programs +exec urxvtd +exec_always --no-startup-id dunst -lb "$bg" -nb "$bg" -cb "$bg" -lf "$fg" -nf "$fg" -cf "$fg" -frame_width 6 +exec_always mumble-overlay compton +exec palemoon +exec_always --no-startup-id $HOME/.config/polybar/launch.sh +#exec keepassx2 +exec wal -R + +# assign various programs workspaces +assign [class="Chromium"] 1:一 +assign [class="IceCat"] 1:一 +assign [class="Pale moon"] 1:一 +assign [class="Auryo"] 2:二 +assign [title="newsboat"] 2:二 +assign [class="Spotify"] 2:二 +assign [title="pulsemixer"] 3:三 +assign [class="Lutris"] 4:四 +assign [title="irssi"] 4:四 +assign [class="Mumble"] 5:五 +assign [class="discord"] 5:五 +assign [class="Riot"] 5:五 +assign [title="neomutt"] 6:六 +assign [class="Thunderbird"] 6:六 +assign [class="Keepassx2"] 7:七 +assign [class="keepassxc"] 7:七 +assign [class="Transmission-gtk"] 8:八 +assign [class="Steam"] 8:八 +assign [class="Thunar"] 9:九 +assign [title="ranger"] 9:九 +assign [title="vifm"] 9:九 + +# specific program rules +for_window [class="Tor Browser"] floating enable + +bindsym $mod+y border pixel 4 +bindsym $mod+u border none + +focus_follows_mouse yes +new_window pixel 4 +#workspace_auto_back_and_forth yes |
