mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Clean dotfiles
This commit is contained in:
parent
5c2b55f13c
commit
197750ffa3
32 changed files with 123 additions and 579 deletions
|
|
@ -1,13 +0,0 @@
|
|||
insidecolor=#00000000
|
||||
ringcolor=#ffffff
|
||||
keyhlcolor=#51AFEF
|
||||
bshlcolor=#51AFEF
|
||||
separatorcolor=#51AFEF
|
||||
insidevercolor=#00000000
|
||||
insidewrongcolor=#51AFEF
|
||||
ringvercolor=#ffffff
|
||||
ringwrongcolor=#ffffff
|
||||
verifcolor=#ffffff
|
||||
timecolor=#ffffff
|
||||
datecolor=#ced4da
|
||||
loginbox=#000000
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
polybar -c ~/.config/bspwm/polybar bar&
|
||||
|
|
@ -1,24 +1,25 @@
|
|||
#!/bin/sh
|
||||
###== Function
|
||||
Run() {
|
||||
R() {
|
||||
if ! pgrep $1
|
||||
then $@& fi
|
||||
}
|
||||
|
||||
###== Autostart
|
||||
Run feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
Run sxhkd -c ~/.config/bspwm/sxhkd &
|
||||
~/.config/bspwm/bar.sh &
|
||||
Run lxsession &
|
||||
Run picom -b &
|
||||
R feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
R sxhkd -c ~/.config/bspwm/sxhkd &
|
||||
R lxsession &
|
||||
R picom -b &
|
||||
~/.config/bspwm/polybar/bar.sh &
|
||||
|
||||
###== BSPWM
|
||||
|
||||
# Workspaces
|
||||
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||
|
||||
# General
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 4
|
||||
bspc config window_gap 6
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
|
@ -33,18 +34,18 @@ bspc config presel_feedback_color "#51AFEF"
|
|||
bspc config urgent_border_color "#FF6C6B"
|
||||
|
||||
###== BSPWM Rules
|
||||
bspc rule -a Alacritty desktop='^1' focus=on follow=on
|
||||
bspc rule -a kitty desktop='^1' focus=on follow=on
|
||||
bspc rule -a firefox desktop='^2' focus=on follow=on
|
||||
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
|
||||
bspc rule -a Code desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
bspc rule -a Todoist desktop='^5' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=on
|
||||
bspc rule -a Simplenote desktop='^5' focus=on follow=on
|
||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
bspc rule -a Spotify desktop='^9' focus=on follow=on
|
||||
bspc rule -a Alacritty desktop='^1' focus=on follow=on
|
||||
bspc rule -a kitty desktop='^1' focus=on follow=on
|
||||
bspc rule -a firefox desktop='^2' focus=on follow=on
|
||||
bspc rule -a Google-chrome desktop='^2' focus=on follow=on
|
||||
bspc rule -a Code desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:nvim' desktop='^3' focus=on follow=on
|
||||
bspc rule -a '*:ranger' desktop='^4' focus=on follow=off
|
||||
bspc rule -a Thunar desktop='^4' focus=on follow=off
|
||||
bspc rule -a Todoist desktop='^5' focus=on follow=off
|
||||
bspc rule -a Joplin desktop='^5' focus=on follow=on
|
||||
bspc rule -a Simplenote desktop='^5' focus=on follow=on
|
||||
bspc rule -a discord desktop='^6' focus=off follow=off
|
||||
bspc rule -a telegram-desktop desktop='^6' focus=off follow=on
|
||||
bspc rule -a KeePassXC desktop='^7' focus=on follow=off
|
||||
bspc rule -a Spotify desktop='^9' focus=on follow=on
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
polybar bar &
|
||||
polybar -c ~/.config/bspwm/polybar/polybar bar&
|
||||
|
|
@ -57,18 +57,18 @@ ramp-volume-0 =
|
|||
|
||||
[module/weather]
|
||||
type = custom/script
|
||||
exec = python3 ~/.config/polybar/scripts/weather.py
|
||||
exec = python3 ~/.config/bspwm/polybar/scripts/weather.py
|
||||
interval = 60
|
||||
|
||||
[module/archupd]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
|
||||
exec = ~/.config/bspwm/polybar/scripts/updates-pacman-aur.sh
|
||||
interval = 60
|
||||
|
||||
[module/wifi-signal]
|
||||
type = custom/script
|
||||
label = %output:%%
|
||||
exec = ~/.config/polybar/scripts/wifi-signal.sh
|
||||
exec = ~/.config/bspwm/polybar/scripts/wifi-signal.sh
|
||||
interval = 3
|
||||
|
||||
[module/keyboard]
|
||||
|
|
@ -6,15 +6,13 @@ super + {_,shift} Return
|
|||
{kitty, \
|
||||
rofi -show drun -theme ntenV2}
|
||||
|
||||
super + shift + {w, f, e, c, v, s, z, q}
|
||||
{google-chrome-stable, \
|
||||
kitty --class ranger -e ranger, \
|
||||
kitty --class nvim -e nvim, \
|
||||
code, \
|
||||
veracrypt, \
|
||||
.applications/simplenote.appimage, \
|
||||
betterlockscreen --off 180 -t "Computer is locked" -l, \
|
||||
xkill }
|
||||
super + shift + {w, f, e, c, s, q}
|
||||
{google-chrome-stable, \
|
||||
kitty --class ranger -e ranger, \
|
||||
kitty --class nvim -e nvim, \
|
||||
code, \
|
||||
.applications/simplenote.appimage, \
|
||||
xkill }
|
||||
|
||||
super + {_,shift} Print
|
||||
{scrot -s, \
|
||||
|
|
@ -24,8 +22,8 @@ super + {equal, minus, shift+minus}
|
|||
amixer sset Master {2%+,2%-,toggle}
|
||||
|
||||
super + {Escape, ctrl+i}
|
||||
{./.script/dmenu/dmenu-power.sh, \
|
||||
./.script/dmenu/dmenu-pass.sh }
|
||||
{.config/rofi/script/powermenu.sh, \
|
||||
.config/rofi/script/passmenu.sh }
|
||||
|
||||
### == BSPWM keys
|
||||
super + q
|
||||
|
|
|
|||
|
|
@ -1,74 +0,0 @@
|
|||
[client]
|
||||
delete_feed_confirmation = True
|
||||
reload_feeds_threshold = 10
|
||||
max_episodes = -1
|
||||
retain_absent_episodes = False
|
||||
disable_vertical_borders = False
|
||||
clean_html_descriptions = True
|
||||
refresh_delay = 30
|
||||
player = #mpv
|
||||
execute_command =
|
||||
proxy_http =
|
||||
proxy_https =
|
||||
|
||||
[feeds]
|
||||
reload_on_start = False
|
||||
|
||||
[downloads]
|
||||
custom_download_dir =
|
||||
request_timeout = 3
|
||||
|
||||
|
||||
[colors]
|
||||
color_foreground = white
|
||||
color_background = default
|
||||
color_foreground_alt = black
|
||||
color_background_alt = white
|
||||
color_foreground_dim = blue
|
||||
color_foreground_status = white
|
||||
color_foreground_heading = blue
|
||||
color_foreground_dividers = white
|
||||
|
||||
|
||||
[playback]
|
||||
seek_distance_forward = 30
|
||||
seek_distance_backward = 10
|
||||
default_playback_speed = 1.0
|
||||
default_volume = 80
|
||||
volume_adjust_distance = 5
|
||||
|
||||
|
||||
[keys]
|
||||
key_help = ?
|
||||
key_exit = q
|
||||
key_add_feed = A
|
||||
key_remove = O
|
||||
key_reload = r
|
||||
key_reload_selected = R
|
||||
key_save = d
|
||||
key_delete = D
|
||||
key_up = UP
|
||||
key_right = RIGHT
|
||||
key_down = DOWN
|
||||
key_left = LEFT
|
||||
key_scroll_up = UP
|
||||
key_scroll_down = DOWN
|
||||
key_play_selected = ENTER
|
||||
key_add_selected = SPACE
|
||||
key_clear = c
|
||||
key_next = n
|
||||
key_execute = e
|
||||
key_invert = i
|
||||
key_filter = /
|
||||
key_mark_played = m
|
||||
key_pause_play = p
|
||||
key_pause_play_alt = o
|
||||
key_seek_forward = f
|
||||
key_seek_forward_alt = F
|
||||
key_seek_backward = b
|
||||
key_seek_backward_alt = B
|
||||
key_rate_increase = ]
|
||||
key_rate_decrease = [
|
||||
key_volume_increase = =
|
||||
key_volume_decrease = -
|
||||
key_show_url = u
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# [i3](https://i3wm.org)
|
||||
|
||||

|
||||
-------------------------
|
||||
|
||||
### Install
|
||||
-----------
|
||||
~~~bash
|
||||
sudo pacman -S i3-gaps polybar
|
||||
~~~
|
||||
180
config/i3/config
180
config/i3/config
|
|
@ -1,180 +0,0 @@
|
|||
############# General #############
|
||||
# Bind $MOD(super) key
|
||||
set $mod Mod4
|
||||
set $alt Mod1
|
||||
floating_modifier $mod
|
||||
|
||||
# Set font
|
||||
font monospace 10
|
||||
font pango:JetBrains Mono 10
|
||||
|
||||
# Disable window title
|
||||
default_border pixel
|
||||
new_float pixel
|
||||
|
||||
# Borders
|
||||
hide_edge_borders smart
|
||||
|
||||
############ Autostart ############
|
||||
exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||
exec_always --no-startup-id exec feh --randomize --bg-scale ~/Pictures/wallp
|
||||
exec --no-startup-id exec picom -b
|
||||
|
||||
############ Variables ###########
|
||||
set $terminal kitty
|
||||
set $browser google-chrome-stable
|
||||
set $filemanager kitty --class ranger -e ranger
|
||||
set $codeeditor kitty --class nvim -e nvim
|
||||
set $guicode code
|
||||
|
||||
############## WM keys ############
|
||||
|
||||
# Kill window
|
||||
bindsym $mod+q kill
|
||||
bindsym --release $mod+Shift+q exec xkill
|
||||
|
||||
# Restart i3wm
|
||||
bindsym $mod+Control+r restart
|
||||
|
||||
# Layout
|
||||
bindsym $mod+Control+w layout tabbed
|
||||
bindsym $mod+Control+e layout toggle split
|
||||
bindsym $mod+Shift+Tab floating toggle
|
||||
|
||||
# Split mode
|
||||
bindsym $mod+$alt+h split h
|
||||
bindsym $mod+$alt+v split v
|
||||
|
||||
# Scratchpad
|
||||
bindsym $mod+Shift+grave move scratchpad
|
||||
bindsym $mod+grave scratchpad show, floating disable
|
||||
|
||||
############## User key ###########
|
||||
|
||||
# Applications
|
||||
bindsym $mod+Return exec $terminal
|
||||
bindsym $mod+Shift+w exec $browser
|
||||
bindsym $mod+Shift+f exec $filemanager
|
||||
bindsym $mod+Shift+e exec $codeeditor
|
||||
bindsym $mod+Shift+c exec $guicode
|
||||
bindsym $mod+Shift+v exec veracrypt
|
||||
bindsym $mod+Shift+s exec ~/.applications/simplenote.appimage
|
||||
|
||||
# Menu
|
||||
bindsym $mod+Shift+Return exec rofi -show drun -theme ntenV2
|
||||
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh
|
||||
bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh
|
||||
|
||||
# Screenhot
|
||||
bindsym --release Print exec scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
||||
bindsym Shift+Print exec scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png
|
||||
|
||||
# Volume
|
||||
bindsym $mod+plus exec amixer sset Master 2%+
|
||||
bindsym $mod+minus exec amixer sset Master 2%-
|
||||
bindsym $mod+Shift+minus exec amixer sset Master toggle
|
||||
|
||||
############## GAPS ###############
|
||||
smart_gaps on
|
||||
gaps inner 3
|
||||
gaps outer 4
|
||||
|
||||
######### Window preferens ########
|
||||
assign [class="(?i)alacritty|kitty"] $ws1
|
||||
assign [class="(?i)google-chrome-stable|firefox"] $ws2
|
||||
assign [class="Code|nvim"] $ws3
|
||||
assign [class="Thunar|ranger"] $ws4
|
||||
assign [class="Joplin|Simplenote"] $ws5
|
||||
assign [class="TelegramDesktop|discord"] $ws6
|
||||
for_window [class="TelegramDesktop|discord"] layout tabbed
|
||||
assign [class="KeePassX"] $ws7
|
||||
assign [class="Spotify"] $ws9
|
||||
for_window [title="Google Tasks"] floating enable
|
||||
focus_on_window_activation focus
|
||||
|
||||
########## Change focus ###########
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+l focus right
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
########## Move window ############
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+l move right
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
########## Resize window ##########
|
||||
bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
|
||||
bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
|
||||
bindsym $mod+Control+j resize grow height 5 px or 5 ppt
|
||||
bindsym $mod+Control+Down resize grow height 5 px or 5 ppt
|
||||
bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
|
||||
bindsym $mod+Control+Up resize shrink height 5 px or 5 ppt
|
||||
bindsym $mod+Control+l resize grow width 5 px or 5 ppt
|
||||
bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
|
||||
|
||||
############ Workspaces ###########
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace $ws5
|
||||
bindsym $mod+6 workspace $ws6
|
||||
bindsym $mod+7 workspace $ws7
|
||||
bindsym $mod+8 workspace $ws8
|
||||
bindsym $mod+9 workspace $ws9
|
||||
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace $ws6
|
||||
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
|
||||
|
||||
############### Bar ###############
|
||||
bar {
|
||||
status_command i3status-rs ~/.config/i3/i3status-rs.toml
|
||||
font pango:JetBrains Mono 10
|
||||
position top
|
||||
colors {
|
||||
background #262A2B
|
||||
statusline #DFDFDF
|
||||
separator #CED4DA
|
||||
focused_workspace #008DCD #008DCD #DFDFDF
|
||||
active_workspace #262A2B #262A2B #DFDFDF
|
||||
inactive_workspace #262A2B #262A2B #DFDFDF
|
||||
urgent_workspace #FF6C6B #FF6C6B #DFDFDF
|
||||
binding_mode #2F343A #900000 #DFDFDF
|
||||
}
|
||||
}
|
||||
############## Colors #############
|
||||
client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD
|
||||
client.focused_inactive #008DCD #002b36 #DFDFDF #002b36 #002b36
|
||||
client.unfocused #262A2B #262A2B #DFDFDF #262A2B #262A2B
|
||||
client.urgent #002b36 #262A2B #FFFFFF #262A2B #262A2B
|
||||
client.placeholder #000000 #000000 #FFFFFF #000000 #000000
|
||||
client.background #FFFFFF
|
||||
|
||||
# vim: ft=i3config
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
# vim: ft=conf
|
||||
general {
|
||||
colors = false
|
||||
interval = 1
|
||||
output_format = "i3bar"
|
||||
}
|
||||
|
||||
order += "volume master"
|
||||
order += "wireless _first_"
|
||||
#order += "battery all"
|
||||
order += "tztime local"
|
||||
|
||||
volume master {
|
||||
format = " %volume"
|
||||
format_muted = " %volume"
|
||||
device = "default"
|
||||
mixer = "Master"
|
||||
mixer_idx = 2
|
||||
}
|
||||
|
||||
wireless _first_ {
|
||||
format_up = "%quality"
|
||||
format_down = "W: down"
|
||||
}
|
||||
|
||||
battery all {
|
||||
format = "%status %percentage"
|
||||
last_full_capacity = true
|
||||
format_down = "No battery"
|
||||
status_chr = ""
|
||||
status_bat = ""
|
||||
status_unk = "? UNK"
|
||||
status_full = ""
|
||||
path = "/sys/class/power_supply/BAT%d/uevent"
|
||||
low_threshold = 10
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = " %d %b %H:%M"
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
theme = "native"
|
||||
icons = "awesome5"
|
||||
|
||||
[[block]]
|
||||
block = "custom"
|
||||
command = "~/.script/kblayout"
|
||||
interval = 0
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
step_width = 2
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
device = "wlp3s0"
|
||||
format = "{signal_strength}"
|
||||
interval = 4
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
format = "%R"
|
||||
interval = 60
|
||||
48
config/kitty/kitty.conf
Normal file
48
config/kitty/kitty.conf
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
font_family Jetbrains Mono
|
||||
repaint_delay 10
|
||||
|
||||
# Cursor
|
||||
cursor #dfdfdf
|
||||
cursor_text_color #7d7d7d
|
||||
cursor_shape underline
|
||||
cursor_underline_thickness 1.3
|
||||
cursor_blink_interval 0
|
||||
|
||||
# Bell
|
||||
enable_audio_bell no
|
||||
window_alert_on_bell no
|
||||
bell_on_tab no
|
||||
|
||||
# Keyboard Shortcuts
|
||||
clear_all_shortcuts yes
|
||||
open_url_modifiers alt
|
||||
map ctrl+shift+c copy_to_clipboard
|
||||
map ctrl+shift+v paste_from_clipboard
|
||||
map ctrl+shift+u kitten unicode_input
|
||||
map alt+k scroll_line_up
|
||||
map alt+j scroll_line_down
|
||||
map ctrl+equal change_font_size all +2.0
|
||||
map ctrl+minus change_font_size all -2.0
|
||||
map ctrl+backspace change_font_size all 0
|
||||
|
||||
# Theming
|
||||
background_opacity 0.85
|
||||
background #262a2b
|
||||
foreground #ffffff
|
||||
selection_background #1F2324
|
||||
color0 #002731
|
||||
color8 #001e26
|
||||
color1 #d01b24
|
||||
color9 #bd3612
|
||||
color2 #728905
|
||||
color10 #465a61
|
||||
color3 #a57705
|
||||
color11 #52676f
|
||||
color4 #2075c7
|
||||
color12 #708183
|
||||
color5 #c61b6e
|
||||
color13 #5856b9
|
||||
color6 #0fbcf9
|
||||
color14 #4bcffa
|
||||
color7 #e9e2cb
|
||||
color15 #fcf4dc
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'Smirnov-O/nten16.vim'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'maxboisvert/vim-simple-complete'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'maxboisvert/vim-simple-complete'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
call plug#end()
|
||||
|
||||
"== General
|
||||
|
|
@ -15,7 +14,8 @@ colorscheme nten16
|
|||
set nu rnu
|
||||
|
||||
" Line wrap
|
||||
set nowrap nolinebreak
|
||||
set nolinebreak
|
||||
set nowrap
|
||||
|
||||
" Tabs
|
||||
set tabstop=4
|
||||
|
|
@ -27,7 +27,6 @@ set autoindent
|
|||
|
||||
" Status line
|
||||
set laststatus=0
|
||||
set showmode showcmd
|
||||
set ruler
|
||||
|
||||
" Scroll
|
||||
|
|
@ -66,6 +65,7 @@ set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·
|
|||
" Disable sound
|
||||
set visualbell t_vb=
|
||||
|
||||
|
||||
"== Settings for specific files
|
||||
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
|
||||
autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4
|
||||
|
|
@ -73,23 +73,25 @@ autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shi
|
|||
|
||||
|
||||
"== Aliases
|
||||
command! W :w
|
||||
command! W :w
|
||||
command! WQ :wq
|
||||
command! Wq :wq
|
||||
command! Wiki :e ~/doc/index.md
|
||||
command! Prettier :!prettier --write %
|
||||
command! ESlint :!eslint %
|
||||
command! Flake8 :!flake8 %
|
||||
command! Black :!black %
|
||||
command! AutoPep8 :!autopep8 --in-place %
|
||||
command! Prettier :!prettier % --write
|
||||
command! ESlint :!eslint %
|
||||
command! Flake8 :!flake8 %
|
||||
command! Black :!black %
|
||||
command! AutoPep8 :!autopep8 % --in-place
|
||||
|
||||
|
||||
"== Mapping
|
||||
let mapleader="'"
|
||||
|
||||
" Alternative keys
|
||||
noremap <C-s> :w<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <C-s> :w<CR>
|
||||
noremap <C-n> :tabnew<CR>
|
||||
noremap <C-f> :find<Space>
|
||||
noremap <space> :nohl<CR>
|
||||
|
||||
" Window
|
||||
noremap <C-h> :wincmd h<CR>
|
||||
|
|
@ -104,8 +106,8 @@ noremap spk :wincmd K<CR>
|
|||
noremap spl :wincmd L<CR>
|
||||
|
||||
" Tab
|
||||
noremap tn :tabnew<CR>
|
||||
noremap tc :tabclose<CR>
|
||||
noremap tn :tabnew<CR>
|
||||
noremap tc :tabclose<CR>
|
||||
noremap <A-1> :tabn 1<CR>
|
||||
noremap <A-2> :tabn 2<CR>
|
||||
noremap <A-3> :tabn 3<CR>
|
||||
|
|
@ -121,5 +123,5 @@ noremap <leader>j :bnext<CR>
|
|||
noremap <leader>k :bprev<CR>
|
||||
|
||||
" Work with system clipboard
|
||||
noremap <leader>y "*yy<CR>
|
||||
noremap <leader>p "+p<CR>
|
||||
noremap <leader>c "*yy<CR>
|
||||
noremap <leader>v "+p<CR>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
|
||||
feh --randomize --bg-scale ~/Pictures/wallp &
|
||||
lxsession &
|
||||
picom -b &
|
||||
tint2 -c ~/.config/openbox/tint2rc &
|
||||
picom -b &
|
||||
|
|
|
|||
17
config/openbox/script/volume
Executable file
17
config/openbox/script/volume
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; }
|
||||
VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)"
|
||||
|
||||
case $1 in
|
||||
percent)
|
||||
if CHK_MUTE &> /dev/null
|
||||
then
|
||||
echo ""
|
||||
else
|
||||
echo " $VOLUME%"
|
||||
fi
|
||||
;;
|
||||
up) amixer sset Master 2%+ ;;
|
||||
down) amixer sset Master 2%- ;;
|
||||
mute) amixer sset Master toggle ;;
|
||||
esac
|
||||
3
config/openbox/script/wifi-signal
Executable file
3
config/openbox/script/wifi-signal
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"
|
||||
echo " $SIGNAL%"
|
||||
|
|
@ -224,11 +224,11 @@ execp_has_icon = 0
|
|||
execp_cache_icon = 1
|
||||
execp_continuous = 0
|
||||
execp_markup = 1
|
||||
execp_lclick_command = $HOME/.script/volume mute
|
||||
execp_lclick_command = $HOME/.config/openbox/script/volume mute
|
||||
execp_rclick_command =
|
||||
execp_mclick_command =
|
||||
execp_uwheel_command = $HOME/.script/volume up
|
||||
execp_dwheel_command = $HOME/.script/volume down
|
||||
execp_uwheel_command = $HOME/.config/openbox/.script/volume up
|
||||
execp_dwheel_command = $HOME/.config/openbox/.script/volume down
|
||||
execp_font = Droid Sans Bold 8
|
||||
execp_font_color = #d1d1d1 100
|
||||
execp_padding = 8 0
|
||||
|
|
@ -240,7 +240,7 @@ execp_icon_h = 0
|
|||
#-------------------------------------
|
||||
# Executor 2
|
||||
execp = new
|
||||
execp_command = $HOME/.script/wifi-signal
|
||||
execp_command = $HOME/.config/openbox/script/wifi-signal
|
||||
execp_interval = 5
|
||||
execp_has_icon = 0
|
||||
execp_cache_icon = 1
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ inactive-opacity = 1;
|
|||
active-opacity = 1;
|
||||
frame-opacity = 1;
|
||||
inactive-opacity-override = false;
|
||||
opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];
|
||||
no-fading-openclose = true
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,117 +0,0 @@
|
|||
# vim: ft=dosini
|
||||
|
||||
[settings]
|
||||
enable-ipc = true
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
|
||||
[colors]
|
||||
background = #262A2B
|
||||
foreground = #DFDFDF
|
||||
secondary = #008DCD
|
||||
alert = #FF6C6B
|
||||
|
||||
[bar/bar]
|
||||
monitor = ${env:MONITOR_MIDDLE}
|
||||
width = 100%
|
||||
height = 24
|
||||
fixed-center = true
|
||||
wm-restack = i3
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
||||
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
||||
modules-left = i3 pacman-up window-name
|
||||
modules-right = pulseaudio weather wifi-signal keyboard time date
|
||||
tray-position = right
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state><label-mode>
|
||||
card = intel_backlight
|
||||
index-sort = false
|
||||
wrapping-scroll = false
|
||||
label-mode-padding = 1
|
||||
label-mode-background = ${colors.alert}
|
||||
|
||||
label-focused = %icon%
|
||||
label-focused-background = ${colors.secondary}
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
label-focused-padding = 1
|
||||
label-focused-underline = ${colors.alert}
|
||||
|
||||
label-unfocused = %icon%
|
||||
label-unfocused-foreground = ${colors.foreground}
|
||||
label-unfocused-padding = 1
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-foreground = ${colors.foreground}
|
||||
label-urgent-padding = 1
|
||||
label-urgent-underline = ${colors.alert}
|
||||
|
||||
label-visible = %icon%
|
||||
label-visible-background = ${colors.background}
|
||||
label-visible-foreground = ${colors.foreground}
|
||||
label-visible-padding = 1
|
||||
label-visible-underline = ${colors.background}
|
||||
|
||||
ws-icon-0 = "1;1 "
|
||||
ws-icon-1 = "2;2 "
|
||||
ws-icon-2 = "3;3 "
|
||||
ws-icon-3 = "4;4 "
|
||||
ws-icon-4 = "5;5 "
|
||||
ws-icon-5 = "6;6 "
|
||||
ws-icon-6 = "7;7 "
|
||||
ws-icon-7 = "8;8 "
|
||||
ws-icon-8 = "9;9 "
|
||||
|
||||
[module/wifi-signal]
|
||||
type = custom/script
|
||||
label = %output:%%
|
||||
exec = ~/.config/polybar/scripts/wifi-signal.sh
|
||||
interval = 3
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
interval = 2
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
label-volume = %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
label-muted =
|
||||
ramp-volume-0 =
|
||||
|
||||
[module/weather]
|
||||
type = custom/script
|
||||
exec = python3 ~/.config/polybar/scripts/weather.py
|
||||
interval = 60
|
||||
|
||||
[module/pacman-up]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
|
||||
interval = 15
|
||||
|
||||
[module/window-name]
|
||||
type = internal/xwindow
|
||||
label-maxlen = 100
|
||||
|
||||
[module/keyboard]
|
||||
type = internal/xkeyboard
|
||||
format-prefix = ""
|
||||
label-layout = %layout%
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
blacklist-2= caps lock
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 600
|
||||
date = %d.%m.%Y
|
||||
label = %date%
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
time = %H:%M
|
||||
label = %time%
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
polybar i3bar &
|
||||
17
config/rofi/script/passmenu.sh
Executable file
17
config/rofi/script/passmenu.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
shopt -s nullglob globstar
|
||||
|
||||
menucmd="rofi -dmenu"
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
password=$(printf '%s\n' "${password_files[@]}"|${menucmd} -p "Passwords" "$@")
|
||||
[[ -n $password ]] || exit
|
||||
|
||||
if [[ $typeit -eq 0 ]]; then
|
||||
pass show -c "$password" 2>/dev/null
|
||||
else
|
||||
pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } |
|
||||
xdotool type --clearmodifiers --file -
|
||||
fi
|
||||
29
config/rofi/script/powermenu.sh
Executable file
29
config/rofi/script/powermenu.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
declare options=("ShutDown
|
||||
Lock
|
||||
Logout
|
||||
Reboot")
|
||||
|
||||
menucmd="rofi -dmenu"
|
||||
choice=$(echo -e "${options[@]}"|${menucmd} -p "Power" $@)
|
||||
case "$choice" in
|
||||
"ShutDown")
|
||||
case "$(echo -e "Yes\nNo"|${menucmd} -p "ShutDown" $@)" in
|
||||
"Yes") exec systemctl poweroff ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"Lock") exec betterlockscreen --off 300 -t "Computer is lockerd" -l ;;
|
||||
"Logout")
|
||||
case "$(echo -e "Yes\nNo"|${menucmd} -p "ShutDown" $@)" in
|
||||
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"Reboot")
|
||||
case "$(echo -e "Yes\nNo"|${menucmd} -p "Reboot" $@)" in
|
||||
"Yes") exec systemctl reboot ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue