This commit is contained in:
Smirnov Olexandr 2020-12-05 23:27:37 +02:00
parent 0d2b7d6ba3
commit 7cf1432163
50 changed files with 1576 additions and 977 deletions

View file

@ -1,13 +1,12 @@
# Dotfiles <h1 align="center">~ dotfiles ~</h1>
__walpappers: [Dropbox](https://www.dropbox.com/s/yx7tsplowtyih7f/walpapper.zip?dl=0) [Google Drive](https://drive.google.com/file/d/1PX76sgLygXfo9qhsdN3cCsFuFuNKpM1y/view?usp=sharing)__
I use **rcm** for managment dotfiles
**Preparing for installation** **Preparing for installation**
~~~bash ~~~bash
git clone https://github.com/Smirnov-O/dotfiles git clone https://github.com/Smirnov-O/dotfiles
make install
sudo pacman -S i3-wm bspwm polybar dunst rofi picom feh nitrogen redshift task \ sudo pacman -S dunst rofi picom nitrogen redshift task kitty ranger htop zsh git neovim neofetch scrot yay zsh \
kitty ranger htop bash zsh git vim neofetch scrot clipboard yay bash zsh python-tldextract \
ttf-font-awesome ttf-jetbrains-mono ttf-hack ttf-font-awesome ttf-jetbrains-mono ttf-hack
yay -S ttf-weather-icons yay -S ttf-weather-icons
~~~ ~~~
@ -15,21 +14,19 @@ yay -S ttf-weather-icons
### Packages ### Packages
| Name | Description | | Name | Description |
| ------------------------------------------------------------------------ | ----------------- | | ------------------------------------------------------------------------ | ----------------- |
| `i3-wm`, `qtile` | Window Manager |
| `polybar` | Panel |
| `dunst` | Notify manager | | `dunst` | Notify manager |
| `rofi` | Program loncher | | `rofi` | Program loncher |
| `picom` | Compositor | | `picom` | Compositor |
| `qutebrowser` | Browser | | `qutebrowser` | Browser |
| `feh`, `nitrogen` | Setting wallpaper | | `nitrogen` | Setting wallpaper |
| `kitty` | Terminal | | `kitty` | Terminal |
| `ranger` | File manager | | `ranger` | File manager |
| `htop` | System motitor | | `htop` | System motitor |
| `yay` | AUR helper | | `yay` | AUR helper |
| `redshift` | Night light | | `redshift` | Night light |
| `zsh`, `bash` | Shell | | `zsh` | Shell |
| `task` | Task manager | | `task` | Task manager |
| `ttf-font-awesome`, `ttf-jetbrains-mono`, `ttf-weather-icons` `ttf-hack` | Font | | `ttf-font-awesome` `ttf-jetbrains-mono` `ttf-weather-icons` `ttf-hack` | Font |
| `arc-gtk-theme` | GTK theme | | `arc-gtk-theme` | GTK theme |
| `papirus-icon-theme` | Icon theme | | `papirus-icon-theme` | Icon theme |
| `scrot` | Screenshot tool | | `scrot` | Screenshot tool |

1
bashrc
View file

@ -3,7 +3,6 @@ PS1='\e[36m\w\e[39m '
export EDITOR='nvim' export EDITOR='nvim'
export VISUAL='emacsclient -c -a emacs' export VISUAL='emacsclient -c -a emacs'
export TERM='kitty'
alias cls='clear' alias cls='clear'
alias ls='ls --color=auto' alias ls='ls --color=auto'

View file

@ -1,16 +1,40 @@
# [Berry](https://berrywm.org) # [Berry](https://berrywm.org)
![Seceenshot](screen.png) ![Seceenshot](screen.png)
-------------------------
--- Install `sxhkd`
~~~bash
sudo pacman -S sxhkd
~~~
Install `berry` from source
~~~bash
sudo pacman -S libx11 libxft libxinerama
git clone https://github.com/JLErvin/berry
cd berry
make && sudo make install
~~~
Add berry in lightdm
~~~bash
sudo cat <<EOF > /usr/share/xsessions/berry.desktop
[Desktop Entry]
Encoding=UTF-8
Name=berry
Comment=berry - a small window manager
Exec=berry
Type=XSession
EOF
~~~
### Autostart ### Autostart
~~~bash ~~~bash
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
sxhkd -c ~/.config/berry/sxhkdrc & sxhkd -c ~/.config/berry/sxhkdrc &
picom -b &
~/.config/berry/polybar/bar.sh & ~/.config/berry/polybar/bar.sh &
nitrogen --restore & nitrogen --restore &
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" picom -b &
~~~ ~~~
### Keybindings ### Keybindings

View file

@ -1,24 +1,32 @@
#!/bin/bash #!/bin/bash
sxhkd -c ~/.config/berry/sxhkdrc &
picom -b & # ------ Autostart ------ #
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
sxhkd -c ~/.config/berry/sxhkdrc &
~/.config/berry/polybar/bar.sh & ~/.config/berry/polybar/bar.sh &
nitrogen --restore & nitrogen --restore &
picom -b &
conky &
berryc border_width 1
# ------ Berry ------ #
# Set decoration geometry
berryc border_width 0
berryc inner_border_width 1 berryc inner_border_width 1
berryc title_height 0 berryc title_height 0
berryc top_gap 0 berryc top_gap 0
# Set decoration colors
berryc focus_color 073642 berryc focus_color 073642
berryc unfocus_color 002b36 berryc unfocus_color 002b36
berryc inner_focus_color 268bd2 berryc inner_focus_color 268bd2
berryc inner_unfocus_color 002b36 berryc inner_unfocus_color 002b36
berryc text_focus_color ffffff berryc text_focus_color ffffff
berryc text_unfocus_color efefef berryc text_unfocus_color eeeeee
# Other options
berryc smart_place "true" berryc smart_place "true"
berryc draw_text "true" berryc draw_text "true"
berryc edge_lock "true" berryc edge_lock "false"
berryc set_font "Jetbrains Mono" berryc set_font "Dina-9"

View file

@ -32,7 +32,7 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
modules-center = t modules-left = t
tray-position = center tray-position = center
[module/backlight] [module/backlight]

View file

@ -1,22 +0,0 @@
#source ~/.env
set PATH $PATH ~/.local/bin
set fish_greeting
### VARIABLES ###
export EDITOR="nvim"
export VISUAL="nvim"
export TERM="kitty"
### ALIASES ###
alias cls='clear'
alias :q='exit'
alias ..='cd ..'
alias ...='cd ../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'
alias tobash="chsh -s /bin/bash && echo 'Now log out.'"
alias tozsh="chsh -s /bin/zsh && echo 'Now log out.'"
alias tofish="chsh -s /bin/fish && echo 'Now log out.'"

View file

@ -1 +0,0 @@
/home/sasha/.config//omf/themes/scyanm/fish_prompt.fish

View file

@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1 fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46 sort_key=38
sort_direction=1 sort_direction=1
hide_threads=0 hide_threads=0
hide_kernel_threads=1 hide_kernel_threads=1

View file

@ -1,21 +1,26 @@
# [i3](https://i3wm.org) # [i3](https://i3wm.org)
![Seceenshot](screen.png) ![Seceenshot](screen.png)
---- ----
### Install
-----------
~~~bash
sudo pacman -S i3-gaps polybar
~~~
**Mod key:** `super(win)` **Mod key:** `super(win)`
**Font:** `monospace 10`, `JetBrains Mono 10` **Font:** `monospace 10`, `JetBrains Mono 10`
### Auttostart ### Auttostart
-------------- --------------
~~~bash ~~~bash
picom -b
nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_pass> name net nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_pass> name net
redshift-gtk
nitrogen --restore
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
org.telegram.desktop org.telegram.desktop
nitrogen --restore
redshift-gtk
picom -b
~~~ ~~~
### Variables ### Variables
@ -23,9 +28,9 @@ org.telegram.desktop
~~~i3 ~~~i3
set $terminal kitty set $terminal kitty
set $browser qutebwoser set $browser qutebwoser
set $filemanager pcmanfm
~~~ ~~~
### Keybindings ### Keybindings
--------------- ---------------

View file

@ -17,11 +17,12 @@ hide_edge_borders smart
############ Variables ########### ############ Variables ###########
set $terminal kitty set $terminal kitty
set $browser qutebrowser set $browser firefox
set $filemanager pcmanfm
############ Autostart ############ ############ Autostart ############
exec --no-startup-id exec picom -b exec --no-startup-id exec picom -b
exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_password> name net exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net
exec --no-startup-id exec redshift-gtk exec --no-startup-id exec redshift-gtk
exec --no-startup-id exec nitrogen --restore exec --no-startup-id exec nitrogen --restore
exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
@ -42,8 +43,6 @@ bindsym $mod+Control+r restart
bindsym $mod+a focus parent bindsym $mod+a focus parent
# Floating window # Floating window
bindsym $mod+Shift+space floating toggle bindsym $mod+Shift+space floating toggle
# Fullscreen mode
bindsym $mod+F11 fullscreen toggle
# Splits # Splits
bindsym $mod+b split h bindsym $mod+b split h
bindsym $mod+v split v bindsym $mod+v split v
@ -55,7 +54,6 @@ bindsym $mod+e layout toggle split
bindsym $mod+Shift+grave move scratchpad bindsym $mod+Shift+grave move scratchpad
bindsym $mod+grave scratchpad show, floating disable bindsym $mod+grave scratchpad show, floating disable
### Launchers ### Launchers
bindsym $mod+p exec "dmenu_run -h 24 -p Run" bindsym $mod+p exec "dmenu_run -h 24 -p Run"
bindsym $mod+Shift+Return exec "rofi -show drun -drun-display-format '{name}'" bindsym $mod+Shift+Return exec "rofi -show drun -drun-display-format '{name}'"
@ -63,13 +61,15 @@ bindsym $mod+Escape exec "~/.script/dmenu/dmenu-power.sh"
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
bindsym $alt+Tab exec "rofi -show window -show-icons" bindsym $alt+Tab exec "rofi -show window -show-icons"
bindsym $mod+$alt+t exec $terminal nvim .todo
### Applications ### Applications
bindsym $mod+Return exec $terminal bindsym $mod+Return exec $terminal
bindsym $mod+F2 exec $browser bindsym $mod+F2 exec $browser
bindsym $mod+F3 exec gnvim
bindsym $mod+F4 exec $filemanager
bindsym --release $mod+Shift+Escape exec xkill bindsym --release $mod+Shift+Escape exec xkill
bindsym $mod+$alt+t exec $terminal -e "nvim ~/.todo"
### Sceenshot ### Sceenshot

View file

@ -1,6 +1,5 @@
#: MOD # MOD
#kitty_mod ctrl+shift clear_all_shortcuts yes
clear_all_shortcuts no
# Font # Font
font_family Jetbrains Mono font_family Jetbrains Mono
@ -41,7 +40,6 @@ touch_scroll_multiplier 1.0
mouse_hide_wait 2.5 mouse_hide_wait 2.5
url_color #4ecdc4 url_color #4ecdc4
url_style curly url_style curly
open_url_modifiers kitty_mod open_url_modifiers kitty_mod
open_url_with default open_url_with default
url_prefixes http https file ftp url_prefixes http https file ftp
@ -66,47 +64,28 @@ initial_window_width 640
initial_window_height 480 initial_window_height 480
enabled_layouts * enabled_layouts *
window_resize_step_cells 2 # Keyboard Shortcuts
window_resize_step_lines 2 map ctrl+shift+c copy_to_clipboard
window_border_width 1.0 map ctrl+shift+v paste_from_clipboard
draw_minimal_borders no map shift+insert paste_from_selection
window_margin_width 0.0 map ctrl+shift+u kitten unicode_input
single_window_margin_width -1000.0 map shift+up scroll_line_up
window_padding_width 0.0 map shift+down scroll_line_down
map shift+page_up scroll_page_up
map shift+page_down scroll_page_down
map shift+home scroll_home
map shift+end scroll_end
map ctrl+shift+h show_scrollback
map ctrl+shift+. set_tab_title
map alt+equal change_font_size all +2.0
map alt+minus change_font_size all -2.0
map alt+ctrl+backspace change_font_size all 0
placement_strategy center
active_border_color #073642
inactive_border_color #292f36
bell_border_color #ff5a00
inactive_text_alpha 1.0
hide_window_decorations no
resize_debounce_time 0.1
resize_draw_strategy static
resize_in_steps no
# Tabs
tab_bar_edge bottom
tab_bar_margin_width 0.0
tab_bar_style powerline
tab_bar_min_tabs 2
tab_switch_strategy previous
tab_fade 0.25 0.5 0.75 1
tab_separator "┇"
tab_title_template "{title}"
tab_bar_background none
active_tab_title_template none
active_tab_foreground #dfdfdf
active_tab_background #073642
active_tab_font_style bold-italic
inactive_tab_foreground #dfdfdf
inactive_tab_background #292f36
inactive_tab_font_style normal
# Theming # Theming
foreground #dfdfdf foreground #dfdfdf
#background_opacity 0.85 background_opacity 0.85
background_opacity 1 #background_opacity 1
background_image none background_image none
background_image_layout tiled background_image_layout tiled
background_image_linear no background_image_linear no
@ -115,52 +94,10 @@ background_tint 0.0
dim_opacity 0.75 dim_opacity 0.75
selection_foreground #edebd7 selection_foreground #edebd7
selection_background #073642 selection_background #073642
background #262a3b
# Keyboard Shortcuts foreground #ffffff
map ctrl+shift+c copy_to_clipboard cursorColor #d2dae2
map ctrl+shift+v paste_from_clipboard selection_background #262a3b
map shift+insert paste_from_selection
map kitty_mod+o pass_selection_to_program
map shift+up scroll_line_up
map shift+down scroll_line_down
map shift+page_up scroll_page_up
map shift+page_down scroll_page_down
map shift+home scroll_home
map shift+end scroll_end
map ctrl+shift+h show_scrollback
map alt+r start_resizing_window
map ctrl+shift+l next_tab
map ctrl+shift+h previous_tab
map ctrl+shift+t new_tab
map alt+q close_tab
map ctrl+alt+. set_tab_title
map alt+1 first_window
map alt+2 second_window
map alt+3 third_window
map alt+4 fourth_window
map alt+5 fifth_window
map alt+6 sixth_window
map alt+7 seventh_window
map alt+8 eighth_window
map alt+9 ninth_window
map alt+0 tenth_window
# Font Size
map alt+equal change_font_size all +2.0
map alt+minus change_font_size all -2.0
map alt+ctrl+backspace change_font_size all 0
# Other
map f11 toggle_fullscreen
map ctrl+shift+f10 toggle_maximized
map ctrl+shift+u kitten unicode_input
map ctrl+shift+f2 edit_config_file
background #002B36
foreground #d2dae2
selection_background #002731
selection_foreground #edebd7 selection_foreground #edebd7
color0 #002731 color0 #002731
color8 #001e26 color8 #001e26
@ -174,7 +111,7 @@ color4 #2075c7
color12 #708183 color12 #708183
color5 #c61b6e color5 #c61b6e
color13 #5856b9 color13 #5856b9
color6 #259185 color6 #0fbcf9
color14 #81908f color14 #4bcffa
color7 #e9e2cb color7 #e9e2cb
color15 #fcf4dc color15 #fcf4dc

View file

@ -1,5 +1,6 @@
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'overcache/NeoSolarized' Plug 'overcache/NeoSolarized'
Plug 'ericbn/vim-solarized'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
Plug 'iamcco/markdown-preview.nvim' Plug 'iamcco/markdown-preview.nvim'
@ -16,12 +17,15 @@ call plug#begin('~/.vim/plugged')
" Language support " Language support
Plug 'pangloss/vim-javascript', { 'for': 'javascript' } Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
Plug 'PotatoesMaster/i3-vim-syntax' Plug 'pearofducks/ansible-vim', { 'for': 'ansible' }
Plug 'kovetskiy/sxhkd-vim' Plug 'PotatoesMaster/i3-vim-syntax', { 'for': 'i3' }
Plug 'kovetskiy/sxhkd-vim', { 'for': 'sxhkd' }
Plug 'vim-python/python-syntax', { 'for': 'python' } Plug 'vim-python/python-syntax', { 'for': 'python' }
Plug 'mattn/emmet-vim', { 'on': 'Emmet' } Plug 'mattn/emmet-vim', { 'on': 'Emmet' }
Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' } Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' }
Plug 'dag/vim-fish', { 'for': 'fish' } Plug 'dag/vim-fish', { 'for': 'fish' }
Plug 'ocaml/vim-ocaml', { 'for': 'ocaml' }
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'ap/vim-css-color' Plug 'ap/vim-css-color'
call plug#end() call plug#end()
@ -101,7 +105,12 @@ inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
""""""""""""""""""""""""""" """""""""""""""""""""""""""
"""""""" Easymotion """"""" """"""""" Markdown """"""""
let g:vim_markdown_folding_disabled = 1
"""""""""""""""""""""""""
"""""" Easymotion """""""""
let g:EasyMotion_do_mapping = 0 let g:EasyMotion_do_mapping = 0
let g:EasyMotion_smartcase = 1 let g:EasyMotion_smartcase = 1
nmap f <Plug>(easymotion-s) nmap f <Plug>(easymotion-s)
@ -110,9 +119,7 @@ nmap F <Plug>(easymotion-overwin-line)
nmap s <Plug>(easymotion-overwin-f2) nmap s <Plug>(easymotion-overwin-f2)
""""""""""""""""""""""""""" """""""""""""""""""""""""""
"""" MarkDown Previw """"""
let g:mkdp_path_to_chrome = "/usr/bin/qutebrowser"
"""""""""""""""""""""""""""
" ============ " ============
" == Maping == " == Maping ==
@ -144,3 +151,6 @@ noremap <leader>8 :tabn 8<CR>
noremap <leader>9 :tabn 9<CR> noremap <leader>9 :tabn 9<CR>
noremap <leader>n :bnext<CR> noremap <leader>n :bnext<CR>
noremap <leader>p :bprev<CR> noremap <leader>p :bprev<CR>
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

12
config/openbox/README.md Normal file
View file

@ -0,0 +1,12 @@
# Openbox
![Screenhot](screen.png)
------------------------
### Install openbox, panel and applet(s)
~~~bash
sudo pacman -S openbox obconf volumeicon network-manager-applet xfce4-clipman-plugin
yay -S fbxkb
~~~
### Hotkeys
| Key | Aсt |

7
config/openbox/autostart Normal file
View file

@ -0,0 +1,7 @@
tint2 &
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net &
picom -b &
nitrogen --restore &
volumeicon &

80
config/openbox/menu.xml Normal file
View file

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://openbox.org/">
<menu id="root-menu" label="Applications">
<separator label="Applications"/>
<menu id="0.405674220369296" label="Accessories">
<item label="PCManFM"><action name="Execute"><command><![CDATA[pcmanfm]]></command></action></item>
<item label="Mousepad"><action name="Execute"><command><![CDATA[mousepad]]></command></action></item>
<item label="Pamac"><action name="Execute"><command><![CDATA[pamac-manager]]></command></action></item>
<item label="Nitrogen"><action name="Execute"><command><![CDATA[nitrogen]]></command></action></item>
<item label="Notable"><action name="Execute"><command><![CDATA[env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/notable_notable.desktop /var/lib/snapd/snap/bin/notable]]></command></action></item>
<item label="Redshift"><action name="Execute"><command><![CDATA[redshift-gtk]]></command></action></item>
<item label="Simplenote"><action name="Execute"><command><![CDATA[/home/sasha/Applications/Simplenote-linux-2.1.0-x86_64_4a6fa296f990b744d09ef7a1fe75feb6.AppImage]]></command></action></item>
<item label="Xarchiver"><action name="Execute"><command><![CDATA[xarchiver]]></command></action></item>
</menu>
<menu id="0.215672013905959" label="Development">
<item label="Emacs"><action name="Execute"><command><![CDATA[emacs]]></command></action></item>
<item label="Neovim-Qt"><action name="Execute"><command><![CDATA[nvim-qt --]]></command></action></item>
<item label="GNvim"><action name="Execute"><command><![CDATA[/usr/bin/gnvim --]]></command></action></item>
</menu>
<menu id="0.084616012728425" label="Games">
<item label="Lunar Client"><action name="Execute"><command><![CDATA["/home/sasha/Applications/Lunar Client-2.4.0_08012df2221388fd053d8e8f56cc0c59.AppImage"]]></command></action></item>
<item label="Minecraft Launcher"><action name="Execute"><command><![CDATA["vblank_mode=0 /opt/minecraft-launcher/minecraft-launcher"]]></command></action></item>
<item label="Quadrapassel"><action name="Execute"><command><![CDATA[quadrapassel]]></command></action></item>
<item label="Steam"><action name="Execute"><command><![CDATA[/usr/bin/steam-runtime]]></command></action></item>
</menu>
<menu id="0.786885521037295" label="Graphics">
<item label="Figma"><action name="Execute"><command><![CDATA[/home/sasha/Applications/figma-linux-0.6.3_532491965e569195382ee0677eaa3dcd.appimage]]></command></action></item>
<item label="GIMP"><action name="Execute"><command><![CDATA[gimp-2.10]]></command></action></item>
<item label="MyPaint"><action name="Execute"><command><![CDATA[mypaint]]></command></action></item>
</menu>
<menu id="0.633873621685765" label="Multimedia">
<item label="MPV"><action name="Execute"><command><![CDATA[mpv --player-operation-mode=pseudo-gui --]]></command></action></item>
<item label="SimpleScreenRecorder"><action name="Execute"><command><![CDATA[simplescreenrecorder --logfile]]></command></action></item>
</menu>
<menu id="0.327383202637375" label="Network">
<item label="Firefox"><action name="Execute"><command><![CDATA[/usr/lib/firefox/firefox]]></command></action></item>
<item label="qutebrowser"><action name="Execute"><command><![CDATA[qutebrowser]]></command></action></item>
<item label="Chromium"><action name="Execute"><command><![CDATA[/usr/bin/chromium]]></command></action></item>
<item label="Discord"><action name="Execute"><command><![CDATA[/usr/bin/discord]]></command></action></item>
<item label="Telegram"><action name="Execute"><command><![CDATA[/var/lib/flatpak/exports/bin/org.telegram.desktop]]></command></action></item>
<item label="Dropbox"><action name="Execute"><command><![CDATA[dropbox]]></command></action></item>
<item label="FileZilla"><action name="Execute"><command><![CDATA[filezilla]]></command></action></item>
<item label="Transmission"><action name="Execute"><command><![CDATA[transmission-gtk]]></command></action></item>
</menu>
<menu id="0.541142473503974" label="Office">
<item label="LibreOffice Base"><action name="Execute"><command><![CDATA[libreoffice --base]]></command></action></item>
<item label="LibreOffice Calc"><action name="Execute"><command><![CDATA[libreoffice --calc]]></command></action></item>
<item label="LibreOffice Draw"><action name="Execute"><command><![CDATA[libreoffice --draw]]></command></action></item>
<item label="LibreOffice Impress"><action name="Execute"><command><![CDATA[libreoffice --impress]]></command></action></item>
<item label="LibreOffice Math"><action name="Execute"><command><![CDATA[libreoffice --math]]></command></action></item>
<item label="LibreOffice Writer"><action name="Execute"><command><![CDATA[libreoffice --writer]]></command></action></item>
<item label="LibreOffice"><action name="Execute"><command><![CDATA[libreoffice]]></command></action></item>
<item label="Zathura"><action name="Execute"><command><![CDATA[zathura]]></command></action></item>
</menu>
<menu id="0.810434981939043" label="Settings">
<item label="AppImageLauncher Settings"><action name="Execute"><command><![CDATA[AppImageLauncherSettings]]></command></action></item>
<item label="LAappearance"><action name="Execute"><command><![CDATA[lxappearance]]></command></action></item>
<item label="Kvantum Manager"><action name="Execute"><command><![CDATA[kvantummanager]]></command></action></item>
<item label="Qt5 Settings"><action name="Execute"><command><![CDATA[qt5ct]]></command></action></item>
<item label="Manjaro Notifier Settings"><action name="Execute"><command><![CDATA[msm_notifier --settings]]></command></action></item>
<item label="Manjaro Settings Manager"><action name="Execute"><command><![CDATA[manjaro-settings-manager]]></command></action></item>
<item label="NVIDIA X Server Settings"><action name="Execute"><command><![CDATA[/usr/bin/nvidia-settings]]></command></action></item>
<item label="Openbox Configuration Manager"><action name="Execute"><command><![CDATA[obconf]]></command></action></item>
<item label="Tint2 Settings"><action name="Execute"><command><![CDATA[tint2conf]]></command></action></item>
</menu>
<menu id="0.568595617369965" label="System">
<item label="Alacritty"><action name="Execute"><command><![CDATA[alacritty]]></command></action></item>
<item label="BleachBit"><action name="Execute"><command><![CDATA[bleachbit]]></command></action></item>
<item label="GParted"><action name="Execute"><command><![CDATA[/usr/bin/gparted]]></command></action></item>
<item label="Htop"><action name="Execute"><command><![CDATA[xterm -e 'htop']]></command></action></item>
<item label="Kitty"><action name="Execute"><command><![CDATA[kitty]]></command></action></item>
<item label="nnn"><action name="Execute"><command><![CDATA[xterm -e 'nnn']]></command></action></item>
<item label="VirtualBox"><action name="Execute"><command><![CDATA[VirtualBox]]></command></action></item>
<item label="Ranger"><action name="Execute"><command><![CDATA[xterm -e 'ranger']]></command></action></item>
<item label="Termite"><action name="Execute"><command><![CDATA[termite]]></command></action></item>
<item label="Virt-Manager"><action name="Execute"><command><![CDATA[virt-manager]]></command></action></item>
<item label="WoeUSB"><action name="Execute"><command><![CDATA[woeusbgui]]></command></action></item>
</openbox_menu>

640
config/openbox/rc.xml Normal file
View file

@ -0,0 +1,640 @@
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<followMouse>no</followMouse>
<focusLast>yes</focusLast>
<underMouse>no</underMouse>
<focusDelay>200</focusDelay>
<raiseOnFocus>no</raiseOnFocus>
</focus>
<placement>
<policy>Smart</policy>
<center>yes</center>
<monitor>Primary</monitor>
<primaryMonitor>1</primaryMonitor>
</placement>
<theme>
<name>SolArc-Dark</name>
<titleLayout>CIMLSN</titleLayout>
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>sans</name>
<size>8</size>
<weight>bold</weight>
<slant>normal</slant>
</font>
<font place="InactiveWindow">
<name>sans</name>
<size>8</size>
<weight>bold</weight>
<slant>normal</slant>
</font>
<font place="MenuHeader">
<name>Sans</name>
<size>12</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuItem">
<name>Sans</name>
<size>10</size>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
<font place="ActiveOnScreenDisplay">
<name>Sans</name>
<size>8</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="InactiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<weight>bold</weight>
<slant>normal</slant>
</font>
</theme>
<desktops>
<number>9</number>
<firstdesk>1</firstdesk>
<names>
<name>1</name>
<name>2</name>
<name>3</name>
<name>4</name>
<name>5</name>
<name>6</name>
<name>7</name>
<name>8</name>
<name>9</name>
</names>
<popupTime>875</popupTime>
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<popupPosition>Center</popupPosition>
<popupFixedPosition>
<x>10</x>
<y>10</y>
</popupFixedPosition>
</resize>
<margins>
<top>0</top>
<bottom>26</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>TopLeft</position>
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<direction>Vertical</direction>
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<showDelay>300</showDelay>
<moveButton>Middle</moveButton>
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<keybind key="C-A-Left">
<action name="GoToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Right">
<action name="GoToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Up">
<action name="GoToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Down">
<action name="GoToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktop">
<to>left</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop">
<to>right</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop">
<to>up</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop">
<to>down</to>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-Right">
<action name="UnmaximizeFull"/>
<action name="GrowToEdgeEast"/>
</keybind>
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="GrowToEdgeWest"/>
</keybind>
<keybind key="W-Down">
<action name="UnmaximizeFull"/>
<action name="GrowToEdgeSouth"/>
</keybind>
<keybind key="W-Up">
<action name="UnmaximizeFull"/>
<action name="GrowToEdgeNorth"/>
</keybind>
<!-- Keybindings for switching workspaces -->
<keybind key="W-1">
<action name="GoToDesktop">
<to>1</to>
</action>
</keybind>
<keybind key="W-2">
<action name="GoToDesktop">
<to>2</to>
</action>
</keybind>
<keybind key="W-3">
<action name="GoToDesktop">
<to>3</to>
</action>
</keybind>
<keybind key="W-4">
<action name="GoToDesktop">
<to>4</to>
</action>
</keybind>
<keybind key="W-5">
<action name="GoToDesktop">
<to>5</to>
</action>
</keybind>
<keybind key="W-6">
<action name="GoToDesktop">
<to>6</to>
</action>
</keybind>
<keybind key="W-7">
<action name="GoToDesktop">
<to>7</to>
</action>
</keybind>
<keybind key="W-8">
<action name="GoToDesktop">
<to>8</to>
</action>
</keybind>
<keybind key="W-9">
<action name="GoToDesktop">
<to>9</to>
</action>
</keybind>
<!-- Keybindings for windows -->
<keybind key="W-q">
<action name="Close"/>
</keybind>
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Down">
<action name="Iconify"/>
</keybind>
<keybind key="A-Up">
<action name="ToggleMaximize"/>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<!-- Keybindings for launching terminal -->
<keybind key="W-Return">
<action name="Execute">
<command>kitty</command>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-S-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<!-- Keybindings for important applications -->
<keybind key="W-S-apostrophe">
<action name="Execute">
<command>dmenu_run -h 26 -b -p Run</command>
</action>
</keybind>
<keybind key="W-S-Return">
<action name="Execute">
<command>i3-dmenu-desktop --dmenu="dmenu -h 26 -b"</command>
</action>
</keybind>
<keybind key="W-C-i">
<action name="Execute">
<command>passmenu -b -h 26 -p Password</command>
</action>
</keybind>
<keybind key="W-C-u">
<action name="Execute">
<command>~/.script/dmenu/dmenu-config-edit.sh -h 26 -b</command>
</action>
</keybind>
<keybind key="W-Escape">
<action name="Execute">
<command>~/.script/dmenu/dmenu-power.sh -h 26 -b</command>
</action>
</keybind>
<keybind key="W-F2">
<action name="Execute">
<command>firefox</command>
</action>
</keybind>
<keybind key="W-F4">
<action name="Execute">
<command>pcmanfm</command>
</action>
</keybind>
<keybind key="S-W-Escape">
<action name="Execute">
<command>xkill</command>
</action>
</keybind>
<keybind key="W-l">
<action name="Execute">
<command>i3lock</command>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<doubleClickTime>500</doubleClickTime>
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<context name="Frame">
<mousebind button="W-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="W-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="W-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="W-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="W-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="W-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="W-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="W-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="C-W-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="C-W-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="W-S-Up" action="Click">
<action name="SendToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="W-S-Down" action="Click">
<action name="SendToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximize">
<direction>vertical</direction>
</action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximize">
<direction>horizontal</direction>
</action>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="W-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="W-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="C-W-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="C-W-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="W-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="W-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
</mouse>
<menu>
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<middle>no</middle>
<submenuShowDelay>100</submenuShowDelay>
<submenuHideDelay>400</submenuHideDelay>
<showIcons>yes</showIcons>
<manageDesktops>yes</manageDesktops>
</menu>
<applications>
</applications>
</openbox_config>

BIN
config/openbox/screen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -3,36 +3,32 @@ dropdown_menu = { shadow = false; };
popup_menu = { shadow = false; }; popup_menu = { shadow = false; };
utility = { shadow = false; }; utility = { shadow = false; };
shadow = true; shadow = true;
shadow-radius = 11; shadow-radius = 15;
shadow-offset-x = -7; shadow-offset-x = -7;
shadow-offset-y = -7; shadow-offset-y = -7;
shadow-exclude = [ shadow-exclude = [
"override_redirect",
"class_g = 'Firefox' && argb", "class_g = 'Firefox' && argb",
"name = 'Notification'",
"class_g = 'Polybar'" "class_g = 'Polybar'"
]; ];
############ Fading ########### ############ Fading ###########
fading = true; fading = false;
fade-in-step = 0.03; fade-in-step = 0.03;
fade-out-step = 0.03; fade-out-step = 0.03;
##### Transparency/Opacity #### ##### Transparency/Opacity ####
#inactive-opacity = 0.8;
inactive-opacity = 1; inactive-opacity = 1;
frame-opacity = 0.7; frame-opacity = 0.7;
inactive-opacity-override = false; inactive-opacity-override = false;
#inactive-opacity-override = true;
focus-exclude = []; focus-exclude = [];
#no-fading-openclose = true opacity-exclude = [ "class_g = 'openbox'" ];
opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];
no-fading-openclose = true
##### Background-Blurring ##### ##### Background-Blurring #####
blur-kern = "3x3box"; blur-kern = "3x3box";
blur-background-exclude = [ blur-background-exclude = [];
"window_type = 'desktop'"
];
####### General Settings ###### ####### General Settings ######

View file

@ -3,10 +3,16 @@ pseudo-transparency = true
[colors] [colors]
; Solarized ======== ; Solarized ========
background = #002B36 ;background = #002B36
foreground = #dfdfdf ;foreground = #dfdfdf
secondary = #073642 ;secondary = #073642
alert = #268bd2 ;alert = #268bd2
; Smirnov-O Sheme ==
background = #262A2B
foreground = #ffffff
secondary = #111B1A
alert = #008dcd
; Nord ============= ; Nord =============
;background = #2E3440 ;background = #2E3440
@ -21,6 +27,7 @@ height = 24
fixed-center = true fixed-center = true
wm-restack = i3 wm-restack = i3
;override-redirect = true
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
@ -28,6 +35,14 @@ foreground = ${colors.foreground}
line-size = 3 line-size = 3
line-color = #000000 line-color = #000000
#padding-left = 2
#padding-right = 2
#radius = 6.0
#border-left-size = 0.2%
#border-top-size = 0.2%
#border-right-size = 0.2%
module-margin-left = 1 module-margin-left = 1
module-margin-right = 1 module-margin-right = 1
@ -35,11 +50,14 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
font-2 = Weather Icons:size=7;2 font-2 = Weather Icons:size=7;2
modules-left = i3 title modules-left = i3
modules-right = keyboard pulseaudio backlight wifi-signal date time modules-right = keyboard pulseaudio backlight wifi-signal time
tray-position = right tray-position = right
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]
screenchange-reload = true
[module/i3] [module/i3]
type = internal/i3 type = internal/i3
format = <label-state><label-mode> format = <label-state><label-mode>
@ -108,6 +126,16 @@ exec = ~/.config/polybar/scripts/wifi-signal.sh
interval = 3.0 interval = 3.0
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
mount-1 = /home
label-mounted =  %mountpoint%: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground}
[module/pulseaudio] [module/pulseaudio]
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>
@ -122,6 +150,21 @@ ramp-volume-3 = 
ramp-volume-4 =  ramp-volume-4 = 
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
label =  CPU %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
label =  MEM %percentage_used%%
[module/weather] [module/weather]
type = custom/script type = custom/script
exec = python3 ~/.config/polybar/scripts/weather.py exec = python3 ~/.config/polybar/scripts/weather.py
@ -129,6 +172,13 @@ interval = 60
label-font = 1 label-font = 1
[module/spotify]
type = custom/script
interval = 1
format = <label>
exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'
format-underline = ${colors.alert}
[module/updates-pacman] [module/updates-pacman]
type = custom/script type = custom/script
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
@ -146,6 +196,14 @@ blacklist-1 = scroll lock
blacklist-2= caps lock blacklist-2= caps lock
[module/microphone]
type = custom/script
label = %output:0:40:...%
exec = ~/.config/polybar/scripts/microphone.sh  
click-left = ~/.config/polybar/scripts/microphone.sh --click
interval = 0
[module/sp2] [module/sp2]
type = custom/text type = custom/text
content = "┇" content = "┇"
@ -167,7 +225,13 @@ label =  %time%
[module/title] [module/title]
type = internal/xwindow type = internal/xwindow
label = %title% label = %title:0:50:...%
format-padding = 4
label-empty = label-empty =
label-maxlen = 50 label-maxlen = 50
[module/clipmenu]
type = custom/text
content = ""
click-left = "CM_LAUNCHER=rofi clipmenu"
interval = 0

View file

@ -1,21 +0,0 @@
#!/bin/bash
MICSYMBOL=$1
MICMUTEDSYMBOL=$2
case "$1" in
--click)
amixer -D pulse sset Capture toggle
;;
*)
;;
esac
STATUS=$(amixer -D pulse get Capture | grep -E "\[on\]|\[off\]" | cut -s -d ' ' -f 8 | uniq)
if [[ $STATUS = "[on]" ]]; then
echo $MICSYMBOL
elif [[ $STATUS = "[off]" ]]; then
echo $MICMUTEDSYMBOL
else
echo "Not working, check script."
fi

View file

@ -1,139 +0,0 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys, dbus, argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'-t',
'--trunclen',
type=int,
metavar='trunclen'
)
parser.add_argument(
'-f',
'--format',
type=str,
metavar='custom format',
dest='custom_format'
)
parser.add_argument(
'-p',
'--playpause',
type=str,
metavar='play-pause indicator',
dest='play_pause'
)
parser.add_argument(
'--font',
type=str,
metavar='the index of the font to use for the main label',
dest='font'
)
parser.add_argument(
'--playpause-font',
type=str,
metavar='the index of the font to use to display the playpause indicator',
dest='play_pause_font'
)
parser.add_argument(
'-q',
'--quiet',
action='store_true',
help="if set, don't show any output when the current song is paused",
dest='quiet',
)
args = parser.parse_args()
def fix_string(string):
# corrects encoding for the python version used
if sys.version_info.major == 3:
return string
else:
return string.encode('utf-8')
def truncate(name, trunclen):
if len(name) > trunclen:
name = name[:trunclen]
name += '...'
if ('(' in name) and (')' not in name):
name += ')'
return name
# Default parameters
output = fix_string(u'{play_pause} {artist}: {song}')
trunclen = 35
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
label_with_font = '%{{T{font}}}{label}%{{T-}}'
font = args.font
play_pause_font = args.play_pause_font
quiet = args.quiet
# parameters can be overwritten by args
if args.trunclen is not None:
trunclen = args.trunclen
if args.custom_format is not None:
output = args.custom_format
if args.play_pause is not None:
play_pause = args.play_pause
try:
session_bus = dbus.SessionBus()
spotify_bus = session_bus.get_object(
'org.mpris.MediaPlayer2.spotify',
'/org/mpris/MediaPlayer2'
)
spotify_properties = dbus.Interface(
spotify_bus,
'org.freedesktop.DBus.Properties'
)
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
# Handle play/pause label
play_pause = play_pause.split(',')
if status == 'Playing':
play_pause = play_pause[0]
elif status == 'Paused':
play_pause = play_pause[1]
else:
play_pause = str()
if play_pause_font:
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
# Handle main label
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
album = fix_string(metadata['xesam:album']) if metadata['xesam:album'] else ''
if (quiet and status == 'Paused') or (not artist and not song and not album):
print('')
else:
if font:
artist = label_with_font.format(font=font, label=artist)
song = label_with_font.format(font=font, label=song)
album = label_with_font.format(font=font, label=album)
# Add 4 to trunclen to account for status symbol, spaces, and other padding characters
print(truncate(output.format(artist=artist,
song=song,
play_pause=play_pause,
album=album), trunclen + 4))
except Exception as e:
if isinstance(e, dbus.exceptions.DBusException):
print('')
else:
print(e)

View file

@ -2,14 +2,13 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
import requests, os import requests, os
API_KEY = os.getenv("OWM_POLYBAR") API_KEY = os.getenv("OWM_POLYBAR")
CITY = "Horodnytsya,UA" CITY = "Horodnytsya,UA"
try:
JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json()
except Exception as e:
print("No connection ")
try: JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json()
except Exception as e: print("No connection ")
try: try:
if JSON['weather'][0]['main'] == "Clear": print("", int(JSON["main"]["temp"]),"°С") if JSON['weather'][0]['main'] == "Clear": print("", int(JSON["main"]["temp"]),"°С")
elif JSON['weather'][0]['main'] == "Thunderstorm": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Thunderstorm": print("", int(JSON["main"]["temp"]),"°С")
@ -26,5 +25,4 @@ try:
elif JSON['weather'][0]['main'] == "Squall": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Squall": print("", int(JSON["main"]["temp"]),"°С")
elif JSON['weather'][0]['main'] == "Tornado": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Tornado": print("", int(JSON["main"]["temp"]),"°С")
elif JSON['weather'][0]['main'] == "Clouds": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Clouds": print("", int(JSON["main"]["temp"]),"°С")
except Exception as e: except Exception as e: print(int(JSON["main"]["temp"]),"°С")
print(int(JSON["main"]["temp"]),"°С")

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
picom -b & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
nitrogen --restore & nitrogen --restore &
kitty & picom -b &
kbdd &

View file

@ -1,147 +1,276 @@
from typing import List
from libqtile import bar, layout, widget, hook from libqtile import bar, layout, widget, hook
from libqtile.config import Click, Drag, Group, Key, Screen from libqtile.config import Click, Drag, Group, Key, Screen
from libqtile.lazy import lazy from libqtile.lazy import lazy
from typing import List
import os import os
auto_fullscreen = True mod = "mod4"
focus_on_window_activation = "smart" alt = "mod1"
terminal = "kitty"
browser = "firefox"
user = "sasha"
color = [
"#FFFFFF", # 0. Text color
"#CED4DA", # 1. Unfocus color
"#008DCD", # 2. Focus color
"#262A2B", # 3. Panel color
"#51AFEF", # 4. Text color
"#C678DD", # 5. Text color
"#FF6C6B", # 6. Text color
"#ECBE7B", # 7. Text color
"#98BE65", # 8. Text color
]
mod = "mod4" # Set mod key(Super/Win)
terminal = "kitty" # Set terminal
colors = [["#292d3e", "#292d3e"], # panel background
["#434758", "#434758"], # background for current screen tab
["#ffffff", "#ffffff"], # font color for group names
["#ff5555", "#ff5555"], # border line color for current tab
["#ff1151", "#ff1151"], # border line color for current tab
["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets
["#668bd7", "#668bd7"], # color for the even widgets
["#e1acff", "#e1acff"]] # window name
@hook.subscribe.startup_once @hook.subscribe.startup_once
def autostart(): os.system("~/.config/qtile/autostart.sh") def autostart(): os.system("~/.config/qtile/autostart.sh")
keys = [ keys = [
## Window control # Applications
Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), Key([mod], "Return",
Key([mod], "k", lazy.layout.down(), desc="Move focus down in stack pane"), lazy.spawn(terminal),
Key([mod], "j", lazy.layout.up(), desc="Move focus up in stack pane"), desc="Launch terminal"
Key([mod, "control"], "k", lazy.layout.shuffle_down(), desc="Move window down in current stack"), ),
Key([mod, "control"], "j", lazy.layout.shuffle_up(), desc="Move window up in current stack"), Key([mod], "F2",
lazy.spawn(browser),
desc="Launch browser"
),
Key([mod, alt], "t",
lazy.spawn(f"{terminal} -e \"nvim /home/{user}/.todo\""),
desc="Open ~/.todo file in nvim"
),
## Layout changer # Window control
Key([mod], "space", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "q",
Key([mod, "shift"], "space", lazy.prev_layout(), desc="Toggle between layouts"), lazy.window.kill(),
desc="Kill focused window"
),
Key([mod], "h",
lazy.layout.left(),
desc="Change focus window(left)"
),
Key([mod], "j",
lazy.layout.down(),
desc="Change focus window(down)"
),
Key([mod], "k",
lazy.layout.up(),
desc="Change focus window(up)"
),
Key([mod], "l",
lazy.layout.right(),
desc="Change focus window(right)"
),
Key([mod, "shift"], "h",
lazy.layout.shuffle_left(),
desc="Move focus window(left)"
),
Key([mod, "shift"], "j",
lazy.layout.shuffle_down(),
desc="Move focus window(down)"
),
Key([mod, "shift"], "k",
lazy.layout.shuffle_up(),
desc="Move focus window(up)"
),
Key([mod, "shift"], "l",
lazy.layout.shuffle_right(),
desc="Move focus window(right)"
),
Key([mod, "control"], "h",
lazy.layout.grow_left(),
#lazy.layout.grow()),
desc="Resize focus window(left)"
),
Key([mod, "control"], "j",
lazy.layout.grow_down(),
desc="Resize focus window(down)"
),
Key([mod, "control"], "k",
lazy.layout.grow_up(),
desc="Resize focus window(up)"
),
Key([mod, "control"], "l",
lazy.layout.grow_right(),
#lazy.layout.shrink()
desc="Resize focus window(right)"
),
## Launch program # Layout
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"), Key([mod], "Tab",
Key([mod], "F1", lazy.spawn(terminal + " -e ranger"), desc="Launch ranger"), lazy.next_layout(),
Key([mod], "F2", lazy.spawn("qutebrowser"), desc="Launch qutebrowser"), desc="Toggle between layouts"
),
Key([mod], "space",
lazy.layout.next(),
desc="Switch window focus to other pane(s) of stack"
),
Key([mod, "shift"], "space",
lazy.layout.rotate(),
desc="Swap panes of split stack"
),
## Program launcher(Dmenu or default) # Volume
Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget" ), Key([mod], "equal",
Key([mod, "shift"], "Return", lazy.spawn("dmenu_run -h 24 -p Run:"), desc="Demnu program launcher" ), lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%"),
Key([mod, "control"], "u", lazy.spawn("sh ~/.script/dmenu/dmenu-config-edit.sh"), desc="Dmenu config menu"), desc="Plus 2% volume"
Key([mod, "control"], "i", lazy.spawn("passmenu -h 24"), desc="Dmenu password menu"), ),
Key([mod], "minus",
lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%"),
desc="Minus 2% volume"
),
Key([mod, "shift"], "minus",
lazy.spawn("pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"),
desc="Mute volume"
),
## Qtile # Menus(dmenu & rofi)
Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"), Key([mod, "shift"], "Return",
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"), lazy.spawn("rofi -show drun -drun-display-format \"{name}\""),
desc="(Rofi) Program launcher"
),
Key([mod],"Escape",
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-power.sh"),
desc="Power menu"
),
Key([mod, "control"], "i",
lazy.spawn("passmenu -h 24 -p Password"),
desc="Dmenu password menu"
),
Key([mod, "control"], "u",
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-config-edit.sh"),
desc="Config editor"
),
Key([mod, "control"], "o",
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-sysmon.sh"),
desc="Choice system monitor"
),
## Keyboard # Screenhot
Key(["mod1"], "Shift_L", lazy.widget['keyboardlayout'].next_keyboard(), desc="Switch keyboard layout"), Key([], "Print",
lazy.spawn(f"scrot -s /home/{user}/$(date +%Y-%m-%d-%H-%M-%S).png"),
desc="Create screenhot(scrot -s)"
),
Key(["shift"], "Print",
lazy.spawn(f"scrot /home/{user}/$(date +%Y-%m-%d-%H-%M-%S).png"),
desc="Create screenhot full screen(scrot)"
),
# Qtile
Key([mod, "control"], "r",
lazy.restart(),
desc="Restart qtile"
),
Key([mod], "r",
lazy.spawncmd(),
desc="Spawn a command using a prompt widget"
),
] ]
# Workspaces name, keys
group_names = [("term", {'layout': 'monadtall'}), group_names = [("term", {'layout': 'monadtall'}),
("www", {'layout': 'monadtall'}), ("www", {'layout': 'max'}),
("dev", {'layout': 'monadtall'}), ("dev", {'layout': 'monadtall'}),
("sys", {'layout': 'monadtall'}), ("sys", {'layout': 'monadtall'}),
("note", {'layout': 'monadtall'}), ("doc", {'layout': 'monadtall'}),
("chat", {'layout': 'monadtall'}), ("chat", {'layout': 'monadtall'}),
("pass", {'layout': 'monadtall'}), ("pass", {'layout': 'monadtall'}),
("gft", {'layout': 'max'}), ("mus", {'layout': 'max'}),
("flo", {'layout': 'floating'}) ("flo", {'layout': 'monadtall'})
] ]
groups = [Group(name, **kwargs) for name, kwargs in group_names] groups = [Group(name, **kwargs) for name, kwargs in group_names]
for i, (name, kwargs) in enumerate(group_names, 1): for i, (name, kwargs) in enumerate(group_names, 1):
keys.append(Key([mod], str(i), lazy.group[name].toscreen())) keys.append(Key([mod], str(i), lazy.group[name].toscreen()))
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))
# Window layout(s)
layout_theme = { layout_theme = {
"border_width": 2, "border_width": 1,
"margin": 0, "margin": 3,
"border_focus": "e1acff", "border_focus": color[2],
"border_normal": "1D2330" "border_normal": color[1],
"font": "Jatbrains Mono"
} }
layouts = [ layouts = [
layout.Max(**layout_theme), layout.Max(),
# layout.Stack(num_stacks=2, **layout_theme), # layout.Stack(num_stacks=2, **layout_theme),
# layout.Bsp(**layout_theme), # layout.Bsp(**layout_theme),
layout.MonadTall(**layout_theme), layout.Columns(**layout_theme),
layout.Floating(**layout_theme) # layout.Matrix(),
# layout.MonadTall(**layout_theme),
# layout.Floating(**layout_theme),
# layout.MonadWide(),
# layout.RatioTile(),
# layout.Tile(**layout_theme),
# layout.TreeTab(),
# layout.VerticalTile(),
# layout.Zoomy(),
] ]
# Panel
widget_defaults = dict( widget_defaults = dict(
font='sans', font='Jatbrains Mono',
fontsize=12, fontsize=12,
padding=5, padding=5,
foreground=color[0],
background=color[3],
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
screens = [Screen(top=bar.Bar([
screens = [
Screen(
top=bar.Bar([
widget.GroupBox( widget.GroupBox(
borderwidth = 0, active=color[0],
active = colors[2], inactive=color[1],
inactive = colors[2],
rounded=False, rounded=False,
highlight_color = colors[1], disable_drag=True,
highlight_method = "line", highlight_color=color[2],
this_current_screen_border = colors[3], highlight_method="block",
this_screen_border = colors [4], this_current_screen_border=color[2],
other_current_screen_border = colors[0], this_screen_border=color[3],
other_screen_border = colors[0], foreground=color[0],
foreground = colors[2],
background = colors[0]
), ),
widget.Prompt( padding = 10, foreground = colors[3], background = colors[0] ), widget.Prompt(foreground=color[0]),
widget.WindowName( foreground = colors[6], background = colors[0], padding = 7 ), widget.WindowName(foreground=color[0]),
widget.Systray( background = colors[0], padding = 3 ), widget.KeyboardKbdd(
widget.CurrentLayout(foreground = colors[2], background = colors[0]), foreground=color[5],
widget.Net( interface = "wlp3s0", format = '{down}↓↑{up}', foreground = colors[2], background = colors[0], padding = 0 ), configured_keyboards=['us', 'ru', 'ua'],
widget.TextBox(padding=3, background=colors[0]), update_interval=0,
widget.TextBox( text="", foreground = colors[2], background = colors[0], padding=3 ), fmt="{}",
widget.Volume( update_interval = 0.2, foreground = colors[2], background = colors[0], padding=0 ),
widget.TextBox(padding=3, background=colors[0]),
widget.TextBox( text="", foreground=colors[2], background=colors[0], padding=0 ),
widget.KeyboardLayout( configured_keyboards=['us','ru', 'ua'], display_map={ 'us': ' us', 'ru': ' ru', 'ua': ' ua' }, update_interval=0.2, foreground=colors[2], background=colors[0], padding=2 ),
widget.TextBox(padding=3, background=colors[0]),
widget.TextBox( text = "", background = colors[0], foreground = colors[2], padding = 0 ),
widget.Clock( format='%H:%M:%S', foreground=colors[2], background=colors[0], padding=2 )
],
22,
), ),
widget.CurrentLayout(
foreground=color[8]
), ),
] widget.Volume(
foreground=color[6],
fmt="{}",
),
widget.Net(
interface="wlp3s0",
format='{down}↓↑{up}',
foreground=color[7],
),
widget.Systray(),
widget.Clock(
format='%H:%M',
foreground=color[4]
),
widget.Clock(
format="%d.%m.%Y",
foreground=color[4]
)], 24 # Panel size
))]
# Drag floating layouts. # Drag floating layouts
mouse = [ mouse = [
Drag([mod], "Button1", lazy.window.set_position_floating(), Drag([mod], "Button1", lazy.window.set_position(), start=lazy.window.get_position()),
start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
Drag([mod], "Button3", lazy.window.set_size_floating(),
start=lazy.window.get_size()),
Click([mod], "Button2", lazy.window.bring_to_front()) Click([mod], "Button2", lazy.window.bring_to_front())
] ]
dgroups_key_binder = None dgroups_key_binder = None
dgroups_app_rules = [] # type: List dgroups_app_rules = []
main = None # WARNING: this is deprecated and will be removed soon main = None
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = False bring_front_click = False
cursor_warp = False cursor_warp = False
@ -154,14 +283,13 @@ floating_layout = layout.Floating(float_rules=[
{'wmclass': 'notification'}, {'wmclass': 'notification'},
{'wmclass': 'splash'}, {'wmclass': 'splash'},
{'wmclass': 'toolbar'}, {'wmclass': 'toolbar'},
{'wmclass': 'confirmreset'}, # gitk {'wmclass': 'confirmreset'},
{'wmclass': 'makebranch'}, # gitk {'wmclass': 'makebranch'},
{'wmclass': 'maketag'}, # gitk {'wmclass': 'maketag'},
{'wname': 'branchdialog'}, # gitk {'wname': 'branchdialog'},
{'wname': 'pinentry'}, # GPG key password entry {'wname': 'pinentry'},
{'wmclass': 'ssh-askpass'}, # ssh-askpass {'wmclass': 'ssh-askpass'},
]) ])
auto_fullscreen = True auto_fullscreen = True
focus_on_window_activation = "smart" focus_on_window_activation = "smart"
wmname = "LG3D" wmname = "LG3D"

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

BIN
config/qtile/screen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -1,7 +1,7 @@
# general # general
c.url.start_pages = ["https://start.duckduckgo.com"] c.url.start_pages = ["about:blank"]
config.set("colors.webpage.darkmode.enabled", True) config.set("colors.webpage.darkmode.enabled", True)
c.downloads.location.directory = '/home/sasha/Загрузки' c.downloads.location.directory = '/home/sasha/Downloads'
c.completion.shrink = True c.completion.shrink = True
config.load_autoconfig() config.load_autoconfig()
@ -12,7 +12,7 @@ c.downloads.position = "bottom"
# alias, binds, search # alias, binds, search
c.aliases = {'q':'quit', 'w':'session-save', 'wq':'quit --save', 'e':'open'} c.aliases = {'q':'quit', 'w':'session-save', 'wq':'quit --save', 'e':'open'}
config.bind('<l><p', 'spawn --userscript qute-pass') config.bind('<Ctrl-T>', 'open -t about:blank')
c.url.searchengines = { c.url.searchengines = {
'DEFAULT': 'https://www.google.com/search?q={}', 'DEFAULT': 'https://www.google.com/search?q={}',
'ddg': 'https://duckduckgo.com/?q={}', 'ddg': 'https://duckduckgo.com/?q={}',
@ -60,9 +60,9 @@ c.colors.downloads.bar.bg = color01
c.colors.downloads.error.bg = color06 c.colors.downloads.error.bg = color06
c.colors.downloads.start.bg = color03 c.colors.downloads.start.bg = color03
c.colors.downloads.stop.bg = color04 c.colors.downloads.stop.bg = color04
#c.colors.messages.info.bg = color01 c.colors.messages.info.bg = color01
#c.colors.messages.info.border = color01 c.colors.messages.info.border = color01
#c.colors.messages.warning.border = color01 c.colors.messages.warning.border = color01
c.colors.statusbar.caret.bg = color01 c.colors.statusbar.caret.bg = color01
c.colors.statusbar.command.bg = color01 c.colors.statusbar.command.bg = color01
c.colors.statusbar.insert.bg = color01 c.colors.statusbar.insert.bg = color01

View file

@ -8,6 +8,4 @@ Notabug https://notabug.org
Dropbox https://dropbox.com Dropbox https://dropbox.com
MEGA https://mega.nz MEGA https://mega.nz
MediaFire https://mediafire.com MediaFire https://mediafire.com
Pingvinus https://pingvinus.ru/ Reddit https://reddit.com
Reddit https://www.reddit.com/
Figma https://www.figma.com/files/recent

View file

@ -96,3 +96,5 @@ class extract_to_dirs(Command):
obj = CommandLoader(args=['aunpack'] + make_flags(f.path) + [f.path], descr=descr, read=True) obj = CommandLoader(args=['aunpack'] + make_flags(f.path) + [f.path], descr=descr, read=True)
obj.signal_bind('after', refresh) obj.signal_bind('after', refresh)
self.fm.loader.add(obj) self.fm.loader.add(obj)

View file

@ -3,19 +3,25 @@ from ranger.api.commands import Command
class git(Command): class git(Command):
commands = 'init status clone add rm restore commit remote push'.split() commands = 'init status clone add rm restore commit remote push'.split()
def execute(self): def execute(self):
# empty
if not self.arg(1): if not self.arg(1):
return self.fm.notify("For commands check \"git help\"") return self.fm.notify("For commands check \"git help\"")
# help
if self.arg(1) == "help": if self.arg(1) == "help":
return self.fm.notify("Not done yet!", bad=True) return self.fm.notify("Not done yet!", bad=True)
# init
if self.arg(1) == self.commands[0]: if self.arg(1) == self.commands[0]:
subprocess.run(["git", "init", "--quiet"]) subprocess.run(["git", "init", "--quiet"])
return self.fm.notify("Repository initialized successefully") return self.fm.notify("Repository initialized successefully")
# status
if self.arg(1) == self.commands[1]: if self.arg(1) == self.commands[1]:
output = subprocess.check_output(["git", "status"]).decode() output = subprocess.check_output(["git", "status"]).decode()
@ -24,6 +30,7 @@ class git(Command):
return self.fm.edit_file('/tmp/gitplug-status') return self.fm.edit_file('/tmp/gitplug-status')
# clone
if self.arg(1) == self.commands[2]: if self.arg(1) == self.commands[2]:
if not self.arg(2): if not self.arg(2):
return self.fm.notify("Missing url!", bad=True) return self.fm.notify("Missing url!", bad=True)
@ -32,6 +39,7 @@ class git(Command):
subprocess.run(["git", "clone", self.arg(2), "--quiet"]) subprocess.run(["git", "clone", self.arg(2), "--quiet"])
return self.fm.notify("Repository successfully cloned!") return self.fm.notify("Repository successfully cloned!")
# add
if self.arg(1) == self.commands[3]: if self.arg(1) == self.commands[3]:
if not self.arg(2): if not self.arg(2):
return self.fm.notify("Missing arguments! Usage :git add <file>", bad=True) return self.fm.notify("Missing arguments! Usage :git add <file>", bad=True)
@ -40,6 +48,7 @@ class git(Command):
subprocess.run(["git", "add", self.arg(2)]) subprocess.run(["git", "add", self.arg(2)])
return self.fm.notify("Successfully added files to branch!") return self.fm.notify("Successfully added files to branch!")
#rm
if self.arg(1) == self.commands[4]: if self.arg(1) == self.commands[4]:
if not self.arg(2): if not self.arg(2):
return self.fm.notify("Missing arguments! Usage :git rm <file>", bad=True) return self.fm.notify("Missing arguments! Usage :git rm <file>", bad=True)
@ -48,6 +57,7 @@ class git(Command):
subprocess.run(["git", "rm", self.arg(2)]) subprocess.run(["git", "rm", self.arg(2)])
return self.fm.notify("Successfully removed files from branch!") return self.fm.notify("Successfully removed files from branch!")
# restore
if self.arg(1) == self.commands[5]: if self.arg(1) == self.commands[5]:
if not self.arg(2): if not self.arg(2):
return self.fm.notify("Missing arguments! Usage :git restore <file>", bad=True) return self.fm.notify("Missing arguments! Usage :git restore <file>", bad=True)
@ -56,6 +66,7 @@ class git(Command):
subprocess.run(["git", "restore", "--staged", self.arg(2), "--quiet"]) subprocess.run(["git", "restore", "--staged", self.arg(2), "--quiet"])
return self.fm.notify("Successfully restored files!") return self.fm.notify("Successfully restored files!")
# commit
if self.arg(1) == self.commands[6]: if self.arg(1) == self.commands[6]:
if not self.rest(2): if not self.rest(2):
return self.fm.notify("Missing commit text", bad=True) return self.fm.notify("Missing commit text", bad=True)
@ -64,6 +75,7 @@ class git(Command):
subprocess.run(["git", "commit", "-m", self.rest(2), "--quiet"]) subprocess.run(["git", "commit", "-m", self.rest(2), "--quiet"])
return self.fm.notify("Successfully commited!") return self.fm.notify("Successfully commited!")
# remote
if self.arg(1) == self.commands[7]: if self.arg(1) == self.commands[7]:
if not self.arg(2): if not self.arg(2):
return self.fm.notify("Missing arguments! Use: git remote add/rm <name> <url>", bad=True) return self.fm.notify("Missing arguments! Use: git remote add/rm <name> <url>", bad=True)
@ -88,6 +100,7 @@ class git(Command):
subprocess.run(["git", "remote", "rm", self.arg(3)]) subprocess.run(["git", "remote", "rm", self.arg(3)])
return self.fm.notify("Remote successfully removed") return self.fm.notify("Remote successfully removed")
# push
if self.arg(1) == self.commands[8]: if self.arg(1) == self.commands[8]:
if self.arg(2) == "-u" and self.arg(3) and self.arg(4): if self.arg(2) == "-u" and self.arg(3) and self.arg(4):
subprocess.run(["git", "push", "--quiet", "-u", self.arg(3), self.arg(4)]) subprocess.run(["git", "push", "--quiet", "-u", self.arg(3), self.arg(4)])

View file

@ -1,6 +1,6 @@
############ ############
### Options ### Options
########### ############
### Appearance ### Appearance
set colorscheme solarized set colorscheme solarized
@ -24,36 +24,25 @@ set vcs_msg_length 30
### Preview ### Preview
set preview_images true set preview_images true
#set preview_images_method w3m set preview_images_method w3m
set preview_images_method kitty
set w3m_delay 0.02 set w3m_delay 0.02
set w3m_offset 0 set w3m_offset 0
set iterm2_font_width 8
set iterm2_font_height 11
set unicode_ellipsis false set unicode_ellipsis false
set bidi_support false set bidi_support false
set show_hidden_bookmarks true set show_hidden_bookmarks true
set preview_files true set preview_files true
set preview_directories true set preview_directories true
set collapse_preview true set collapse_preview true
set wrap_plaintext_previews false set wrap_plaintext_previews false
set draw_progress_bar_in_status_bar true set draw_progress_bar_in_status_bar true
set draw_borders none set draw_borders none
set dirname_in_tabs false set dirname_in_tabs false
set mouse_enabled true set mouse_enabled true
set display_size_in_main_column true set display_size_in_main_column true
set display_size_in_status_bar true set display_size_in_status_bar true
set display_free_space_in_status_bar false set display_free_space_in_status_bar false
set display_tags_in_all_columns true set display_tags_in_all_columns true
set update_title false set update_title false
set update_tmux_title false set update_tmux_title false
set shorten_title 3 set shorten_title 3
@ -64,47 +53,31 @@ set tilde_in_titlebar trues
set max_history_size 20 set max_history_size 20
set max_console_history_size 50 set max_console_history_size 50
set save_console_history false set save_console_history false
set scroll_offset 4 set scroll_offset 4
set flushinput true set flushinput true
set padding_right true set padding_right true
set autosave_bookmarks true set autosave_bookmarks true
set save_backtick_bookmark true set save_backtick_bookmark true
set autoupdate_cumulative_size false set autoupdate_cumulative_size false
set show_cursor false set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural set sort natural
set sort_reverse false set sort_reverse false
set sort_case_insensitive true set sort_case_insensitive true
set sort_directories_first true set sort_directories_first true
set sort_unicode false set sort_unicode false
set xterm_alt_key false set xterm_alt_key false
set cd_bookmarks true set cd_bookmarks true
set cd_tab_case sensitive set cd_tab_case sensitive
set cd_tab_fuzzy false set cd_tab_fuzzy false
set preview_max_size 0 set preview_max_size 0
set hint_collapse_threshold 10 set hint_collapse_threshold 10
set show_selection_in_titlebar true set show_selection_in_titlebar true
set idle_delay 2000 set idle_delay 2000
set metadata_deep_search false set metadata_deep_search false
set clear_filters_on_dir_change false set clear_filters_on_dir_change false
# Possible values: false, absolute, relative.
set line_numbers false set line_numbers false
set relative_current_zero false set relative_current_zero false
set one_indexed false set one_indexed false
set save_tabs_on_exit false set save_tabs_on_exit false
set wrap_scroll false set wrap_scroll false
set global_inode_type_filter set global_inode_type_filter
@ -115,6 +88,14 @@ set nested_ranger_warning true
################################# #################################
# Command Aliases in the Console # Command Aliases in the Console
################################# #################################
# "a" key
map a rename_append
map a
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
map ex extract map ex extract
map ed extract_to_dirs map ed extract_to_dirs
map ec compress map ec compress
@ -227,8 +208,6 @@ map gd cd ~/code
map E edit map E edit
map cw console rename%space map cw console rename%space
map a rename_append
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7) map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
map pp paste map pp paste

View file

@ -1,6 +1,7 @@
############# #############
### Websites ### Websites
############# #############
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
ext x?html?, has chromium, X, flag f = chromium -- "$@" ext x?html?, has chromium, X, flag f = chromium -- "$@"
@ -8,7 +9,6 @@ ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has surf, X, flag f = surf -- file://"$1" ext x?html?, has surf, X, flag f = surf -- file://"$1"
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has dwb, X, flag f = dwb -- "$@" ext x?html?, has dwb, X, flag f = dwb -- "$@"
ext x?html?, has jumanji, X, flag f = jumanji -- "$@" ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
ext x?html?, has luakit, X, flag f = luakit -- "$@" ext x?html?, has luakit, X, flag f = luakit -- "$@"
@ -126,7 +126,7 @@ ext cbz, has zathura, X, flag f = zathura -- "$@"
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image, has pix X, flag f = pix "$@" mime ^image, has pix X, flag f = pix -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@" mime ^image, has ristretto, X, flag f = ristretto "$@"
mime ^image, has gpicview, X, flag f = gpicview -- "$@" mime ^image, has gpicview, X, flag f = gpicview -- "$@"
mime ^image, has gwenview, X, flag f = gwenview -- "$@" mime ^image, has gwenview, X, flag f = gwenview -- "$@"

View file

@ -1,42 +0,0 @@
* {
background-color: #002b36;
border-color: #606060;
text-color: #c8c8c8;
width: 768px;
height: 512px;
}
window {
padding: 8px;
}
inputbar {
padding: 8px;
children: [/* prompt, */ entry];
}
prompt {
border: 0 1px 0 0;
padding: 4px 20px 8px 12px;
}
entry {
padding: 4px 12px 8px 20px;
}
listview {
cycle: false;
}
element {
padding: 6px 24px;
}
element selected {
background-color: #073642;
text-color: #e0e0e0;
}
element-icon {
size: 20px;
}

View file

@ -1,215 +0,0 @@
#!/usr/bin/env bash
set -e
set -u
all=(shutdown reboot suspend hibernate logout lockscreen)
show=("${all[@]}")
declare -A texts
texts[lockscreen]="lock screen"
texts[switchuser]="switch user"
texts[logout]="log out"
texts[suspend]="suspend"
texts[hibernate]="hibernate"
texts[reboot]="reboot"
texts[shutdown]="shut down"
declare -A icons
icons[lockscreen]="\uf023"
icons[switchuser]="\uf518"
icons[logout]="\uf842"
icons[suspend]="\uf9b1"
icons[hibernate]="\uf7c9"
icons[reboot]="\ufc07"
icons[shutdown]="\uf011"
icons[cancel]="\u00d7"
declare -A actions
actions[lockscreen]="loginctl lock-session $XDG_SESSION_ID"
actions[logout]="loginctl terminate-session $XDG_SESSION_ID"
actions[suspend]="systemctl suspend"
actions[hibernate]="systemctl hibernate"
actions[reboot]="systemctl reboot"
actions[shutdown]="systemctl poweroff"
confirmations=(reboot shutdown logout)
dryrun=false
showsymbols=true
function check_valid {
option="$1"
shift 1
for entry in "${@}"
do
if [ -z "${actions[$entry]+x}" ]
then
echo "Invalid choice in $1: $entry" >&2
exit 1
fi
done
}
parsed=$(getopt --options=h --longoptions=help,dry-run,confirm:,choices:,choose:,symbols,no-symbols --name "$0" -- "$@")
if [ $? -ne 0 ]; then
echo 'Terminating...' >&2
exit 1
fi
eval set -- "$parsed"
unset parsed
while true; do
case "$1" in
"-h"|"--help")
echo "rofi-power-menu - a power menu mode for Rofi"
echo
echo "Usage: rofi-power-menu [--choices CHOICES] [--confirm CHOICES]"
echo " [--choose CHOICE] [--dry-run] [--symbols|--no-symbols]"
echo
echo "Use with Rofi in script mode. For instance, to ask for shutdown or reboot:"
echo
echo " rofi -show menu -modi \"menu:rofi-power-menu --choices=shutdown/reboot\""
echo
echo "Available options:"
echo " --dry-run Don't perform the selected action but print it to stderr."
echo " --choices CHOICES Show only the selected choices in the given order. Use / "
echo " as the separator. Available choices are lockscreen, logout,"
echo " suspend, hibernate, reboot and shutdown. By default, all"
echo " available choices are shown."
echo " --confirm CHOICES Require confirmation for the gives choices only. Use / as"
echo " the separator. Available choices are lockscreen, logout,"
echo " suspend, hibernate, reboot and shutdown. By default, only"
echo " irreversible actions logout, reboot and shutdown require"
echo " confirmation."
echo " --choose CHOICE Preselect the given choice and only ask for a confirmation"
echo " (if confirmation is set to be requested). It is strongly"
echo " recommended to combine this option with --confirm=CHOICE"
echo " if the choice wouldn't require confirmation by default."
echo " Available choices are lockscreen, logout, suspend,"
echo " hibernate, reboot and shutdown."
echo " --[no-]symbols Show Unicode symbols or not. Requires a font with support"
echo " for the symbols. Use, for instance, fonts from the"
echo " Nerdfonts collection. By default, they are shown"
echo " -h,--help Show this help text."
exit 0
;;
"--dry-run")
dryrun=true
shift 1
;;
"--confirm")
IFS='/' read -ra confirmations <<< "$2"
check_valid "$1" "${confirmations[@]}"
shift 2
;;
"--choices")
IFS='/' read -ra show <<< "$2"
check_valid "$1" "${show[@]}"
shift 2
;;
"--choose")
check_valid "$1" "$2"
selectionID="$2"
shift 2
;;
"--symbols")
showsymbols=true
shift 1
;;
"--no-symbols")
showsymbols=false
shift 1
;;
"--")
shift
break
;;
*)
echo "Internal error" >&2
exit 1
;;
esac
done
function write_message {
icon="<span font_size=\"medium\">$1</span>"
text="<span font_size=\"medium\">$2</span>"
if [ "$showsymbols" = "true" ]
then
echo -n "\u200e$icon \u2068$text\u2069"
else
echo -n "$text"
fi
}
function print_selection {
echo -e "$1" | $(read -r -d '' entry; echo "echo $entry")
}
declare -A messages
declare -A confirmationMessages
for entry in "${all[@]}"
do
messages[$entry]=$(write_message "${icons[$entry]}" "${texts[$entry]^}")
done
for entry in "${all[@]}"
do
confirmationMessages[$entry]=$(write_message "${icons[$entry]}" "Yes, ${texts[$entry]}")
done
confirmationMessages[cancel]=$(write_message "${icons[cancel]}" "No, cancel")
if [ $# -gt 0 ]
then
selection="${@}"
else
if [ -n "${selectionID+x}" ]
then
selection="${messages[$selectionID]}"
fi
fi
echo -e "\0no-custom\x1ftrue"
echo -e "\0markup-rows\x1ftrue"
if [ -z "${selection+x}" ]
then
echo -e "\0prompt\x1fPower menu"
for entry in "${show[@]}"
do
echo -e "${messages[$entry]}\0icon\x1f${icons[$entry]}"
done
else
for entry in "${show[@]}"
do
if [ "$selection" = "$(print_selection "${messages[$entry]}")" ]
then
for confirmation in "${confirmations[@]}"
do
if [ "$entry" = "$confirmation" ]
then
echo -e "\0prompt\x1fAre you sure"
echo -e "${confirmationMessages[$entry]}\0icon\x1f${icons[$entry]}"
echo -e "${confirmationMessages[cancel]}\0icon\x1f${icons[cancel]}"
exit 0
fi
done
selection=$(print_selection "${confirmationMessages[$entry]}")
fi
if [ "$selection" = "$(print_selection "${confirmationMessages[$entry]}")" ]
then
if [ $dryrun = true ]
then
echo "Selected: $entry" >&2
else
${actions[$entry]}
fi
exit 0
fi
if [ "$selection" = "$(print_selection "${confirmationMessages[cancel]}")" ]
then
exit 0
fi
done
echo "Invalid selection: $selection" >&2
exit 1
fi

View file

@ -1,9 +0,0 @@
[
// Unbind's
{ "keys": ["ctrl+b"], "command": null },
{ "keys": ["ctrl+shift+x"],"command": null },
// Bind's
{ "keys": ["ctrl+shift+`"], "command": "ecsstractor", "args": {"bem_nesting": true } },
{ "keys": ["ctrl+`"], "command": "ecsstractor"},
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }
]

View file

@ -1,18 +0,0 @@
{
"bootstrapped": true,
"in_process_packages": [],
"installed_packages": [
"A File Icon",
"Agila Theme",
"AutoFileName",
"ayu",
"BracketHighlighter",
"Color Highlight",
"ColorPicker",
"Discord Rich Presence",
"eCSStractor",
"Emmet",
"Package Control",
"Sass"
]
}

View file

@ -1,19 +0,0 @@
{
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
"theme": "ayu-mirage.sublime-theme",
"auto_complete": true,
"draw_indent_guides": false,
"draw_white_space": "all",
"file_exclude_patterns": [ "package-lock.json" ],
"folder_exclude_patterns": [ "node_modules" ],
"font_size": 10,
"ignored_packages": [ "Vintage" ],
"margin": 0,
"remeber_open_files": true,
"save_on_focus_lost": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": false,
"update_check": false,
"word_wrap": true
}

223
config/tint2/tint2rc Normal file
View file

@ -0,0 +1,223 @@
#---- Generated by tint2conf 41e4 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Active taskbar, Battery, Clock, Launcher, Systray, Tooltip
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #262a2b 100
border_color = #222222 0
background_color_hover = #000000 80
border_color_hover = #000000 0
background_color_pressed = #000000 80
border_color_pressed = #000000 0
# Background 2: Active task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #008dcd 100
border_color = #272727 0
background_color_hover = #272727 70
border_color_hover = #272727 0
background_color_pressed = #272727 70
border_color_pressed = #272727 0
# Background 3: Urgent task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #ff8066 60
border_color = #d98282 0
background_color_hover = #d98282 60
border_color_hover = #d98282 0
background_color_pressed = #d98282 60
border_color_pressed = #d98282 0
# Background 4: Default task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #262a2b 100
border_color = #242424 0
background_color_hover = #242424 60
border_color_hover = #242424 0
background_color_pressed = #242424 60
border_color_pressed = #242424 0
# Background 5: Iconified task
rounded = 0
border_width = 0
border_sides = TBLR
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #262a2b 60
border_color = #252525 0
background_color_hover = #252525 60
border_color_hover = #252525 0
background_color_pressed = #252525 60
border_color_pressed = #252525 0
#-------------------------------------
# Panel
panel_items = TSC
panel_size = 100% 26
panel_margin = 0 0
panel_padding = 0 0 0
panel_background_id = 0
wm_menu = 1
panel_dock = 0
panel_pivot_struts = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
panel_shrink = 0
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 1
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
scale_relative_to_dpi = 0
scale_relative_to_screen_height = 0
#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_hide_if_empty = 0
taskbar_padding = 0 0 0
taskbar_background_id = 0
taskbar_active_background_id = 1
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 6 7
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = Droid Sans Bold 8
taskbar_name_font_color = #d1d1d1 100
taskbar_name_active_font_color = #aaaaaa 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left
#-------------------------------------
# Task
task_text = 1
task_icon = 0
task_centered = 1
urgent_nb_of_blink = 20
task_maximum_size = 200 0
task_padding = 8 6 8
task_font = Droid Sans Bold 8
task_tooltip = 1
task_thumbnail = 0
task_thumbnail_size = 210
task_font_color = #cccccc 100
task_active_font_color = #ffffff 100
task_urgent_font_color = #cccccc 100
task_iconified_font_color = #cccccc 80
task_icon_asb = 100 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 80 0 0
task_background_id = 4
task_active_background_id = 2
task_urgent_background_id = 3
task_iconified_background_id = 5
mouse_left = toggle_iconify
mouse_middle = close
mouse_right = none
mouse_scroll_up = none
mouse_scroll_down = none
#-------------------------------------
# System tray (notification area)
systray_padding = 8 0 12
systray_background_id = 1
systray_sort = right2left
systray_icon_size = 18
systray_icon_asb = 100 0 0
systray_monitor = 1
systray_name_filter =
#-------------------------------------
# Launcher
launcher_padding = 8 0 16
launcher_background_id = 1
launcher_icon_background_id = 0
launcher_icon_size = 16
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0
#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %d.%m.%Y
time1_font = Droid Sans Bold 8
time1_timezone = Europe/Kiev
time2_timezone =
time2_font = Droid Sans 7
clock_font_color = #d1d1d1 100
clock_padding = 4 2
clock_background_id = 1
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command =
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_full_cmd =
bat1_font = Droid Sans Bold 8
bat2_font = Droid Sans Bold 8
battery_font_color = #d1d1d1 100
bat1_format =
bat2_format =
battery_padding = 2 0
battery_background_id = 1
battery_hide = 96
battery_lclick_command =
battery_rclick_command =
battery_mclick_command =
battery_uwheel_command =
battery_dwheel_command =
ac_connected_cmd =
ac_disconnected_cmd =
#-------------------------------------
# Tooltip
tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_padding = 6 6
tooltip_background_id = 1
tooltip_font_color = #d1d1d1 100
tooltip_font = Droid Sans Bold 8

View file

@ -13,7 +13,7 @@ conky.config = {
alignment = 'top_right', alignment = 'top_right',
gap_x = 40, gap_x = 40,
gap_y = 60, gap_y = 60,
minimum_height = 200, minimum_height = 50,
minimum_width = 200, minimum_width = 200,
maximum_width = 700, maximum_width = 700,
border_inner_margin = 10, border_inner_margin = 10,
@ -37,7 +37,7 @@ conky.config = {
font = 'Jatbrains Mono', font = 'Jatbrains Mono',
max_text_width = 0, max_text_width = 0,
max_user_text = 16384, max_user_text = 16384,
override_utf8_locale = false, override_utf8_locale = true,
short_units = true, short_units = true,
top_name_width = 21, top_name_width = 21,
top_name_verbose = false, top_name_verbose = false,
@ -62,7 +62,7 @@ conky.config = {
conky.text = [[ conky.text = [[
${voffset 10}${font Jatbrains Mono:weight=Bold:size=14}${color1}Todo: ${font Jatbrains Mono:weight=Medium:size=10}${color2}<mod+alt+t>${font} ${voffset 10}${font Jatbrains Mono:weight=Bold:size=14}${color1}Todo: ${font Jatbrains Mono:weight=Medium:size=10}${color2}<mod+alt+t>${font}
${exec cat -n "$HOME/.todo" | fmt -s -w 50}\ ${font Jatbrains Mono:weight=Medium:size=10}${exec cat -n "$HOME/.todo" | fmt -s -w 66}\
${color1} ${color1}
${font} ${font}
]] ]]

View file

@ -7,15 +7,14 @@
name = Smirnov-O name = Smirnov-O
[web] [web]
browser = firefox browser = chromium # firefox, google-chrome,
#browser = google-chrome
[core] [core]
editor = vim editor = vim
excludesfile = ~/.gitignore_global
[alias] [alias]
ada = add -A ada = add -A
rmc = rm --cached
cm = commit cm = commit
cmm = commit -m cmm = commit -m
ch = checkout ch = checkout
@ -23,6 +22,7 @@
st = status st = status
br = branch br = branch
l = log l = log
i = init
[color] [color]
ui = true ui = true

View file

@ -1,42 +1,28 @@
## IDE ## # IDE
.vscode/* .idea
.idea/* *~
~*
## OS: Linux, Windows, Mac OS X ## # Logs and databases
.directory *.log
.Trash-* *.sqlite
Thumbs.db *.db
ehthumbs.db *.todo
*.stackdump
[Dd]esktop.ini
.DS_Store
## Python files ## # Temp files
*.pyc
*.swp
.*.swp
*.swo
__pycache__ __pycache__
venv
env
*.py[cod]
dist/
## Golang ## # Packages
/Godeps/ *.7z
*.rar
*.tar
*.bz2
# Compiled siurce
*.so
*.out *.out
*.bin
## JS/TS ##
npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules/
jspm_packages/
typings/
.npm
dist/
## db ##
db.sqlite3
db.db
## DotEnv ##
.env
.dotenv
.env.sh

View file

@ -1,12 +0,0 @@
#!/bin/sh
case "$1" in
"help"|"--help")
echo "bash Change default shell to bash"
echo "zsh Change default shell to zsh"
echo "fish Change default shell to fish"
;;
bash) chsh -s $(whitch bash) ;;
zsh) chsh -s $(whitch zsh) ;;
fish) chsh -s $(whitch fish) ;;
esac

View file

@ -3,11 +3,12 @@
declare options=("i3 declare options=("i3
berry berry
qtile qtile
openbox
polybar polybar
picom picom
dunst dunst
qutebrowser qutebrowser
quickmarks tmux
vim vim
neovim neovim
kitty kitty
@ -15,24 +16,43 @@ taskwarrior
fish fish
zsh") zsh")
choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'Edit config file: ') choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file: ' $@)
case "$choice" in case "$choice" in
i3) choice="$HOME/.config/i3/config" ;; i3) choice="$HOME/.config/i3/config" ;;
qtile) choice="$HOME/.config/qtile/config.py" ;; qtile)
opt=$(echo -e "config.py\nautostart"|dmenu -p 'Qtile' $@)
case "$opt" in
"config.py") choice="$HOME/.config/qtile/config.py" ;;
"autostart") choice="$HOME/.config/qtile/autostart.sh" ;;
esac
;;
berry) berry)
declare opt=("berry\npolybar\nsxhkd") declare opt=$(echo -e "berry\npolybar\nsxhkd"|dmenu -p 'Berry' $@)
why=$(echo -e "${opt}" | dmenu -h 24 -p 'Berry') case "$opt" in
case "$why" in
"berry") choice="$HOME/.config/berry/autostart" ;; "berry") choice="$HOME/.config/berry/autostart" ;;
"polybar") choice="$HOME/.config/berry/polybar/polybar" ;; "polybar") choice="$HOME/.config/berry/polybar/polybar" ;;
"sxhkd") choice="$HOME/.config/berry/sxhkdrc" ;; "sxhkd") choice="$HOME/.config/berry/sxhkdrc" ;;
esac esac
;;
openbox)
opt=$(echo -e "openbox\nautostart\nmenu\nreload"|dmenu -p 'OpenBox' $@)
case "$opt" in
"openbox") choice="$HOME/.config/openbox/rc.xml" ;;
"autostart") choice="$HOME/.config/openbox/autostart" ;;
"menu") choice="$HOME/.config/openbox/menu.xml" ;;
"reload") openbox --reconfigure && pkill kitty ;;
esac
;; ;;
picom) choice="$HOME/.config/picom.conf" ;; picom) choice="$HOME/.config/picom.conf" ;;
tmux) choice="$HOME/.tmux.conf" ;;
polybar) choice="$HOME/.config/polybar/config" ;; polybar) choice="$HOME/.config/polybar/config" ;;
quickmarks) choice="$HOME/.config/qutebrowser/quickmarks" ;; qutebrowser)
qutebrowser) choice="$HOME/.config/qutebrowser/config.py" ;; why=$(echo -e "config.py\nquickmarks" | dmenu -h 24 -p 'Qutebrowser')
case "$why" in
"config.py") choice="$HOME/.config/qutebrowser/config.py" ;;
"quickmarks") choice="$HOME/.config/qutebrowser/quickmarks" ;;
esac
;;
vim) choice="$HOME/.vimrc" ;; vim) choice="$HOME/.vimrc" ;;
nvim) choice="$HOME/.config/nvim/init.vim" ;; nvim) choice="$HOME/.config/nvim/init.vim" ;;
dunst) choice="$HOME/.config/dunst/dunstrc" ;; dunst) choice="$HOME/.config/dunst/dunstrc" ;;
@ -40,7 +60,6 @@ case "$choice" in
taskwarior) choice="$HOME/.taskrc" ;; taskwarior) choice="$HOME/.taskrc" ;;
fish) choice="$HOME/.config/fish/config.fish" ;; fish) choice="$HOME/.config/fish/config.fish" ;;
kitty) choice="$HOME/.config/kitty/kitty.conf" ;; kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
quit) echo "Program terminated." && exit 1 ;;
*) exit 1 ;; *) exit 1 ;;
esac esac
kitty -e nvim "$choice" kitty -e nvim "$choice"

View file

@ -6,12 +6,12 @@ Logout
Suspend Suspend
Lock Screen") Lock Screen")
choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'Power') choice=$(echo -e "${options[@]}" | dmenu -p 'Power' $@)
case "$choice" in case "$choice" in
"Shut Down") "Shut Down")
declare opt=("Yes\nNo") declare opt=("Yes\nNo")
yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power') yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
case "$yesno" in case "$yesno" in
"Yes") exec systemctl poweroff ;; "Yes") exec systemctl poweroff ;;
"No") exec exit 0 ;; "No") exec exit 0 ;;
@ -19,7 +19,7 @@ case "$choice" in
;; ;;
"Reboot") "Reboot")
declare opt=("Yes\nNo") declare opt=("Yes\nNo")
yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power') yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
case "$yesno" in case "$yesno" in
"Yes") exec systemctl reboot ;; "Yes") exec systemctl reboot ;;
"No") exec exit 0 ;; "No") exec exit 0 ;;
@ -27,7 +27,7 @@ case "$choice" in
;; ;;
"Logout") "Logout")
declare opt=("Yes\nNo") declare opt=("Yes\nNo")
yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power') yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
case "$yesno" in case "$yesno" in
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;; "Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
"No") exec exit 0 ;; "No") exec exit 0 ;;
@ -35,7 +35,7 @@ case "$choice" in
;; ;;
"Lock Screen") "Lock Screen")
declare opt=("Yes\nNo") declare opt=("Yes\nNo")
yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power') yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)
case "$yesno" in case "$yesno" in
"Yes") exec loginctl lock-session $XDG_SESSION_ID ;; "Yes") exec loginctl lock-session $XDG_SESSION_ID ;;
"No") exec exit 0 ;; "No") exec exit 0 ;;

23
script/mfet.sh Normal file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#### Info ####
shell=$(echo $SHELL | sed -e 's|/bin/||g')
os=$(lsb_release -sdr | sed -e 's|"||g')
host=$(hostname)
user=$(echo $USER)
kernal=$(uname -r)
editor=$(echo $EDITOR)
uptime=$(uptime -p|sed 's|up ||g'|sed 's|,||g')
### Colors ###
rest="\e[0m"
bold="\e[1m"
blue="\e[34m"
grey="\e[90m"
#### Code ####
echo -e " ${blue}${user}${rest}${grey}@${blue}${host}"
echo -e " ${blue} os ${rest}${grey}~ ${rest}${os}"
echo -e " ${blue} sh ${rest}${grey}~ ${rest}${shell}"
echo -e " ${blue}kernal ${rest}${grey}~ ${rest}${kernal}"
echo -e " ${blue}editor ${rest}${grey}~ ${rest}${editor}"
echo -e " ${blue}uptime ${rest}${grey}~ ${rest}${uptime}"

38
tmux.conf Normal file
View file

@ -0,0 +1,38 @@
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",*:Tc"
#set-option -sa terminal-overrides ",xterm-kitty:RGB"
set -g history-limit 1000
set -g base-index 1
set -g pane-base-index 1
set -g mouse on
setw -g mouse on
# Keybindongs
set -g xterm-keys no
set -g prefix C-a
bind -n End send-key C-e
bind -n Home send-key C-a
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
bind - split-window -v
bind _ split-window -h
bind Tab last-window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Status bar
set -g status-bg black
set -g status-fg white
set -g status-left ' '
set -g status-right ' #{?client_prefix,*,} #S '
set -g status-style fg=colour110
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39

97
vimrc
View file

@ -1,97 +0,0 @@
call plug#begin('~/.vim/plugged')
Plug 'jiangmiao/auto-pairs'
Plug 'ayu-theme/ayu-vim'
call plug#end()
set nocompatible " be iMproved
set laststatus=2
set number " Number line
"set relativenumber " Number line
syntax on " Support syntax
set ruler " Cursor position
set t_Co=256 " Enable 265 colors
set mouse=a " Mouse support
set mousehide " Mouse hide
set encoding=utf-8 " Use utf-8 encoding
set fileencodings=utf8,cp1251
set cursorline " The line with the cursor will be highlighted
set wrap " Line wrappingv
set linebreak " Line wrappingv
set nobackup " Disable backup files
set noswapfile " Disable *.swp files
set history=50 " History size 1000 edits
set autoread " Auto reade file for edit
set showmode
set showcmd
" Tab
set tabstop=4 " Tab size 4
set shiftwidth=4 " Tab size 4
set softtabstop=4 " Tab size 4
set expandtab " Tab consist of space
set smarttab
set autoindent
" Search
set incsearch " Highlighted
set ignorecase " Highlighted
set smartcase " Smart Rigger
" Buffers
set hidden
set smartindent
set visualbell t_vb= " Mute Vim
" ColoerCheme
set termguicolors
set background=dark
let ayucolor="mirage"
colorscheme ayu
""""""""""
" MAPING "
""""""""""
let mapleader=',' " Leader key
" Smart way to move between windows
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" Tabs
map <leader>tn :tabnew<CR> " Create new tab
map <leader>tc :tabclose<CR> " Tab kill
map <leader>1 :tabn 1<CR> " Change tab
map <leader>2 :tabn 2<CR> " Change tab
map <leader>3 :tabn 3<CR> " Change tab
map <leader>4 :tabn 4<CR> " Change tab
map <leader>5 :tabn 5<CR> " Change tab
map <leader>6 :tabn 6<CR> " Change tab
map <leader>7 :tabn 7<CR> " Change tab
map <leader>8 :tabn 8<CR> " Change tab
map <leader>9 :tabn 9<CR> " Change tab
" Bufer
nnoremap <C-N> :bnext<CR>
nnoremap <C-P> :bprev<CR>
""""""""
" GVIM "
""""""""
if has("gui_running")
set guioptions -=m
set guioptions -=T
map <leader>p "+gP " Past text in buffer
map <C-Tab> :tabnext<cr> " Change tab
map <C-S-Tab> :tabprev<cr> " Change tab
endif

15
zshrc
View file

@ -1,5 +1,6 @@
export ZSH="/home/sasha/.oh-my-zsh" export ZSH="/home/sasha/.oh-my-zsh"
source ~/.env source ~/.env
source ~/.profile
### Oh my zsh ### ### Oh my zsh ###
@ -7,21 +8,27 @@ ZSH_THEME="cyan-simple" # Set theme
#CASE_SENSITIVE="true" # Use case-sensitive completion. #CASE_SENSITIVE="true" # Use case-sensitive completion.
#HYPHEN_INSENSITIVE="true" # Case-sensitive completion must be off. #HYPHEN_INSENSITIVE="true" # Case-sensitive completion must be off.
#DISABLE_AUTO_UPDATE="true" # Disable bi-weekly auto-update checks. #DISABLE_AUTO_UPDATE="true" # Disable bi-weekly auto-update checks.
DISABLE_UPDATE_PROMPT="true" # Automatically update without prompting. #DISABLE_UPDATE_PROMPT="true" # Automatically update without prompting.
export UPDATE_ZSH_DAYS=13 # Change how often to auto-update.
#DISABLE_MAGIC_FUNCTIONS="true" # If pasting URLs and other text is messed up. #DISABLE_MAGIC_FUNCTIONS="true" # If pasting URLs and other text is messed up.
#DISABLE_LS_COLORS="true" # Disable colors in ls. #DISABLE_LS_COLORS="true" # Disable colors in ls.
#DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title. #DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title.
#ENABLE_CORRECTION="true" # Enable command auto-correction. #ENABLE_CORRECTION="true" # Enable command auto-correction.
#COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion. #COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion.
export UPDATE_ZSH_DAYS=13 # Change how often to auto-update.
export LANG=en_US.UTF-8 # Set locale export LANG=en_US.UTF-8 # Set locale
plugins=(pip python sudo git taskwarrior) plugins=(pip python sudo heroku git taskwarrior)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
### Variables ###
export EDITOR="nvim"
export VISUAL="nvim"
### Aliases ### ### Aliases ###
alias cls="clear" alias cls="clear"
alias :q alias :q="exit"
alias tmux="tmux -2"
alias ..="cd .." alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."