uh… a lot

This commit is contained in:
kageru 2018-12-05 08:21:18 +01:00
parent 17d42fcae4
commit 3d8ed5d593
11 changed files with 82 additions and 81 deletions

View File

@ -1,13 +1,14 @@
#if __has_include(".extend.Xresources") #if __has_include(".extend.Xresources")
#include ".extend.Xresources" #include ".extend.Xresources"
#endif #endif
!#include ".xsolarized"
! ^ The above lines are no comments! ! ^ The above lines are no comments!
! Leave them as they are if a file ~/.extend.Xresources is being used on your system. ! Leave them as they are if a file ~/.extend.Xresources is being used on your system.
! config can be added there or also here below. ! config can be added there or also here below.
! For comments use "!" ! For comments use "!"
Xft.dpi: 91 Xft.dpi: 109
Xft.antialias: true Xft.antialias: true
Xft.hinting: true Xft.hinting: true
Xft.rgba: rgb Xft.rgba: rgb
@ -20,6 +21,7 @@ XTerm*foreground: #e7e7e7
XTerm*pointerColor: #16A085 XTerm*pointerColor: #16A085
XTerm*faceName: Hack XTerm*faceName: Hack
XTerm*faceSize: 11 XTerm*faceSize: 11
URxvt.intensityStyles: false
! ROFI COLORS ! ROFI COLORS

View File

@ -24,7 +24,7 @@ backend = "xrender";
mark-wmwin-focused = true; mark-wmwin-focused = true;
mark-ovredir-focused = true; mark-ovredir-focused = true;
detect-client-opacity = true; detect-client-opacity = true;
unredir-if-possible = true; unredir-if-possible = false;
refresh-rate = 0; refresh-rate = 0;
vsync = "opengl"; vsync = "opengl";
dbe = false; dbe = false;

View File

@ -13,8 +13,8 @@ RIGHT osd-bar seek 5 relative+exact
# This displays statistics of the currently played file # This displays statistics of the currently played file
i show_text "${osd-ass-cc/0}{\\fs11}{\\fnSource Sans Pro}{\\bord1}{\\3c&H262626&}{\\alpha&H11}\\N{\\b1}File:{\\b0}\\h\\h${osd-ass-cc/1}${filename}${osd-ass-cc/0}\\N\\h\\h\\h\\h\\h{\\b1}${?media-title:Title:\\h\\h}{\\b0}${osd-ass-cc/1}${?media-title:${media-title}}${osd-ass-cc/0}${?chapter:\\N\\h\\h\\h\\h\\h}{\\b1}${?chapter:Chapter:\\h\\h}{\\b0}${osd-ass-cc/1}${?chapter:${chapter}}${osd-ass-cc/0}${?cache-used:\\N\\h\\h\\h\\h\\h}{\\b1}${?cache-used:Cache:\\h\\h}{\\b0}${?cache-used:${cache-used}\\h\\h+${demuxer-cache-duration} sec}\\N\\N{\\b1}Video:{\\b0}\\h\\h${video-codec}\\N\\h\\h\\h\\h\\h{\\b1}A-V:{\\b0}\\h\\h${avsync}\\N\\h\\h\\h\\h\\h{\\b1}Dropped:{\\b0}\\h\\h${drop-frame-count}\\h\\h\\h\\h\\h{\\b1}VO:{\\b0}\\h\\h${vo-drop-frame-count}\\N\\h\\h\\h\\h\\h{\\b1}FPS:{\\b0}\\h\\h${fps} (specified)\\h\\h${estimated-vf-fps} (estimated)\\N\\h\\h\\h\\h\\h{\\b1}Native Resolution:{\\b0}\\h\\h${video-params/w} x ${video-params/h}\\N\\h\\h\\h\\h\\h{\\b1}Window Scale:{\\b0}\\h\\h${window-scale}\\N\\h\\h\\h\\h\\h{\\b1}Aspect Ratio:{\\b0}\\h\\h${video-params/aspect}\\N\\h\\h\\h\\h\\h{\\b1}Pixel format:{\\b0}\\h\\h${video-params/pixelformat}\\N\\h\\h\\h\\h\\h{\\b1}Colormatrix:{\\b0}\\h\\h${video-params/colormatrix}\\N\\h\\h\\h\\h\\h{\\b1}Primaries:{\\b0}\\h\\h${video-params/primaries}\\N\\h\\h\\h\\h\\h{\\b1}Levels:{\\b0}\\h\\h${video-params/colorlevels}${?packet-video-bitrate:${!=packet-video-bitrate==0:\\N\\h\\h\\h\\h\\h}}{\\b1}${?packet-video-bitrate:${!=packet-video-bitrate==0:Bitrate:\\h\\h}}{\\b0}${?packet-video-bitrate:${!=packet-video-bitrate==0:${packet-video-bitrate} kbps}}\\N\\N{\\b1}Audio:{\\b0}\\h\\h${audio-codec}\\N\\h\\h\\h\\h\\h{\\b1}Sample Rate:{\\b0}\\h\\h${audio-params/samplerate}\\N\\h\\h\\h\\h\\h{\\b1}Channels:{\\b0}\\h\\h${audio-params/channel-count}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:\\N\\h\\h\\h\\h\\h}}{\\b1}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:Bitrate:\\h\\h}}{\\b0}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:${packet-audio-bitrate} kbps}}" 8000 i show_text "${osd-ass-cc/0}{\\fs11}{\\fnSource Sans Pro}{\\bord1}{\\3c&H262626&}{\\alpha&H11}\\N{\\b1}File:{\\b0}\\h\\h${osd-ass-cc/1}${filename}${osd-ass-cc/0}\\N\\h\\h\\h\\h\\h{\\b1}${?media-title:Title:\\h\\h}{\\b0}${osd-ass-cc/1}${?media-title:${media-title}}${osd-ass-cc/0}${?chapter:\\N\\h\\h\\h\\h\\h}{\\b1}${?chapter:Chapter:\\h\\h}{\\b0}${osd-ass-cc/1}${?chapter:${chapter}}${osd-ass-cc/0}${?cache-used:\\N\\h\\h\\h\\h\\h}{\\b1}${?cache-used:Cache:\\h\\h}{\\b0}${?cache-used:${cache-used}\\h\\h+${demuxer-cache-duration} sec}\\N\\N{\\b1}Video:{\\b0}\\h\\h${video-codec}\\N\\h\\h\\h\\h\\h{\\b1}A-V:{\\b0}\\h\\h${avsync}\\N\\h\\h\\h\\h\\h{\\b1}Dropped:{\\b0}\\h\\h${drop-frame-count}\\h\\h\\h\\h\\h{\\b1}VO:{\\b0}\\h\\h${vo-drop-frame-count}\\N\\h\\h\\h\\h\\h{\\b1}FPS:{\\b0}\\h\\h${fps} (specified)\\h\\h${estimated-vf-fps} (estimated)\\N\\h\\h\\h\\h\\h{\\b1}Native Resolution:{\\b0}\\h\\h${video-params/w} x ${video-params/h}\\N\\h\\h\\h\\h\\h{\\b1}Window Scale:{\\b0}\\h\\h${window-scale}\\N\\h\\h\\h\\h\\h{\\b1}Aspect Ratio:{\\b0}\\h\\h${video-params/aspect}\\N\\h\\h\\h\\h\\h{\\b1}Pixel format:{\\b0}\\h\\h${video-params/pixelformat}\\N\\h\\h\\h\\h\\h{\\b1}Colormatrix:{\\b0}\\h\\h${video-params/colormatrix}\\N\\h\\h\\h\\h\\h{\\b1}Primaries:{\\b0}\\h\\h${video-params/primaries}\\N\\h\\h\\h\\h\\h{\\b1}Levels:{\\b0}\\h\\h${video-params/colorlevels}${?packet-video-bitrate:${!=packet-video-bitrate==0:\\N\\h\\h\\h\\h\\h}}{\\b1}${?packet-video-bitrate:${!=packet-video-bitrate==0:Bitrate:\\h\\h}}{\\b0}${?packet-video-bitrate:${!=packet-video-bitrate==0:${packet-video-bitrate} kbps}}\\N\\N{\\b1}Audio:{\\b0}\\h\\h${audio-codec}\\N\\h\\h\\h\\h\\h{\\b1}Sample Rate:{\\b0}\\h\\h${audio-params/samplerate}\\N\\h\\h\\h\\h\\h{\\b1}Channels:{\\b0}\\h\\h${audio-params/channel-count}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:\\N\\h\\h\\h\\h\\h}}{\\b1}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:Bitrate:\\h\\h}}{\\b0}${?packet-audio-bitrate:${!=packet-audio-bitrate==0:${packet-audio-bitrate} kbps}}" 8000
h add sub-delay -0.041708333333 #h add sub-delay -0.041708333333
l add sub-delay 0.041708333333 #l add sub-delay 0.041708333333
j add sub-pos 1 j add sub-pos 1
k add sub-pos -1 k add sub-pos -1

View File

@ -1,16 +1,14 @@
#Allgemein #Allgemein
#opengl-backend=win
#vo=opengl
vo=gpu vo=gpu
#gpu-context=open-gl #gpu-context=open-gl
gpu-api=vulkan gpu-api=vulkan
#profile=opengl-hq
profile=gpu-hq profile=gpu-hq
#hwdec=auto-copy #hwdec=auto-copy
spirv-compiler=shaderc spirv-compiler=shaderc
#force-window=yes #force-window=yes
osd-playing-msg=playing: ${media-title} ${!window-scale==1.000:(scale: ${window-scale})} osd-playing-msg=playing: ${media-title} ${!window-scale==1.000:(scale: ${window-scale})}
no-audio-display
#player-operation-mode=pseudo-gui #player-operation-mode=pseudo-gui
@ -57,7 +55,7 @@ blend-subtitles=yes
#interpolation-threshold=0.01 #interpolation-threshold=0.01
video-sync=display-resample video-sync=display-resample
#interpolation=yes #interpolation=yes
#tscale=linear tscale=sphinx
#Deinterlace #Deinterlace
#vf-defaults=yadif #vf-defaults=yadif
@ -74,7 +72,7 @@ interpolation=no
#fbo-format=rgba32f # for fsrcnn #fbo-format=rgba32f # for fsrcnn
#glsl-shader="/home/kageru/.config/mpv/fsrcnn/FSRCNN_24_4_2.glsl" #glsl-shader="/home/kageru/.config/mpv/fsrcnn/FSRCNN_24_4_2.glsl"
vf=vapoursynth=~/.config/mpv/scripts/dvd.vpy vf=vapoursynth=~/.config/mpv/scripts/dvd.vpy
glsl-shader="~/.config/mpv/shaders/ravu-r2.hook" glsl-shader="~/.config/mpv/shaders/fsrcnnx3x.glsl"
glsl-shader="/home/kageru/.config/mpv/shaders/grain2.glsl" glsl-shader="/home/kageru/.config/mpv/shaders/grain2.glsl"
deband=yes deband=yes
deband-iterations=1 deband-iterations=1
@ -89,7 +87,7 @@ player-operation-mode=cplayer
osd-playing-msg= osd-playing-msg=
[sr] [sr]
glsl-shader="~/.config/mpv/shaders/ravu-r2.hook" glsl-shader="~/.config/mpv/shaders/fsrcnnx16.glsl"
[db] [db]
deband=yes deband=yes

View File

@ -8,8 +8,8 @@
;===================================================== ;=====================================================
[colors] [colors]
background = #80303031 background = #00303031
background-alt = #303031 background-alt = #00303031
foreground = #fafbfb foreground = #fafbfb
foreground-alt = #dddddd foreground-alt = #dddddd
primary = #fafbfb primary = #fafbfb
@ -23,12 +23,12 @@ override-redirect = true
wm-restack = i3 wm-restack = i3
[bar/right] [bar/right]
monitor = ${env:MONITOR:HDMI-1} monitor = ${env:MONITOR:HDMI-0}
width = 100% width = 100%
height = 48 height = 32
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 12.0 radius = 4.0
fixed-center = true fixed-center = true
bottom = true bottom = true
@ -49,7 +49,7 @@ module-margin-right = 2
; I’m a weeb who also listens to weeb music, so I needed a font with Kanji ; I’m a weeb who also listens to weeb music, so I needed a font with Kanji
font-0 = "Noto Sans CJK JP Regular:size=11;1" font-0 = "Noto Sans CJK JP Regular:size=11;1"
font-1 = "Noto Sans CJK JP Regular:size=11;1" font-1 = "Wuncon Siji:size=11;1"
font-2 = "Noto Sans CJK JP Regular:size=11;1" font-2 = "Noto Sans CJK JP Regular:size=11;1"
modules-left = i3 mpd modules-left = i3 mpd
@ -76,7 +76,7 @@ cursor-scroll = ns-normal
[bar/left] [bar/left]
monitor = ${env:MONITOR:DVI-D-0} monitor = ${env:MONITOR:DVI-D-0}
width = 100% width = 100%
height = 27 height = 22
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 6.0 radius = 6.0
@ -124,12 +124,12 @@ cursor-scroll = ns-normal
[bar/main] [bar/main]
monitor = ${env:MONITOR:DP-0} monitor = ${env:MONITOR:DP-0}
width = 100% width = 100%
height = 27 height = 28
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 6.0 radius = 2.0
fixed-center = true fixed-center = true
bottom = true bottom = false
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
@ -236,23 +236,23 @@ label-mode-foreground = #000
label-mode-background = ${colors.primary} label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor ; focused = Active workspace on focused monitor
label-focused = %index% label-focused = %name%
label-focused-background = ${module/bspwm.label-focused-background} label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline} label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding} label-focused-padding = ${module/bspwm.label-focused-padding}
; unfocused = Inactive workspace on any monitor ; unfocused = Inactive workspace on any monitor
label-unfocused = %index% label-unfocused = %name%
label-unfocused-padding = ${module/bspwm.label-occupied-padding} label-unfocused-padding = ${module/bspwm.label-occupied-padding}
; visible = Active workspace on unfocused monitor ; visible = Active workspace on unfocused monitor
label-visible = %index% label-visible = %name%
label-visible-background = ${self.label-focused-background} label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline} label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding} label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set ; urgent = Workspace with urgency hint set
label-urgent = %index% label-urgent = %name%
label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding} label-urgent-padding = ${module/bspwm.label-urgent-padding}

View File

@ -81,9 +81,9 @@ ext x?html?, has w3m, terminal = w3m "$@"
# Misc # Misc
#------------------------------------------- #-------------------------------------------
# Define the "editor" for text files as first action # Define the "editor" for text files as first action
mime ^text, label editor = $EDITOR -- "$@" mime ^text, label editor = $EDITOR -- "$@"
mime ^text, label pager = "$PAGER" -- "$@" mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@" !mime ^text, label editor, ext xml|csv|tex|py|pl|rb|js|sh|php|rs|json|go|nim = $EDITOR -- "$@"
!mime ^text, label pager, ext xml|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" !mime ^text, label pager, ext xml|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
ext 1 = man "$1" ext 1 = man "$1"

View File

@ -4,13 +4,15 @@ alias qaac_release=/mnt/hephaestos/qaac/qaac91
alias define='python /home/kageru/programming/mwebster/mwebster.py' alias define='python /home/kageru/programming/mwebster/mwebster.py'
alias nanaone-stream='mpv rtmp://live1.brb.re/live/nanaone' alias nanaone-stream='mpv rtmp://live1.brb.re/live/nanaone'
alias ls='exa' alias ls='exa'
alias up='sudo pacman -Syu'
alias in='sudo pacman -S'
alias feg=feh # don’t ask alias feg=feh # don’t ask
alias exat='exa --tree -L 3' alias exat='exa --tree -L 3'
alias animesync='python /home/kageru/programming/animesync-personal/animesync.py' alias animesync='python /home/kageru/programming/animesync-personal/animesync.py'
#alias autoremove='sudo pacman -R $(pacaur -Qdtq)' #alias autoremove='sudo pacman -R $(pacaur -Qdtq)'
export EDITOR=/usr/bin/vim export EDITOR=/usr/bin/vim
#alias nt='alacritty --working-directory $PWD &' #alias nt='alacritty --working-directory $PWD &'
alias nt='urxvt -cd $PWD &' alias nt='urxvtc -cd $PWD &'
alias ej='udisksctl power-off -b' alias ej='udisksctl power-off -b'
alias monitor_on='pactl load-module module-loopback' alias monitor_on='pactl load-module module-loopback'
alias monitor_off='pactl unload-module module-loopback' alias monitor_off='pactl unload-module module-loopback'
@ -23,7 +25,7 @@ alias la='ls -a'
alias grep="grep --colour" alias grep="grep --colour"
alias clip='xsel -b' alias clip='xsel -b'
alias bitrateviewer='wine "/home/kageru/.wine/drive_c/Program Files (x86)/BitrateViewer/BitrateViewer.exe"' alias bitrateviewer='wine "/home/kageru/.wine/drive_c/Program Files (x86)/BitrateViewer/BitrateViewer.exe"'
alias colorpicker="maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-" alias colorpicker="maim -sot 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-"
alias fixgit='eval "$(ssh-agent -s)"; ssh-add ~/.ssh/git' alias fixgit='eval "$(ssh-agent -s)"; ssh-add ~/.ssh/git'
alias sv='systemctl' alias sv='systemctl'
alias xo='xdg-open' alias xo='xdg-open'
@ -31,6 +33,10 @@ alias resetgamma='xrandr --output DVI-D-0 --gamma 1:1:1 --output HDMI-1 --gamma
alias texbuild='pdflatex -interaction=nonstopmode' alias texbuild='pdflatex -interaction=nonstopmode'
alias weather='curl wttr.in/karlsruhe -s | head -n 7 -' alias weather='curl wttr.in/karlsruhe -s | head -n 7 -'
alias weathertoday='curl wttr.in/karlsruhe -s | head -n 17 -' alias weathertoday='curl wttr.in/karlsruhe -s | head -n 17 -'
alias playdir='for f in ./*; do; mpv $f; done;'
alias mntusb='sudo mount /dev/sdi1 ~/usb'
alias mntphone='simple-mtpfs --device 1 ~/usb'
alias umubs='sudo umount ~/usb'
alias config='/usr/bin/git --git-dir=/home/kageru/dotfiles/ --work-tree=/home/kageru' alias config='/usr/bin/git --git-dir=/home/kageru/dotfiles/ --work-tree=/home/kageru'
alias -g ...='../../' #cd ... alias -g ...='../../' #cd ...

View File

@ -4,6 +4,7 @@
# Set mod key (Mod1=<Alt>, Mod4=<Super>) # Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4 set $mod Mod4
exec ~/bin/autostart
# custom # custom
@ -29,14 +30,21 @@ floating_maximum_size 1280 x 720
bindsym XF86AudioPlay exec mpc toggle bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next bindsym XF86AudioNext exec mpc next
# These are the keycodes for F13 and F14 respectively. The corsair volume controller doesn’t seem to be recognized natively, so I rebounnd the volume wheel to those keys. And yes, xinput supports F-keys from 1-24
bind 191 exec amixer -D pulse sset Master 5%+; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
bind 192 exec amixer -D pulse sset Master 5%-; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
bindsym --whole-window button10 exec mpc toggle bindsym --whole-window button10 exec mpc toggle
bindsym --whole-window button11 exec mpc next bindsym --whole-window button11 exec mpc next
bindsym XF86MonBrightnessUp exec xbacklight -inc 10; exec notify-send $(xbacklight -get) -t 300 bindsym XF86MonBrightnessUp exec xbacklight -inc 10; exec notify-send $(xbacklight -get) -t 300
bindsym XF86MonBrightnessDown exec xbacklight -dec 10; exec notify-send $(xbacklight -get) -t 300 bindsym XF86MonBrightnessDown exec xbacklight -dec 10; exec notify-send $(xbacklight -get) -t 300
# most certainly not the best way, but works on my machine™ # most certainly not the best way, but works on my machine™
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%; exec notify-send $(pactl list sinks | grep '^\s*Volume' | grep -Po '\d+%' | uniq) -t 300 bindsym $mod+z exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`"
bindsym XF86AudioLowerVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%; exec notify-send $(pactl list sinks | grep '^\s*Volume' | grep -Po '\d+%' | uniq) -t 300 bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
#bindsym XF86AudioRaiseVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%; exec notify-send $(amixer -c 1 -M -D pulse get Master | grep -o -E '[[:digit:]]+%' | uniq)
#bindsym XF86AudioLowerVolume exec pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%; exec notify-send $(pactl list sinks | grep '^\s*Volume' | grep -Po '\d+%' | uniq) -t 300
# set default desktop layout (default is tiling) # set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed> # workspace_layout tabbed <stacking|tabbed>
@ -72,9 +80,6 @@ bindsym $mod+Shift+q kill
# start program launcher # start program launcher
bindsym $mod+d exec --no-startup-id rofi -show run bindsym $mod+d exec --no-startup-id rofi -show run
# launch categorized menu
bindsym $mod+z exec --no-startup-id morc_menu
################################################################################################ ################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################ ################################################################################################
@ -91,9 +96,9 @@ bindsym $mod+Ctrl+m exec pavucontrol
bindsym $mod+Ctrl+b exec terminal -e 'bmenu' bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
bindsym $mod+F2 exec chromium bindsym $mod+F2 exec chromium
#bindsym $mod+F3 exec cool-retro-term -e ranger #bindsym $mod+F3 exec cool-retro-term -e ranger
bindsym $mod+F3 exec urxvt -e ranger bindsym $mod+F3 exec urxvtc -e ranger
bindsym $mod+Shift+F3 exec gksu pcmanfm bindsym $mod+Shift+F3 exec gksu pcmanfm
bindsym $mod+F5 exec urxvt -e 'ncmpcpp' bindsym $mod+F5 exec urxvtc -e 'ncmpcpp'
bindsym $mod+t exec --no-startup-id pkill compton bindsym $mod+t exec --no-startup-id pkill compton
bindsym $mod+Ctrl+t exec --no-startup-id compton -b bindsym $mod+Ctrl+t exec --no-startup-id compton -b
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
@ -174,24 +179,24 @@ bindsym $mod+Ctrl+Left workspace prev
# to display names or symbols instead of plain workspace numbers you can use # to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail # something like: set $ws1 1:mail
# set $ws2 2: # set $ws2 2:
set $ws1 1 set $ws1
set $ws2 2:2-main set $ws2
set $ws3 3:3-social set $ws3
set $ws4 4 set $ws4
set $ws5 5 set $ws5
set $ws6 6 set $ws6
set $ws7 7 set $ws7
set $ws8 8 set $ws8
set $ws11 11 set $ws11 十一
set $ws12 12 set $ws12 十二
set $ws13 13 set $ws13 十三
set $ws14 14 set $ws14 十四
set $ws15 15 set $ws15 十五
set $ws16 16 set $ws16 十六
set $ws17 17 set $ws17 十七
set $ws18 18 set $ws18 十八
set $ws19 19 set $ws19 十九
# default screens # default screens
@ -200,8 +205,8 @@ workspace $ws1 output DVI-D-0
workspace $ws11 output DVI-D-0 workspace $ws11 output DVI-D-0
workspace $ws2 output DP-0 workspace $ws2 output DP-0
workspace $ws12 output DP-0 workspace $ws12 output DP-0
workspace $ws3 output HDMI-1 workspace $ws3 output DVI-D-0
workspace $ws13 output HDMI-1 workspace $ws13 output DVI-D-0
workspace $ws4 output DVI-D-0 workspace $ws4 output DVI-D-0
workspace $ws18 output HDMI-0 workspace $ws18 output HDMI-0
workspace $ws19 output HDMI-0 workspace $ws19 output HDMI-0
@ -267,8 +272,6 @@ bindsym $mod+Shift+KP_7 move container to workspace $ws17; workspace $ws17
bindsym $mod+Shift+KP_8 move container to workspace $ws18; workspace $ws18 bindsym $mod+Shift+KP_8 move container to workspace $ws18; workspace $ws18
bindsym $mod+Shift+KP_9 move container to workspace $ws19; workspace $ws19 bindsym $mod+Shift+KP_9 move container to workspace $ws19; workspace $ws19
# Autostart
exec ~/bin/autostart
exec --no-startup-id i3-msg 'workspace $ws4; layout stacking; exec keepassxc; exec thunderbird; exec hexchat' exec --no-startup-id i3-msg 'workspace $ws4; layout stacking; exec keepassxc; exec thunderbird; exec hexchat'
exec_always ~/bin/restart_polybar exec_always ~/bin/restart_polybar
@ -283,6 +286,7 @@ for_window [class="Pavucontrol"] floating enable
for_window [class="(?i)virtualbox"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="mpv"] floating enable for_window [class="mpv"] floating enable
for_window [class="feh"] floating enable for_window [class="feh"] floating enable
for_window [workspace=$ws12] floating enable
# switch to workspace with urgent window automatically # switch to workspace with urgent window automatically
@ -295,17 +299,17 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+e exec i3-msg exit
# Set shut down, restart and locking features # Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system" bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
mode "$mode_system" { mode "$mode_system" {
bindsym l exec --no-startup-id i3lock -i ~/Pictures/bg.png -ut, mode "default" bindsym l exec --no-startup-id i3lock -i ~/Pictures/bg.png -t, mode "default"
bindsym s exec --no-startup-id systemctl suspend, mode "default" bindsym s exec --no-startup-id systemctl suspend -i, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default" bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default" bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id systemctl hibernate, mode "default" bindsym h exec --no-startup-id systemctl hibernate -i, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default" bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
@ -446,7 +450,7 @@ set $i3_color15 #b48ead
# } # }
#} #}
bindsym $mod+m exec "mpv --player-operation-mode=pseudo-gui -- \\"`xsel -ob`\\"" bindsym $mod+m exec "mpv --force-window=immediate --player-operation-mode=pseudo-gui --profile=encode -- \\"`xsel -ob`\\""
# Theme colors # Theme colors
# class border backgr. text indic. child_border # class border backgr. text indic. child_border
@ -464,7 +468,7 @@ client.background $i3_background
# Set inner/outer gaps # Set inner/outer gaps
gaps inner 10 gaps inner 10
gaps outer 6 gaps outer 0
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px> # gaps inner|outer current|all set|plus|minus <px>

16
.vimrc
View File

@ -1,5 +1,5 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required filetype on " required
" set the runtime path to include Vundle and initialize " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
@ -13,6 +13,7 @@ Plugin 'VundleVim/Vundle.vim'
Plugin 'zah/nim.vim' Plugin 'zah/nim.vim'
Plugin 'scrooloose/syntastic' Plugin 'scrooloose/syntastic'
Plugin 'w0ng/vim-hybrid' Plugin 'w0ng/vim-hybrid'
Plugin 'rust-lang/rust.vim'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on filetype plugin indent on
@ -33,6 +34,7 @@ set shiftwidth=4
set smartindent set smartindent
set smarttab set smarttab
set softtabstop=4 set softtabstop=4
set relativenumber
" set beam cursor in insert mode " set beam cursor in insert mode
let &t_SI = "\<esc>[5 q" let &t_SI = "\<esc>[5 q"
@ -59,15 +61,3 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0 let g:syntastic_check_on_wq = 0
" nim plugins
fun! JumpToDef()
if exists("*GotoDefinition_" . &filetype)
call GotoDefinition_{&filetype}()
else
exe "norm! \<C-]>"
endif
endf
" Jump to tag
nn <M-g> :call JumpToDef()<cr>
ino <M-g> <esc>:call JumpToDef()<cr>i

3
.zshrc
View File

@ -43,10 +43,11 @@ setopt complete_in_word
if [ ! -S ~/.ssh/ssh_auth_sock ]; then if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent` eval `ssh-agent`
ssh-add -l > /dev/null || ssh-add
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
ssh-add ~/.ssh/git ssh-add ~/.ssh/git
clear clear

View File

@ -3,14 +3,14 @@
rm -rf /home/kageru/temp/* rm -rf /home/kageru/temp/*
cp ~/webpw.kdbx /mnt/gaia/ cp ~/webpw.kdbx /mnt/gaia/
fcitx fcitx
syncthing & #syncthing &
# xsetwacom --set 12 Area -14900 0 44400 16000 # xsetwacom --set 12 Area -14900 0 44400 16000
# xrandr --fb 15360x2161 --dpi 192x192 --output DVI-D-0 --scale 2x2.0008 --pos 0x0 --panning 3840x2161+0+0 --output DP-0 --scale 2x2.0008 --panning 3840x2161+3840+0 --rate 144 --output HDMI-1 --panning 3840x2160+7680+0 --output HDMI-0 --scale 2x2.0008 --panning 3840x2161+11520+0 # xrandr --fb 15360x2161 --dpi 192x192 --output DVI-D-0 --scale 2x2.0008 --pos 0x0 --panning 3840x2161+0+0 --output DP-0 --scale 2x2.0008 --panning 3840x2161+3840+0 --rate 144 --output HDMI-1 --panning 3840x2160+7680+0 --output HDMI-0 --scale 2x2.0008 --panning 3840x2161+11520+0
xrandr --fb 7680x2160 --output DVI-D-0 --pos 0x0 --output DP-0 --mode 1920x1080 --rate 144 --right-of DVI-D-0 --output HDMI-1 --right-of DP-0 --output HDMI-0 --below DVI-D-0 xrandr --fb 8320x2160 --output DVI-D-0 --pos 0x0 --mode 1920x1080 --rate 144 --output DP-0 --mode 2560x1440 --rate 144 --right-of DVI-D-0 --output HDMI-0 --right-of DP-0 --dpi 109x109
~/bin/fixkeyboard ~/bin/fixkeyboard
~/.fehbg ~/.fehbg
xrdb ~/.Xresources
mpd mpd
redshift -t 6500:3200 -l 49:8.4 & redshift -t 6500:3200 -l 53.55:9.64 &
#pactl unload-module module-role-cork pactl unload-module module-role-cork