i3: ws icons, resize windows w/o mode
- Go up/down workspace bindings. - Removed unwanted blocks from i3blocks. - Volume key bindings.
This commit is contained in:
1
.vimrc
1
.vimrc
@@ -97,6 +97,7 @@ nnoremap <leader>h :set hlsearch! hlsearch?<CR>
|
|||||||
nnoremap <leader>he :help
|
nnoremap <leader>he :help
|
||||||
nnoremap <leader>vhe :vert help
|
nnoremap <leader>vhe :vert help
|
||||||
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
|
nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
|
||||||
|
nnoremap <leader>nw :set nowrap<CR>
|
||||||
nnoremap <leader>pli :PlugInstall<CR>
|
nnoremap <leader>pli :PlugInstall<CR>
|
||||||
nnoremap <leader>plc :PlugClean<CR>
|
nnoremap <leader>plc :PlugClean<CR>
|
||||||
nnoremap <leader>plu :PlugUpdate<CR>
|
nnoremap <leader>plu :PlugUpdate<CR>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ alias r=". ~/.bashrc"
|
|||||||
alias vag="vi $alias_folder/.git_aliases"
|
alias vag="vi $alias_folder/.git_aliases"
|
||||||
alias vap="vi $alias_folder/.pc_aliases"
|
alias vap="vi $alias_folder/.pc_aliases"
|
||||||
alias v3="vi ~/.config/i3/config"
|
alias v3="vi ~/.config/i3/config"
|
||||||
|
alias v3b="vi ~/.config/i3blocks/i3blocks.conf"
|
||||||
# }}} Config #
|
# }}} Config #
|
||||||
|
|
||||||
# redshift
|
# redshift
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ run() {
|
|||||||
}
|
}
|
||||||
# temp
|
# temp
|
||||||
alias mkt="make test_print && ./test_print.out"
|
alias mkt="make test_print && ./test_print.out"
|
||||||
alias mka="make all && ./print_ptree.out 4463"
|
alias mka="make all && ./print_ptree.out -d 0 31589"
|
||||||
|
alias ppt="./print_ptree.out 31589"
|
||||||
|
alias pptd="./print_ptree.out -d 2 31589"
|
||||||
# alias db="gdb ./print_ptree.out < gdb.txt"
|
# alias db="gdb ./print_ptree.out < gdb.txt"
|
||||||
deb() {
|
deb() {
|
||||||
gdb ./print_ptree.out < "$1"
|
gdb ./print_ptree.out < "$1"
|
||||||
|
|||||||
118
i3.conf
118
i3.conf
@@ -7,15 +7,17 @@ exec terminator
|
|||||||
exec google-chrome
|
exec google-chrome
|
||||||
# }}} startup #
|
# }}} startup #
|
||||||
|
|
||||||
bindsym control+x kill
|
|
||||||
bindsym $mod+control+Return exec i3-sensible-terminal
|
bindsym $mod+control+Return exec i3-sensible-terminal
|
||||||
bindsym Mod4+c exec google-chrome
|
bindsym Mod4+c exec google-chrome
|
||||||
|
bindsym Mod4+d exec discord
|
||||||
|
|
||||||
# redshift {{{ #
|
# redshift {{{ #
|
||||||
|
bindsym $mod+Mod4+1 exec redshift -O 1500
|
||||||
bindsym $mod+Mod4+2 exec redshift -O 2000
|
bindsym $mod+Mod4+2 exec redshift -O 2000
|
||||||
bindsym $mod+Mod4+3 exec redshift -O 3000
|
bindsym $mod+Mod4+3 exec redshift -O 3000
|
||||||
bindsym $mod+Mod4+4 exec redshift -O 4000
|
bindsym $mod+Mod4+4 exec redshift -O 4000
|
||||||
bindsym $mod+Mod4+5 exec redshift -O 5000
|
bindsym $mod+Mod4+5 exec redshift -O 5000
|
||||||
|
bindsym $mod+Mod4+0 exec redshift -x
|
||||||
# }}} redshift #
|
# }}} redshift #
|
||||||
|
|
||||||
# menu {{{ #
|
# menu {{{ #
|
||||||
@@ -64,6 +66,8 @@ bindsym $mod+b split h
|
|||||||
|
|
||||||
# split in vertical orientation
|
# split in vertical orientation
|
||||||
bindsym $mod+v split v
|
bindsym $mod+v split v
|
||||||
|
|
||||||
|
bindsym control+Shift+x kill
|
||||||
# }}} changing/focusing/moving windows #
|
# }}} changing/focusing/moving windows #
|
||||||
|
|
||||||
# container display {{{ #
|
# container display {{{ #
|
||||||
@@ -89,38 +93,59 @@ bindsym $mod+a focus parent
|
|||||||
# }}} container display #
|
# }}} container display #
|
||||||
|
|
||||||
# workspace {{{ #
|
# workspace {{{ #
|
||||||
# switch to workspace
|
# ws names {{{ #
|
||||||
set $ws1 "1: "
|
set $ws1 "1 "
|
||||||
set $ws2 "2"
|
set $ws2 "2 "
|
||||||
set $ws3 "3"
|
set $ws3 "3 "
|
||||||
set $ws4 "4"
|
set $ws4 "4 "
|
||||||
|
set $ws5 "5 "
|
||||||
|
set $ws6 "6 "
|
||||||
|
set $ws7 "7 "
|
||||||
|
set $ws8 "8 "
|
||||||
|
set $ws9 "9 "
|
||||||
|
set $ws0 "0 "
|
||||||
|
assign [class="discord"] $ws5
|
||||||
|
# }}} ws names #
|
||||||
|
|
||||||
# ws bindings {{{ #
|
# ws bindings {{{ #
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $mod+plus workspace next
|
||||||
|
bindsym $mod+minus workspace prev
|
||||||
|
|
||||||
bindsym $mod+1 workspace $ws1
|
bindsym $mod+1 workspace $ws1
|
||||||
bindsym $mod+2 workspace $ws2
|
bindsym $mod+2 workspace $ws2
|
||||||
bindsym $mod+3 workspace $ws3
|
bindsym $mod+3 workspace $ws3
|
||||||
bindsym $mod+4 workspace $ws4
|
bindsym $mod+4 workspace $ws4
|
||||||
bindsym $mod+5 workspace 5
|
bindsym $mod+5 workspace $ws5
|
||||||
bindsym $mod+6 workspace 6
|
bindsym $mod+6 workspace $ws6
|
||||||
bindsym $mod+7 workspace 7
|
bindsym $mod+7 workspace $ws7
|
||||||
bindsym $mod+8 workspace 8
|
bindsym $mod+8 workspace $ws8
|
||||||
bindsym $mod+9 workspace 9
|
bindsym $mod+9 workspace $ws9
|
||||||
bindsym $mod+0 workspace 10
|
bindsym $mod+0 workspace $ws10
|
||||||
# }}} ws bindings #
|
# }}} ws bindings #
|
||||||
|
|
||||||
# move container to ws {{{ #
|
# move container to ws {{{ #
|
||||||
# move focused container to workspace
|
# move focused container to workspace
|
||||||
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
|
bindsym $mod+control+1 move container to workspace $ws1
|
||||||
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
|
bindsym $mod+control+2 move container to workspace $ws2
|
||||||
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
|
bindsym $mod+control+3 move container to workspace $ws3
|
||||||
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
|
bindsym $mod+control+4 move container to workspace $ws4
|
||||||
bindsym $mod+Shift+5 move container to workspace 5
|
# bindsym $mod+control+1 move container to workspace $ws1; workspace $ws1
|
||||||
bindsym $mod+Shift+6 move container to workspace 6
|
# bindsym $mod+control+2 move container to workspace $ws2; workspace $ws2
|
||||||
bindsym $mod+Shift+7 move container to workspace 7
|
# bindsym $mod+control+3 move container to workspace $ws3; workspace $ws3
|
||||||
bindsym $mod+Shift+8 move container to workspace 8
|
# bindsym $mod+control+4 move container to workspace $ws4; workspace $ws4
|
||||||
bindsym $mod+Shift+9 move container to workspace 9
|
bindsym $mod+control+5 move container to workspace $ws5
|
||||||
bindsym $mod+Shift+0 move container to workspace 10
|
bindsym $mod+control+6 move container to workspace $ws6
|
||||||
|
bindsym $mod+control+7 move container to workspace $ws7
|
||||||
|
bindsym $mod+control+8 move container to workspace $ws8
|
||||||
|
bindsym $mod+control+9 move container to workspace $ws9
|
||||||
|
bindsym $mod+control+0 move container to workspace $ws10
|
||||||
# }}} move container to ws #
|
# }}} move container to ws #
|
||||||
|
|
||||||
|
# gaps {{{ #
|
||||||
|
# gaps inner 10
|
||||||
|
# gaps outer 20
|
||||||
|
# }}} gaps #
|
||||||
# }}} workspace #
|
# }}} workspace #
|
||||||
|
|
||||||
# reload config/computer {{{ #
|
# reload config/computer {{{ #
|
||||||
@@ -134,39 +159,27 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
|
|||||||
# }}} reload config #
|
# }}} reload config #
|
||||||
|
|
||||||
# resizing windows {{{ #
|
# resizing windows {{{ #
|
||||||
# resize window (you can also use the mouse for that)
|
bindsym $mod+control+h resize shrink width 10 px or 10 ppt
|
||||||
mode "resize" {
|
bindsym $mod+control+k resize grow height 10 px or 10 ppt
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
bindsym $mod+control+j resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym $mod+control+l resize grow width 10 px or 10 ppt
|
||||||
# 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 10 px or 10 ppt
|
|
||||||
bindsym k resize grow height 10 px or 10 ppt
|
|
||||||
bindsym j resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym l resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# same bindings, but for the arrow keys
|
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym Down resize grow height 10 px or 10 ppt
|
|
||||||
bindsym Up resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym Right resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# back to normal: Enter or Escape
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
}
|
|
||||||
bindsym control+r mode "resize"
|
|
||||||
# }}} resizing windows #
|
# }}} resizing windows #
|
||||||
|
|
||||||
# status bar {{{ #
|
# status bar {{{ #
|
||||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
|
set $sb_font Hack Bold 16
|
||||||
bar {
|
bar {
|
||||||
font pango:System San Francisco Display 12
|
font pango:$sb_font
|
||||||
|
tray_output HDMI_0
|
||||||
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
|
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
|
||||||
tray_output primary
|
output HDMI-0
|
||||||
|
}
|
||||||
|
|
||||||
|
bar {
|
||||||
|
output DVI-I-1
|
||||||
|
tray_output HDMI_0
|
||||||
|
font pango:$sb_font
|
||||||
}
|
}
|
||||||
# }}} status bar #
|
# }}} status bar #
|
||||||
|
|
||||||
@@ -175,7 +188,7 @@ set $mod Mod1
|
|||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
font pango:System San Francisco Display 10
|
font pango:Hack 11
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
#font pango:DejaVu Sans Mono 8
|
#font pango:DejaVu Sans Mono 8
|
||||||
@@ -189,10 +202,9 @@ font pango:System San Francisco Display 10
|
|||||||
# }}} mod key/font #
|
# }}} mod key/font #
|
||||||
|
|
||||||
# media keys {{{ #
|
# media keys {{{ #
|
||||||
# Pulse Audio controls
|
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%-
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
|
||||||
|
|
||||||
# Media player controls
|
# Media player controls
|
||||||
bindsym XF86AudioPlay exec playerctl play
|
bindsym XF86AudioPlay exec playerctl play
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# properties {{{ #
|
||||||
# i3blocks config file
|
# i3blocks config file
|
||||||
#
|
#
|
||||||
# Please see man i3blocks for a complete reference!
|
# Please see man i3blocks for a complete reference!
|
||||||
@@ -19,57 +20,53 @@
|
|||||||
# short_text
|
# short_text
|
||||||
# signal
|
# signal
|
||||||
# urgent
|
# urgent
|
||||||
|
# }}} properties #
|
||||||
|
|
||||||
# Global properties
|
# Global properties {{{ #
|
||||||
#
|
|
||||||
# The top properties below are applied to every block, but can be overridden.
|
# The top properties below are applied to every block, but can be overridden.
|
||||||
# Each block command defaults to the script name to avoid boilerplate.
|
# Each block command defaults to the script name to avoid boilerplate.
|
||||||
|
align=center
|
||||||
command=/usr/share/i3blocks/$BLOCK_NAME
|
command=/usr/share/i3blocks/$BLOCK_NAME
|
||||||
separator_block_width=15
|
separator=true
|
||||||
markup=none
|
separator_block_width=20
|
||||||
|
interval=5
|
||||||
|
markup=pango
|
||||||
|
# }}} Global properties #
|
||||||
|
|
||||||
|
[time]
|
||||||
|
command=date '+%H:%M.%a-%m-%d'
|
||||||
|
interval=30
|
||||||
|
|
||||||
|
[load_average]
|
||||||
|
label=
|
||||||
|
color=#990000
|
||||||
|
# font=Hack 14
|
||||||
|
|
||||||
|
[name]
|
||||||
|
color=#D1EEEE
|
||||||
|
|
||||||
|
# unused blocks {{{ #
|
||||||
|
# [memory]
|
||||||
|
# label=
|
||||||
|
# color=#006600
|
||||||
|
|
||||||
|
# [cpu_usage -w 50 -c 80]
|
||||||
|
# label=
|
||||||
|
# min_width=CPU: 100.00%
|
||||||
|
# color=#adeaea
|
||||||
|
|
||||||
# Volume indicator
|
# Volume indicator
|
||||||
#
|
#
|
||||||
# The first parameter sets the step (and units to display)
|
# The first parameter sets the step (and units to display)
|
||||||
# The second parameter overrides the mixer selection
|
# The second parameter overrides the mixer selection
|
||||||
# See the script for details.
|
# See the script for details.
|
||||||
[volume]
|
# [volume]
|
||||||
label=VOL
|
# label=VOL
|
||||||
#label=♪
|
# #label=♪
|
||||||
instance=Master
|
# instance=Master
|
||||||
#instance=PCM
|
# #instance=PCM
|
||||||
interval=once
|
# interval=once
|
||||||
signal=10
|
# signal=10
|
||||||
|
|
||||||
# Date Time
|
|
||||||
#
|
|
||||||
[time]
|
|
||||||
label=
|
|
||||||
command=date '+%H:%M.%m-%d'
|
|
||||||
interval=5
|
|
||||||
|
|
||||||
[load_average]
|
|
||||||
label=
|
|
||||||
interval=5
|
|
||||||
|
|
||||||
# CPU usage
|
|
||||||
#
|
|
||||||
# The script may be called with -w and -c switches to specify thresholds,
|
|
||||||
# see the script for details.
|
|
||||||
[cpu_usage]
|
|
||||||
# [cpu_usage -w 50 -c 80]
|
|
||||||
label=
|
|
||||||
interval=5
|
|
||||||
min_width=CPU: 100.00%
|
|
||||||
#separator=false
|
|
||||||
|
|
||||||
# Memory usage
|
|
||||||
#
|
|
||||||
# The type defaults to "mem" if the instance is not specified.
|
|
||||||
[memory]
|
|
||||||
label=
|
|
||||||
separator=false
|
|
||||||
interval=30
|
|
||||||
|
|
||||||
# [memory]
|
# [memory]
|
||||||
# label=SWAP
|
# label=SWAP
|
||||||
@@ -109,11 +106,11 @@ interval=30
|
|||||||
# Battery indicator
|
# Battery indicator
|
||||||
#
|
#
|
||||||
# The battery instance defaults to 0.
|
# The battery instance defaults to 0.
|
||||||
[battery]
|
# [battery]
|
||||||
label=BAT
|
# label=BAT
|
||||||
#label=⚡
|
# #label=⚡
|
||||||
#instance=1
|
# #instance=1
|
||||||
interval=30
|
# interval=30
|
||||||
|
|
||||||
# Generic media player support
|
# Generic media player support
|
||||||
#
|
#
|
||||||
@@ -154,3 +151,4 @@ interval=30
|
|||||||
#instance=NUM
|
#instance=NUM
|
||||||
#interval=once
|
#interval=once
|
||||||
#signal=11
|
#signal=11
|
||||||
|
# }}} unused blocks #
|
||||||
|
|||||||
Reference in New Issue
Block a user