Lots of changes to dotfiles
This commit is contained in:
parent
e21ef89341
commit
08650c1fa5
8 changed files with 209 additions and 144 deletions
105
i3/config
105
i3/config
|
@ -3,6 +3,7 @@
|
|||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
set $alt Mod1
|
||||
|
||||
set $base00 #101218
|
||||
set $base01 #1f222d
|
||||
|
@ -28,7 +29,7 @@ font pango:monospace 8
|
|||
|
||||
# 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:DejaVu Sans Mono 8
|
||||
font pango:DejaVu Sans Mono 8
|
||||
|
||||
# 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
|
||||
|
@ -69,6 +70,16 @@ bindsym $mod+u exec ~/.dotfiles/rofi/scripts/rofi-emoji
|
|||
#kill i3
|
||||
bindsym $mod+Shift+x exec killall i3
|
||||
|
||||
# Man page lookup
|
||||
bindsym $mod+m exec man -k . | awk '{ print $1 " " $2 }' | rofi -dmenu -p man -matching regex | awk '{ print $2 " " $1 }' | tr -d '()' | xargs man -t | ps2pdf - - | zathura -
|
||||
|
||||
# TLDR page lookup
|
||||
bindsym $mod+Shift+m exec "/usr/bin/tldr --list-all | sed 's/, /\\n/g' | rofi -dmenu -p ';TLDR' -matching regex | xargs tldr -m | pandoc -f markdown -t ms | groff -ms - -T pdf | zathura -"
|
||||
|
||||
# WP Lookup
|
||||
bindsym $mod+Shift+w exec wpLookup
|
||||
|
||||
|
||||
|
||||
# Send signals to i3 blocks and zsh to tell them that capslock has been pushed
|
||||
# The message to zsh is technically a "window change" which causes zsh to re-draw the prompt
|
||||
|
@ -82,10 +93,6 @@ bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
|
|||
|
||||
|
||||
|
||||
for_window [class="xfce4-appfinder"] floating enable
|
||||
|
||||
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
|
@ -179,11 +186,11 @@ bindsym $mod+Shift+9 move container to workspace $workspace9, workspace $worksp
|
|||
bindsym $mod+Shift+0 move container to workspace $workspace10, workspace $workspace10
|
||||
|
||||
#assign programs to workspaces
|
||||
assign [class="chromium"] $workspace1
|
||||
assign [instance="crx_knipolnnllmklapflnccelgolnpehhpl"] to $workspace10
|
||||
#assign [class="chromium"] $workspace1
|
||||
#assign [instance="crx_knipolnnllmklapflnccelgolnpehhpl"] to $workspace10
|
||||
|
||||
for_window [window_role="gimp-toolbox"] floating disable; move left; move left;
|
||||
for_window [window_role="gimp-dock"] floating disable; move right; move right;
|
||||
#for_window [window_role="gimp-toolbox"] floating disable; move left; move left;
|
||||
#for_window [window_role="gimp-dock"] floating disable; move right; move right;
|
||||
|
||||
#make applications open in floating mode
|
||||
for_window [class="Galculator"] floating enable
|
||||
|
@ -240,8 +247,8 @@ bindsym $mod+r mode "resize"
|
|||
# finds out, if available)
|
||||
bar {
|
||||
#status_command i3status
|
||||
#status_command i3blocks -c ./i3blocks-secondary.conf
|
||||
status_command i3blocks
|
||||
#status_command i3blocks -c $HOME/.dotfiles/i3/i3blocks-secondary.conf
|
||||
status_command i3blocks -c $HOME/.dotfiles/i3/i3blocks.conf
|
||||
#tray_output primary
|
||||
colors {
|
||||
separator $base03
|
||||
|
@ -274,7 +281,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
|
|||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
|
||||
|
||||
# Touchpad controls
|
||||
bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
|
||||
#bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
|
||||
|
||||
# Media player controls
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
|
@ -291,22 +298,8 @@ bindsym Shift+Print exec xfce4-screenshooter -r
|
|||
bindsym $mod+x exec --no-startup-id ~/.dotfiles/i3/i3exit logout
|
||||
|
||||
|
||||
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id ~/.dotfiles/i3/i3exit lock, mode "default"
|
||||
bindsym e exec --no-startup-id ~/.dotfiles/i3/i3exit logout, mode "default"
|
||||
bindsym s exec --no-startup-id ~/.dotfiles/i3/i3exit suspend, mode "default"
|
||||
bindsym h exec --no-startup-id ~/.dotfiles/i3/i3exit hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id ~/.dotfiles/i3/i3exit reboot, mode "default"
|
||||
bindsym Shift+s exec --no-startup-id ~/.dotfiles/i3/i3exit shutdown, mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym ctrl+Shift+l mode "$mode_system"
|
||||
#bindsym ctrl+l exec "/home/jonathan/.bin/i3exit lock"
|
||||
|
||||
bindsym ctrl+shift+l exec --no-startup-id ~/.config/rofi/scripts/rofi-shutdown
|
||||
|
||||
##################################################
|
||||
# #
|
||||
|
@ -322,49 +315,49 @@ smart_gaps on
|
|||
set $mode_gaps Gaps: (o) outer, (i) inner, (d) default
|
||||
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||
|
||||
|
||||
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym d gaps inner current set 10; gaps outer current set 0
|
||||
bindsym Shift+d gaps inner all set 10; gaps outer all set 0
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym o mode "$mode_gaps_outer"
|
||||
bindsym i mode "$mode_gaps_inner"
|
||||
bindsym d gaps inner current set 10; gaps outer current set 0
|
||||
bindsym Shift+d gaps inner all set 10; gaps outer all set 0
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
mode "$mode_gaps_inner" {
|
||||
bindsym plus gaps inner current plus 5
|
||||
bindsym minus gaps inner current minus 5
|
||||
bindsym 0 gaps inner current set 0
|
||||
bindsym d gaps inner current set 10
|
||||
bindsym plus gaps inner current plus 5
|
||||
bindsym minus gaps inner current minus 5
|
||||
bindsym 0 gaps inner current set 0
|
||||
bindsym d gaps inner current set 10
|
||||
|
||||
bindsym Shift+plus gaps inner all plus 5
|
||||
bindsym Shift+minus gaps inner all minus 5
|
||||
bindsym Shift+0 gaps inner all set 0
|
||||
bindsym Shift+d gaps inner all set 10
|
||||
bindsym Shift+plus gaps inner all plus 5
|
||||
bindsym Shift+minus gaps inner all minus 5
|
||||
bindsym Shift+0 gaps inner all set 0
|
||||
bindsym Shift+d gaps inner all set 10
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
mode "$mode_gaps_outer" {
|
||||
bindsym plus gaps outer current plus 5
|
||||
bindsym minus gaps outer current minus 5
|
||||
bindsym 0 gaps outer current set 0
|
||||
bindsym d gaps outer current set 0
|
||||
bindsym plus gaps outer current plus 5
|
||||
bindsym minus gaps outer current minus 5
|
||||
bindsym 0 gaps outer current set 0
|
||||
bindsym d gaps outer current set 0
|
||||
|
||||
bindsym Shift+plus gaps outer all plus 5
|
||||
bindsym Shift+minus gaps outer all minus 5
|
||||
bindsym Shift+0 gaps outer all set 0
|
||||
bindsym Shift+d gaps outer all set 0
|
||||
bindsym Shift+plus gaps outer all plus 5
|
||||
bindsym Shift+minus gaps outer all minus 5
|
||||
bindsym Shift+0 gaps outer all set 0
|
||||
bindsym Shift+d gaps outer all set 0
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
exec_always --no-startup-id setbackground
|
||||
exec --no-startup-id compton -f -i 0.95
|
||||
#exec_always --no-startup-id albert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue