mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Delete not use, update config
This commit is contained in:
parent
25b4e80c8d
commit
73ebbfbe50
37 changed files with 163 additions and 1634 deletions
|
|
@ -16,13 +16,14 @@
|
|||
- `Launcher` dmenu, rofi
|
||||
|
||||
#### Install configs
|
||||
Since i use **[rcm](https://github.com/thoughtbot/rcm)** set it
|
||||
Since i use **[rcm](https://github.com/thoughtbot/rcm)** set it:
|
||||
~~~bash
|
||||
yay -S rcm
|
||||
~~~
|
||||
|
||||
And install configs
|
||||
And install configs:
|
||||
~~~bash
|
||||
git clone https://github.com/Smirnov-O/dotfiles .dotfiles
|
||||
rcup
|
||||
mv ~/.bin ~/bin
|
||||
~~~
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ cursor.style: Block
|
|||
debug.render_timer: false
|
||||
draw_bold_text_with_bright_colors: false
|
||||
background_opacity: 0.75
|
||||
#dynamic_title: true
|
||||
dynamic_title: true
|
||||
|
||||
colors:
|
||||
primary:
|
||||
|
|
|
|||
|
|
@ -1,61 +0,0 @@
|
|||
# [Berry](https://berrywm.org)
|
||||
|
||||

|
||||
-------------------------
|
||||
|
||||
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
|
||||
~~~bash
|
||||
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||
sxhkd -c ~/.config/berry/sxhkdrc &
|
||||
~/.config/berry/polybar/bar.sh &
|
||||
nitrogen --restore &
|
||||
picom -b &
|
||||
~~~
|
||||
|
||||
### Keybindings
|
||||
---------------
|
||||
|
||||
| Shourtcut | Command |
|
||||
| ------------------------- | ------ |
|
||||
| `mod` + q | Kill focus window |
|
||||
| `mod` + `split` + enter | Run program launcher (Rofi) |
|
||||
| `mod` + esc | Power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) |
|
||||
| `mod` + `ctrl` + u | Config edit [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-config-edit.sh) |
|
||||
| `mod` + `ctrl` + i | Passmenu(Dmenu interface for [pass](https://passwordstore.org)) |
|
||||
| `mod` + enter | Run `kitty` |
|
||||
| `mod` + F2 | Run `firefox` |
|
||||
| `mod` + `shift` + esc | Run `xkill` |
|
||||
| `mod` + plus | Add 5% volume |
|
||||
| `mod` + minus | Minus 5% volume |
|
||||
| `mod` + `shift` + minus | Mute volume |
|
||||
| `mod` + tab | Change focus window |
|
||||
| `mod` + h/j/k/l | Move focus window |
|
||||
| `mod` + `shift` + h/j/k/l | Resize focus window |
|
||||
| `mod` + [1-9] | Change workspace |
|
||||
| `mod` + `shift` + [1-9] | Send focus window to workspace |
|
||||
| `mod` + `alt` + t | Open ~/.todo file |
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#!/bin/bash
|
||||
# ------ Autostart ------ #
|
||||
setxkbmap "us,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 &
|
||||
nitrogen --restore &
|
||||
picom -b &
|
||||
|
||||
# ------ Berry ------ #
|
||||
# Set decoration geometry
|
||||
berryc border_width 0
|
||||
berryc inner_border_width 1
|
||||
berryc title_height 0
|
||||
berryc top_gap 24
|
||||
|
||||
# Set decoration colors
|
||||
berryc focus_color 073642
|
||||
berryc unfocus_color 002b36
|
||||
berryc inner_focus_color 268bd2
|
||||
berryc inner_unfocus_color 002b36
|
||||
berryc text_focus_color ffffff
|
||||
berryc text_unfocus_color eeeeee
|
||||
|
||||
# Other options
|
||||
berryc smart_place "true"
|
||||
berryc draw_text "true"
|
||||
berryc edge_lock "true"
|
||||
berryc set_font "Dina-9"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
polybar -c ~/.config/berry/polybar/polybar bar &
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
[settings]
|
||||
pseudo-transparency = true
|
||||
|
||||
[colors]
|
||||
background = #262A2B
|
||||
foreground = #FFFFFF
|
||||
secondary = #CED4DA
|
||||
alert = #DD6C6B
|
||||
|
||||
[bar/bar]
|
||||
override-redirect = false
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-left = 3
|
||||
padding-right = 3
|
||||
|
||||
width = 14%
|
||||
height = 22
|
||||
|
||||
offset-x = 85.8%
|
||||
offset-y = 0.4%
|
||||
|
||||
font-0 = Iosevka Nerd Font:style=Medium:size=10;3
|
||||
font-1 = FontAwesome5Free:style=Solid:size=8;2.5
|
||||
modules-left = wifi-signal date
|
||||
#modules-center = wp
|
||||
#modules-right = keyboard pulseaudio backlight time
|
||||
|
||||
[module/backlight]
|
||||
type = internal/xbacklight
|
||||
format = <ramp> <label>
|
||||
label = %percentage%%
|
||||
ramp-0 =
|
||||
|
||||
[module/wifi-signal]
|
||||
type = custom/script
|
||||
label = %output:%%
|
||||
exec = cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'
|
||||
interval = 3.0
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
label-volume = %percentage%%
|
||||
label-volume-foreground = ${colors.foreground}
|
||||
label-muted =
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
ramp-volume-4 =
|
||||
|
||||
[module/keyboard]
|
||||
type = internal/xkeyboard
|
||||
label-NAME-maxlen = 10
|
||||
format-prefix = ""
|
||||
label-layout = %layout%
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
blacklist-2= caps lock
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 600
|
||||
date = %e
|
||||
label = %date%
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 0
|
||||
time = %H:%M
|
||||
label = %time%
|
||||
|
||||
[module/wp]
|
||||
type = internal/xworkspaces
|
||||
format = <label-state>
|
||||
label-active = ×
|
||||
label-empty = ·
|
||||
label-urgent = ~
|
||||
label-active-foreground = ${colors.foreground}
|
||||
label-active-background = ${colors.background}
|
||||
label-active-padding = 1
|
||||
label-empty-foreground = ${colors.secondary}
|
||||
label-empty-padding =
|
||||
label-urgent-foreground = ${colors.alert}
|
||||
label-urgent-padding = 1
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 709 KiB |
|
|
@ -1,53 +0,0 @@
|
|||
# ------ Apps ------- #
|
||||
super + F2
|
||||
firefox
|
||||
super + Return
|
||||
kitty
|
||||
super + shift + Escape
|
||||
xkill
|
||||
super + alt + t
|
||||
kitty nvim .todo
|
||||
|
||||
# ------ Volum ------ #
|
||||
super + equal
|
||||
pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%
|
||||
super + minus
|
||||
pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5%
|
||||
super + shift + minus
|
||||
pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle
|
||||
|
||||
# ------ Menus ------ #
|
||||
super + shift + Return
|
||||
rofi -show drun
|
||||
super + Escape
|
||||
~/.script/dmenu/dmenu-power.sh
|
||||
super + control + i
|
||||
passmenu -h 24 -p Passwoeds
|
||||
super + control + u
|
||||
~/.script/dmenu/dmenu-config-edit.sh
|
||||
super + control + o
|
||||
~/.script/dmenu/dmenu-sysmon.sh
|
||||
|
||||
# ------ Berry ------ #
|
||||
super + control + r
|
||||
pkill -USR1 -x sxhkd; pkill polybar; ~/.config/berry/polybar/bar.sh
|
||||
super + shift {h, j, k, l}
|
||||
berryc window_move {-50 0, 0 50, 0 -50, 50 0}
|
||||
super + control + {h, j, k, l}
|
||||
berryc window_resize {-50 0, 0 50, 0 -50, 50 0}
|
||||
super + {1-9}
|
||||
berryc switch_workspace {0-9}
|
||||
super + shift + {1-9}
|
||||
berryc send_to_workspace {0-9}
|
||||
super + F11
|
||||
berryc window_monocle
|
||||
super + n
|
||||
berryc toggle_decorations
|
||||
super + Tab
|
||||
berryc cycle_focus
|
||||
super + q
|
||||
berryc window_close
|
||||
super + c
|
||||
berryc window_center
|
||||
~button1
|
||||
berryc pointer_focus
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
set color_cmdline_bg=default
|
||||
set color_cmdline_fg=default
|
||||
set color_error=lightred
|
||||
set color_info=lightblue
|
||||
set color_separator=blue
|
||||
set color_statusline_bg=gray
|
||||
set color_statusline_fg=white
|
||||
set color_titleline_bg=blue
|
||||
set color_titleline_fg=white
|
||||
set color_win_bg=default
|
||||
set color_win_cur=lightblue
|
||||
set color_win_cur_sel_bg=lightblue
|
||||
set color_win_cur_sel_fg=default
|
||||
set color_win_dir=lightblue
|
||||
set color_win_fg=default
|
||||
set color_win_inactive_cur_sel_bg=default
|
||||
set color_win_inactive_cur_sel_fg=lightblue
|
||||
set color_win_inactive_sel_bg=default
|
||||
set color_win_inactive_sel_fg=default
|
||||
set color_win_sel_bg=lightblue
|
||||
set color_win_sel_fg=white
|
||||
set color_win_title_bg=blue
|
||||
set color_win_title_fg=white
|
||||
|
|
@ -9,20 +9,18 @@ static const char col_gray3[] = "#CED4DA";
|
|||
static const char col_gray4[] = "#FFFFFF";
|
||||
static const char col_cyan[] = "#008DCD";
|
||||
static const char *colors[][3] = {
|
||||
/* fg bg border */
|
||||
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
|
||||
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
|
||||
};
|
||||
|
||||
// Workspaces names
|
||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
//static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
|
||||
|
||||
// Rules
|
||||
static const Rule rules[] = {
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "trayer", NULL, NULL, ~0, True, -1 },
|
||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 8,0, -1 },
|
||||
};
|
||||
|
||||
// Autostart
|
||||
|
|
@ -33,10 +31,9 @@ static const char *const autostart[] = {
|
|||
};
|
||||
|
||||
// Layout
|
||||
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
||||
static const int nmaster = 1; /* number of clients in master area */
|
||||
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
|
||||
|
||||
static const float mfact = 0.55; // factor of master area size [0.05..0.95]
|
||||
static const int nmaster = 1; // number of clients in master area
|
||||
static const int resizehints = 1; // 1 means respect size hints in tiled resizals
|
||||
static const Layout layouts[] = {
|
||||
{ "[]=", tile },
|
||||
{ "><>", NULL },
|
||||
|
|
@ -57,15 +54,38 @@ static char dmenumon[2] = "0";
|
|||
static const char *dmenucmd[] = { "dmenu_run", NULL };
|
||||
static const char *launchercmd[] = { "rofi", "-location", "2", "-show", "drun", NULL };
|
||||
static const char *passmenucmd[] = { "passmenu", "-h", "24", "-p", "Passwords", NULL };
|
||||
static const char *dmenuconfig[] = { "./.script/dmenu/dmenu-config-edit.sh", NULL };
|
||||
static const char *dmenupower[] = { "./.script/dmenu/dmenu-power.sh", NULL };
|
||||
static const char *browsercmd[] = { "firefox", NULL };
|
||||
static const char *filemanager[] = { "thunar", NULL };
|
||||
static const char *codeeditor[] = { "alacritty", "-e", "nvim", NULL };
|
||||
static const char *termcmd[] = { "alacritty", NULL };
|
||||
|
||||
// Keyboards binds
|
||||
static Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = launchercmd } }, // Program menu
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, // Terminal
|
||||
{ MODKEY, XK_q, killclient, {0} }, // Kill window
|
||||
// User keys
|
||||
{ MODKEY, XK_b, togglebar, {0} }, // Toggle status bar
|
||||
{ MODKEY, XK_q, killclient, {0} }, // Kill window
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, // Terminal
|
||||
{ MODKEY|ShiftMask, XK_w, spawn, {.v = browsercmd } }, // Browser
|
||||
{ MODKEY|ShiftMask, XK_f, spawn, {.v = filemanager } }, // File manager
|
||||
{ MODKEY|ShiftMask, XK_e, spawn, {.v = codeeditor } }, // File manager
|
||||
|
||||
// Menus
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = launchercmd } }, // Program menu
|
||||
{ MODKEY|ControlMask, XK_i, spawn, {.v = passmenucmd } }, // Password menu
|
||||
{ MODKEY|ControlMask, XK_u, spawn, {.v = dmenuconfig } }, // Configuration menu
|
||||
{ MODKEY, XK_Escape, spawn, {.v = dmenupower } }, // Power menu
|
||||
|
||||
// Volume
|
||||
{ MODKEY, XK_minus, spawn, SHCMD("amixer sset 'Master' 2%-") },
|
||||
{ MODKEY, XK_equal, spawn, SHCMD("amixer sset 'Master' 2%+") },
|
||||
{ MODKEY|ShiftMask, XK_minus, spawn, SHCMD("amixer sset 'Master' toggle") },
|
||||
|
||||
// DWM keys
|
||||
{ MODKEY, XK_Tab, setlayout, {0} }, // Change layout
|
||||
{ MODKEY|ShiftMask, XK_Tab, togglefloating, {0} }, // Set floating layout
|
||||
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||
|
|
@ -73,23 +93,6 @@ static Key keys[] = {
|
|||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||
{ MODKEY, XK_Return, zoom, {0} },
|
||||
// { MODKEY, XK_Tab, view, {0} },
|
||||
{ MODKEY, XK_Tab, setlayout, {0} },
|
||||
{ MODKEY|ShiftMask, XK_Tab, togglefloating, {0} },
|
||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||
|
||||
// Menus
|
||||
{ MODKEY|ControlMask, XK_i, spawn, {.v = passmenucmd} },
|
||||
{ MODKEY|ControlMask, XK_u, spawn, SHCMD("~/.script/dmenu/dmenu-config-edit.sh") },
|
||||
{ MODKEY, XK_Escape, spawn, SHCMD("~/.script/dmenu/dmenu-power.sh") },
|
||||
|
||||
// Volume
|
||||
{ MODKEY, XK_minus, spawn, SHCMD("amixer sset 'Master' 2%-") },
|
||||
{ MODKEY, XK_equal, spawn, SHCMD("amixer sset 'Master' 2%+") },
|
||||
{ MODKEY|ShiftMask, XK_minus, spawn, SHCMD("amixer sset 'Master' toggle") },
|
||||
|
||||
// Workspaces
|
||||
TAGKEYS( XK_1, 0)
|
||||
|
|
|
|||
|
|
@ -1,100 +1,10 @@
|
|||
# [i3](https://i3wm.org)
|
||||
|
||||

|
||||
----
|
||||
-------------------------
|
||||
|
||||
### Install
|
||||
-----------
|
||||
~~~bash
|
||||
sudo pacman -S i3-gaps polybar
|
||||
~~~
|
||||
|
||||
**Mod key:** `super(win)`
|
||||
**Font:** `monospace 10`, `JetBrains Mono 10`
|
||||
|
||||
### Auttostart
|
||||
--------------
|
||||
~~~bash
|
||||
nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_pass> name net
|
||||
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||
org.telegram.desktop
|
||||
nitrogen --restore
|
||||
redshift-gtk
|
||||
picom -b
|
||||
~~~
|
||||
|
||||
### Variables
|
||||
-------------
|
||||
~~~i3
|
||||
set $terminal kitty
|
||||
set $browser qutebwoser
|
||||
set $filemanager pcmanfm
|
||||
~~~
|
||||
|
||||
### Keybindings
|
||||
---------------
|
||||
|
||||
| Shourtcut | Command |
|
||||
| ----------------------- | ------ |
|
||||
| `mod` + q | Kill focus window |
|
||||
| `mod` + `ctrl` + r | Restart i3 |
|
||||
| `mod` + a | Focus thr oarent container |
|
||||
| `mod` + `shift` + space | Enable/disable floating mode |
|
||||
| `mod` + F11 | Enable/disable fullscreen mode |
|
||||
| `mod` + h/v | Horisontal/Vertical split |
|
||||
| `mod` + s/w/e | Container mode Stacked/Tabbed/Split |
|
||||
| `mod` + `shift` + ~ | Move focus window to scratchpad |
|
||||
| `mod` + ~ | Show window from scratchpad |
|
||||
| `mod` + `shift` + enter | Run program launcher (Rofi) |
|
||||
| `mod` + esc | Power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) |
|
||||
| `mod` + `ctrl` + u | Config edit [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-config-edit.sh) |
|
||||
| `mod` + `ctrl` + i | Passmenu(Dmenu interface for [pass](https://passwordstore.org)) |
|
||||
| `mod` + tab | Window switcher(Rofi) |
|
||||
| `mod` + enter | Run program from `$terminal` variable(default: kitty) |
|
||||
| `mod` + F2 | Run program from `$browser` variable(default: qutebwoser) |
|
||||
| Print Screen | Screenshot |
|
||||
| `mod` + plus | Add 5% volume |
|
||||
| `mod` + minus | Minus 5% volume |
|
||||
| `mod` + `shift` + minus | Mute volume |
|
||||
| `mod` + Arrow/(h/j/k/l) | Change focus window |
|
||||
| `mod` + `shift` + Arrow/(h/j/k/l) | Move focus window |
|
||||
| `mod` + [1-9] | Change workspace |
|
||||
| `mod` + `shift` + [1-9] | Send focus window to workspace |
|
||||
| `mod` + `alt` + t | Open ~/.todo file |
|
||||
| `mod` + r | Enable/disable `resize` mode |
|
||||
| `mod` + g | Enable/disable `gups` |
|
||||
|
||||
### Rules
|
||||
---------
|
||||
Open `kitty` on `1` workspace
|
||||
|
||||
Open `chromium, `firefox`, `qutebwoser` on `2` workspace
|
||||
|
||||
Open `sublime`, `code`, `emacs` on `3` workspace
|
||||
|
||||
Open `thunar`, `pcmanfm` on `4` workspace
|
||||
|
||||
Open `discord`, `telegram` on `6` workspace
|
||||
|
||||
Open `keepassxc` on `7` workspace
|
||||
|
||||
Open `mousepad`, `lxappeatance`, `qt5ct`, `notrogen` in floating mode
|
||||
|
||||
### Modes
|
||||
---------
|
||||
|
||||
**Resize:** chande window size
|
||||
|
||||
**Gups:** edit gups size
|
||||
|
||||
| Keys for `resize` mode | What is he doing |
|
||||
| -------------------- | -------------------------- |
|
||||
| Arrow / (h/j/k/l) | Change window size on 10px |
|
||||
| enter / esc / `mod` + r | Exit from resize mode |
|
||||
|
||||
| Keys for `gups` mode | What is he doing |
|
||||
| -------------------- | -------------------------- |
|
||||
| plus / minus | Plus/Minus 2px gups |
|
||||
| 0 | Set `0` gups |
|
||||
| `shift` + plus/minus | Plus/Minus 4px gups |
|
||||
| enter / esc / `mod` + g | Exit from resize mode |
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB |
|
|
@ -1,26 +0,0 @@
|
|||
# nvim
|
||||
|
||||

|
||||
---------------
|
||||
|
||||
To manage plugins, I use [vim plug](https://github.com/junegunn/vim-plug). I use the following plugins:
|
||||
- `nten16.vim`: Colorschemes
|
||||
- `lightline`: Status bar
|
||||
- `vim-indent-guides`: Visually displaying indent levels
|
||||
- `vim-easymotion`: Fast navigation
|
||||
- `nerdtree`: File manager
|
||||
- `vim-devicons`: Icons for nerdtree
|
||||
- `ctrlp.vim`: File saecher
|
||||
- `auto-pairs`: Close brackets, parens, quotes
|
||||
- `coc.nvim`: Instant completion
|
||||
- `emmet-vim`: Emmet :D
|
||||
- `vim-javascript`: Syntax support for JS
|
||||
- `i3-vim-syntax`: Syntax support for i3
|
||||
- `sxhkd-vim`: Syntax support for sxhkd
|
||||
- `vim-scheme`: Syntax support for scheme
|
||||
- `scss-syntax.vim`: Syntax support for scss
|
||||
- `vim-fist`: Syntax support for fish
|
||||
- `vim-css-color`: Color name highlighter
|
||||
- `vim-markdown`: Syntax support for fish
|
||||
- `markdown-preview.nvim`: Preview markdown in real-time
|
||||
- `vim-table-mode`: Automatic markdown table creator & formatter
|
||||
|
|
@ -1,35 +1,27 @@
|
|||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels
|
||||
Plug 'itchyny/lightline.vim' " Status line
|
||||
Plug 'Smirnov-O/nten16.vim' " Color scheme
|
||||
Plug 'frazrepo/vim-rainbow' " Rainbow brackets
|
||||
Plug 'mhinz/vim-startify' " Start page
|
||||
Plug 'ap/vim-css-color' " CSS color preview
|
||||
Plug 'itchyny/lightline.vim' " Status line
|
||||
Plug 'airblade/vim-gitgutter' " Git indicator
|
||||
Plug 'preservim/nerdcommenter' " Code commenter
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'voldikss/vim-floaterm' " Terminal
|
||||
|
||||
" Project/file navigation
|
||||
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
||||
Plug 'preservim/tagbar', {'on': 'TagbarToggle'}
|
||||
Plug 'kien/ctrlp.vim', {'on': 'CtrlP'}
|
||||
Plug 'vimwiki/vimwiki' " Wiki in vim
|
||||
Plug 'ap/vim-css-color' " CSS color preview
|
||||
Plug 'mhinz/vim-startify' " Start page
|
||||
Plug 'voldikss/vim-floaterm' " Terminal floating window
|
||||
Plug 'kassio/neoterm' " Terminal wrapper
|
||||
Plug 'editorconfig/editorconfig-vim' " EditorConfig
|
||||
|
||||
" Completion & snippets
|
||||
Plug 'ycm-core/YouCompleteMe'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
Plug 'SirVer/ultisnips'
|
||||
|
||||
" Language syntax
|
||||
" Programing
|
||||
Plug 'metakirby5/codi.vim'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
|
||||
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
|
||||
Plug 'xinhangliu/ficus.vim', {'for': 'markdown'}
|
||||
Plug 'vim-python/python-syntax', {'for': 'python'}
|
||||
Plug 'alaviss/nim.nvim', {'for': 'nim'}
|
||||
Plug 'fatih/vim-go', {'for': 'go'}
|
||||
Plug 'nsf/gocode', {'for': 'go'}
|
||||
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
||||
Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'}
|
||||
call plug#end()
|
||||
|
||||
" Theme
|
||||
|
|
@ -105,10 +97,11 @@ let g:lightline = {
|
|||
let g:vim_markdown_folding_disabled = 1
|
||||
let g:vim_markdown_frontmatter=1
|
||||
let g:markdown_fenced_languages = ['go', 'python', 'bash', 'sh=bash']
|
||||
let g:ficus_dir = "~/Documents/Notes"
|
||||
|
||||
" Rainbow
|
||||
let g:rainbow_active = 1
|
||||
" VimWiki
|
||||
let g:vimwiki_list = [{'path': '~/Documents/Notes', 'syntax': 'markdown', 'ext': '.md'}]
|
||||
"let g:vimwiki_ext2syntax = {".md": "markdown"}
|
||||
let g:VimWiki_markdown_link_ext = 1
|
||||
|
||||
" Python
|
||||
let g:python_higlight_all = 1
|
||||
|
|
@ -117,13 +110,11 @@ let g:python_higlight_all = 1
|
|||
let g:floaterm_title = ""
|
||||
let g:floaterm_wintype = "floating"
|
||||
let g:floaterm_position = "bottomright"
|
||||
let g:floaterm_borderchars = ""
|
||||
let g:floaterm_height = 0.4
|
||||
let g:floaterm_width = 0.5
|
||||
let g:floaterm_autoclose = 2
|
||||
nmap <A-t> :FloatermNew<CR>
|
||||
|
||||
|
||||
" UltiSnipts
|
||||
let g:UltiSnipsExpandTrigger="<C-a>"
|
||||
let g:UltiSnipsEditSplit="vertical"
|
||||
|
|
@ -139,20 +130,6 @@ let g:go_highlight_operators = 1
|
|||
let g:go_highlight_build_constraints = 1
|
||||
let g:go_snippet_engine = ""
|
||||
|
||||
" TagBar
|
||||
let g:tagbar_autoclose = 1
|
||||
let g:tagbar_width = 18
|
||||
let g:tagbar_left = 1
|
||||
|
||||
" Nerdtree
|
||||
let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git']
|
||||
let g:NERDTreeWinPos = "right"
|
||||
let g:NERDTreeWinSize = 28
|
||||
let NERDTreeMinimalUI = 1
|
||||
|
||||
" CtrlP
|
||||
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
|
||||
|
||||
" Startify
|
||||
let g:startify_custom_header = [
|
||||
\ " _____ _____ _ ",
|
||||
|
|
@ -195,8 +172,3 @@ noremap <A-9> :tabn 9<CR>
|
|||
" Buffer(s)
|
||||
noremap <leader>p :bnext<CR>
|
||||
noremap <leader>o :bprev<CR>
|
||||
|
||||
" Plugins
|
||||
map <leader>gg :Goyo 80%x95% <CR>
|
||||
map <F9> :TagbarToggle<CR>
|
||||
map <C-b> :NERDTreeToggle<CR>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 107 KiB |
|
|
@ -1,9 +0,0 @@
|
|||
# Openbox
|
||||

|
||||
------------------------
|
||||
|
||||
### Install openbox, panel and applet(s)
|
||||
~~~bash
|
||||
sudo pacman -S openbox obconf volumeicon network-manager-applet xfce4-clipman-plugin
|
||||
yay -S fbxkb
|
||||
~~~
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
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 &
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
<?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>
|
||||
|
|
@ -1,640 +0,0 @@
|
|||
<?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>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB |
|
|
@ -19,27 +19,3 @@ setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
|
|||
nitrogen --restore &
|
||||
picom --experimental-backends -b &
|
||||
~~~~
|
||||
|
||||
### Keybindings
|
||||
| Hotkey | Action |
|
||||
| ----------------------- | -------------------------------- |
|
||||
| MOD + RETURN | Open termianl |
|
||||
| MOD + SHIFT + RETURN | Open program launcher(rofi) |
|
||||
| MOD + f | Open filemanager |
|
||||
| MOD + r | Open qtile spawn menu |
|
||||
| MOD + TAB | Change layout |
|
||||
| MOD + q | Kill focused window |
|
||||
| MOD + CONTROL + r | Restart qtile |
|
||||
| MOD + 1-9 | Switch focus to workspace |
|
||||
| MOD + SHIFT + 1-9 | Send focused window to workspace |
|
||||
| MOD + h/j/k/l | Change focus window |
|
||||
| MOD + SHIFT + h/j/k/l | Move focused window |
|
||||
| MOD + CONTROL + h/j/k/l | Resize focused window |
|
||||
| MOD + -/+ | Plus/minus 2% volume |
|
||||
| MOD + SHIFT + - | Mute volume |
|
||||
| MOD + CONTROL + i | Open passmenu |
|
||||
| MOD + CONTROL + u | Open config edit Power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-config-edit.sh) |
|
||||
| MOD + Escape | Open power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) |
|
||||
| Print | Screenhot |
|
||||
| SHIFT + Print | Full screen screenhot |
|
||||
| MOD + ALT + t | Open `~/.todo` file in neovim |
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ from libqtile import bar, layout, widget, hook
|
|||
from libqtile.config import Click, Drag, Group, Key, Screen
|
||||
from libqtile.lazy import lazy
|
||||
from typing import List
|
||||
import kblayout
|
||||
import os
|
||||
import kblayout, os
|
||||
|
||||
|
||||
mod = "mod4"
|
||||
|
|
@ -11,8 +10,8 @@ alt = "mod1"
|
|||
|
||||
terminal = "alacritty"
|
||||
browser = "firefox"
|
||||
filemanager="thunar"
|
||||
user = "sasha"
|
||||
filemanager = "thunar"
|
||||
editor = "alacritty -e nvim"
|
||||
|
||||
color = [
|
||||
"#FFFFFF", # 0. Text color
|
||||
|
|
@ -28,7 +27,9 @@ color = [
|
|||
|
||||
|
||||
@hook.subscribe.startup_once
|
||||
def autostart(): os.system("~/.config/qtile/autostart.sh")
|
||||
def autostart():
|
||||
os.system("~/.config/qtile/autostart.sh")
|
||||
|
||||
|
||||
keys = [
|
||||
# Applications
|
||||
|
|
@ -36,15 +37,18 @@ keys = [
|
|||
lazy.spawn(terminal),
|
||||
desc="Launch terminal"
|
||||
),
|
||||
Key([mod], "F2",
|
||||
Key([mod, "shift"], "w",
|
||||
lazy.spawn(browser),
|
||||
desc="Launch browser"
|
||||
),
|
||||
Key([mod], "f",
|
||||
Key([mod, "shift"], "f",
|
||||
lazy.spawn(filemanager),
|
||||
desc="Launch filemanager"
|
||||
),
|
||||
|
||||
Key([mod, "shift"], "e",
|
||||
lazy.spawn(editor),
|
||||
desc="Launch code editor"
|
||||
),
|
||||
# Window control
|
||||
Key([mod], "q",
|
||||
lazy.window.kill(),
|
||||
|
|
@ -115,15 +119,15 @@ keys = [
|
|||
|
||||
# Volume
|
||||
Key([mod], "equal",
|
||||
lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%"),
|
||||
lazy.spawn("amixer sset Master 2%+"),
|
||||
desc="Plus 2% volume"
|
||||
),
|
||||
Key([mod], "minus",
|
||||
lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%"),
|
||||
lazy.spawn("amixer sset Master 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"),
|
||||
lazy.spawn("amixer sset Master toggle"),
|
||||
desc="Mute volume"
|
||||
),
|
||||
|
||||
|
|
@ -137,7 +141,7 @@ keys = [
|
|||
desc="(Rofi) Program launcher"
|
||||
),
|
||||
Key([mod],"Escape",
|
||||
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-power.sh"),
|
||||
lazy.spawn("./.script/dmenu/dmenu-power.sh"),
|
||||
desc="Power menu"
|
||||
),
|
||||
Key([mod, "control"], "i",
|
||||
|
|
@ -145,21 +149,21 @@ keys = [
|
|||
desc="Dmenu password menu"
|
||||
),
|
||||
Key([mod, "control"], "u",
|
||||
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-config-edit.sh"),
|
||||
lazy.spawn("./.script/dmenu/dmenu-config-edit.sh"),
|
||||
desc="Config editor"
|
||||
),
|
||||
Key([mod, "control"], "o",
|
||||
lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-sysmon.sh"),
|
||||
lazy.spawn("./.script/dmenu/dmenu-sysmon.sh"),
|
||||
desc="Choice system monitor"
|
||||
),
|
||||
|
||||
# Screenhot
|
||||
Key([], "Print",
|
||||
lazy.spawn(f"scrot -s /home/{user}/$(date +%Y-%m-%d-%H-%M-%S).png"),
|
||||
lazy.spawn("scrot -s ./$(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"),
|
||||
lazy.spawn(f"scrot ./$(date +%Y-%m-%d-%H-%M-%S).png"),
|
||||
desc="Create screenhot full screen(scrot)"
|
||||
),
|
||||
|
||||
|
|
@ -172,7 +176,7 @@ keys = [
|
|||
lazy.spawncmd(),
|
||||
desc="Spawn a command using a prompt widget"
|
||||
),
|
||||
Key([mod, "shift"], "Escape",
|
||||
Key([mod, "shift"], "q",
|
||||
lazy.spawn("xkill"),
|
||||
desc="Xkill"
|
||||
),
|
||||
|
|
@ -286,8 +290,7 @@ follow_mouse_focus = True
|
|||
bring_front_click = False
|
||||
cursor_warp = False
|
||||
floating_layout = layout.Floating(
|
||||
**layout_theme,
|
||||
float_rules=[
|
||||
**layout_theme, float_rules=[
|
||||
{"wmclass": "confirm"},
|
||||
{"wmclass": "dialog"},
|
||||
{"wmclass": "download"},
|
||||
|
|
@ -301,7 +304,7 @@ floating_layout = layout.Floating(
|
|||
{"wmclass": "maketag"},
|
||||
{"wname": "branchdialog"},
|
||||
{"wname": "pinentry"},
|
||||
{"wmclass": "ssh-askpass"},
|
||||
{"wmclass": "ssh-askpass"}
|
||||
])
|
||||
auto_fullscreen = True
|
||||
focus_on_window_activation = "smart"
|
||||
|
|
|
|||
|
|
@ -1,23 +1,28 @@
|
|||
"""
|
||||
For working widget install `xkblayout`
|
||||
$ yay -S xkblayout
|
||||
"""
|
||||
from libqtile.widget import base
|
||||
import os
|
||||
|
||||
|
||||
class KBLayout(base.InLoopPollText):
|
||||
"""Widget for displaying the current keyboard layout
|
||||
It requires setxkbmap and xkblayout"""
|
||||
orientations = base.ORIENTATION_HORIZONTAL
|
||||
defaults = [
|
||||
("background", "#000000", "Backbround color"),
|
||||
("foreground", "#ffffff", "Foreground color"),
|
||||
]
|
||||
KBCMD = """
|
||||
case "$(xkblayout)" in
|
||||
"Eng") echo "us" ;;
|
||||
"Rus") echo "ru" ;;
|
||||
"Ukr") echo "ua" ;;
|
||||
esac
|
||||
"""
|
||||
|
||||
|
||||
class KBLayout(base.InLoopPollText):
|
||||
"""Widget for displaying the current keyboard layout"""
|
||||
orientations = base.ORIENTATION_HORIZONTAL
|
||||
def __init__(self, **config):
|
||||
base.InLoopPollText.__init__(self, **config)
|
||||
|
||||
def get_keyboard(self):
|
||||
kb = os.popen("xkblayout").read().rstrip("\n")
|
||||
return kb
|
||||
|
||||
def poll(self):
|
||||
kb = os.popen(".config/qtile/kblay.sh").read().rstrip('\n').encode('utf-8').decode('utf-8')
|
||||
kb = os.popen(KBCMD).read().rstrip('\n')\
|
||||
.encode('utf-8').decode('utf-8')
|
||||
|
||||
return kb
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ c.tabs.position = "top"
|
|||
c.downloads.position = "bottom"
|
||||
|
||||
# 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('<Ctrl-T>', 'open -t about:blank')
|
||||
c.url.searchengines = {
|
||||
'DEFAULT': 'https://www.google.com/search?q={}',
|
||||
'ddg': 'https://duckduckgo.com/?q={}',
|
||||
'ddgr': 'https://duckduckgo.com/?q={}',
|
||||
'arw': 'https://wiki.archlinux.org/?search={}',
|
||||
'rdd': 'https://www.reddit.com/r/{}'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,223 +0,0 @@
|
|||
#---- 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
|
||||
|
||||
68
conkyrc
68
conkyrc
|
|
@ -1,68 +0,0 @@
|
|||
conky.config = {
|
||||
background = false,
|
||||
cpu_avg_samples = 2,
|
||||
diskio_avg_samples = 10,
|
||||
double_buffer = true,
|
||||
if_up_strictness = 'address',
|
||||
net_avg_samples = 2,
|
||||
no_buffers = true,
|
||||
temperature_unit = 'celsius',
|
||||
text_buffer_size = 2048,
|
||||
update_interval = 2,
|
||||
imlib_cache_size = 0,
|
||||
alignment = 'top_right',
|
||||
gap_x = 40,
|
||||
gap_y = 60,
|
||||
minimum_height = 50,
|
||||
minimum_width = 200,
|
||||
maximum_width = 700,
|
||||
border_inner_margin = 10,
|
||||
border_outer_margin = 0,
|
||||
border_width = 0,
|
||||
default_bar_width = 280,
|
||||
default_bar_height = 2,
|
||||
default_gauge_height = 25,
|
||||
default_gauge_width =40,
|
||||
default_graph_height = 40,
|
||||
default_graph_width = 153,
|
||||
default_shade_color = '#000000',
|
||||
default_outline_color = '#828282',
|
||||
draw_borders = false,
|
||||
draw_graph_borders = true,
|
||||
draw_shades = false,
|
||||
draw_outline = false,
|
||||
stippled_borders = 0,
|
||||
extra_newline = false,
|
||||
format_human_readable = true,
|
||||
font = 'Jatbrains Mono',
|
||||
max_text_width = 0,
|
||||
max_user_text = 16384,
|
||||
override_utf8_locale = true,
|
||||
short_units = true,
|
||||
top_name_width = 21,
|
||||
top_name_verbose = false,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
use_xft = true,
|
||||
xftalpha = 1,
|
||||
own_window = true,
|
||||
own_window_argb_value = 0,
|
||||
own_window_argb_visual = true,
|
||||
own_window_class = 'Conky',
|
||||
own_window_colour = '#000000',
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
own_window_transparent = yes,
|
||||
own_window_title = 'Conky',
|
||||
own_window_type = 'override',
|
||||
background = no,
|
||||
default_color = '#FFFFFF',
|
||||
color1 = '#FFFFFF',
|
||||
color2 = '#DFDFDF'
|
||||
};
|
||||
|
||||
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}
|
||||
${font Jatbrains Mono:weight=Medium:size=10}${exec cat -n "$HOME/.todo" | fmt -s -w 66}\
|
||||
${color1}
|
||||
${font}
|
||||
]]
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
(package! rainbow-mode)
|
||||
(package! async)
|
||||
(package! go-autocomplete)
|
||||
(package! markdown-mode)
|
||||
(package! hy-mode)
|
||||
(package! nim-mode)
|
||||
|
|
|
|||
|
|
@ -3,11 +3,8 @@
|
|||
name = Smirnov Olexandr
|
||||
email = ss2316544@gmail.com
|
||||
|
||||
[github]
|
||||
name = Smirnov-O
|
||||
|
||||
[web]
|
||||
browser = firefox # chromium, google-chrome,
|
||||
browser = firefox
|
||||
|
||||
[core]
|
||||
editor = nvim
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# IDE
|
||||
.idea
|
||||
*~
|
||||
~*
|
||||
.vscode
|
||||
**~
|
||||
|
||||
# Logs and databases
|
||||
*.log
|
||||
|
|
@ -13,16 +13,18 @@
|
|||
*.pyc
|
||||
*.swp
|
||||
.*.swp
|
||||
*.swo
|
||||
*.swp
|
||||
__pycache__
|
||||
|
||||
# Packages
|
||||
*.7z
|
||||
*.rar
|
||||
*.tar
|
||||
*.zip
|
||||
*.tar*
|
||||
*.bz2
|
||||
|
||||
# Compiled siurce
|
||||
*.so
|
||||
*.o
|
||||
*.out
|
||||
*.bin
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
if [ $(pgrep polybar) ]
|
||||
then
|
||||
polybar i3bar >/dev/null
|
||||
#~/.config/polybar/launch.sh
|
||||
# ~/.config/i3/bar.sh
|
||||
else
|
||||
killall -q polybar
|
||||
pkill polybar
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
|
||||
while read snapname revision; do
|
||||
while read snapname revision
|
||||
do
|
||||
sudo snap remove "$snapname" --revision="$revision"
|
||||
done
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
WALLPAPERS=/home/sasha/Изображения/Walpapper
|
||||
SLEEP_TIME=3
|
||||
|
||||
while true; do
|
||||
feh --randomize --bg-scale $WALLPAPERS/*
|
||||
sleep $SLEEP_TIME;
|
||||
done
|
||||
|
||||
15
taskrc
15
taskrc
|
|
@ -1,15 +0,0 @@
|
|||
# Taskwarrior program configuration file.
|
||||
|
||||
### Files ###
|
||||
data.location=~/.task
|
||||
|
||||
### Color theme ###
|
||||
include /usr/share/doc/task/rc/solarized-dark-256.theme
|
||||
|
||||
### Variables ###
|
||||
weekstart=monday
|
||||
search.case.sensitive=no
|
||||
active.indicator=↪
|
||||
report.list.columns=id,project,priority,description,entry.age
|
||||
alias.burndown=burndown.daily
|
||||
default.command=ready limit:page
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
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
|
||||
|
|
|
|||
14
zshrc
14
zshrc
|
|
@ -1,6 +1,5 @@
|
|||
export ZSH="$HOME/.oh-my-zsh"
|
||||
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
|
||||
#source ~/.env
|
||||
source ~/.profile
|
||||
|
||||
### Oh my zsh ###
|
||||
|
|
@ -24,18 +23,22 @@ source $ZSH/oh-my-zsh.sh
|
|||
### Variables ###
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="nvim"
|
||||
export GOPATH="$HOME/.go"
|
||||
export GOPATH="$HOME/Go"
|
||||
|
||||
### Function ###
|
||||
function bgcolor {
|
||||
convert -size 1x1 xc:$1 /tmp/bgc.png
|
||||
feh --bg-tile /tmp/bgc.png
|
||||
}
|
||||
function codi() {
|
||||
local syntax="${1:-python}"
|
||||
nvim -c "let g:startify_disable_at_vimenter = 1 |\
|
||||
Codi $syntax" "$@"
|
||||
}
|
||||
|
||||
### Aliases ###
|
||||
alias cls="clear"
|
||||
alias mkdir="mkdir -p"
|
||||
alias mkd="mkdir"
|
||||
alias sl="ls"
|
||||
alias cp="cp -r"
|
||||
alias du="du -sh"
|
||||
|
|
@ -46,12 +49,9 @@ alias rf="rm -rf"
|
|||
|
||||
# Program
|
||||
alias vim="nvim"
|
||||
alias vi="nvim"
|
||||
alias tmux="tmux -2"
|
||||
alias ipython="ipython --no-banner"
|
||||
alias icat="kitty +kitten icat"
|
||||
alias ccat="sh -c cat"
|
||||
alias cat="bat"
|
||||
eval $(thefuck --alias)
|
||||
|
||||
# Exit
|
||||
alias :q="exit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue