Move all config files to config directory and add corresponding changes to bootstrap script
This commit is contained in:
73
config/.bashrc
Normal file
73
config/.bashrc
Normal file
@@ -0,0 +1,73 @@
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# _ _ ___ _ ____ _____ ____
|
||||
# / \ | | |_ _| / \ / ___|| ____/ ___|
|
||||
# / _ \ | | | | / _ \ \___ \| _| \___ \
|
||||
# / ___ \| |___ | | / ___ \ ___) | |___ ___) |
|
||||
# /_/ \_\_____|___/_/ \_\____/|_____|____/
|
||||
#
|
||||
|
||||
alias sudo='sudo '
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias lah='ls -lah'
|
||||
alias la='ls -a'
|
||||
|
||||
|
||||
alias ed='$EDITOR'
|
||||
alias count='wc -l'
|
||||
|
||||
alias c='clear'
|
||||
|
||||
# Git aliases
|
||||
alias g='git'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gp='git push'
|
||||
alias gl='git log'
|
||||
alias gs='git status'
|
||||
alias gd='git diff'
|
||||
|
||||
|
||||
# _____ _ ___ _____ ____ ___ _ _ __ __ _____ _ _ _____
|
||||
# | ____| \ | \ \ / /_ _| _ \ / _ \| \ | | \/ | ____| \ | |_ _|
|
||||
# | _| | \| |\ \ / / | || |_) | | | | \| | |\/| | _| | \| | | |
|
||||
# | |___| |\ | \ V / | || _ <| |_| | |\ | | | | |___| |\ | | |
|
||||
# |_____|_| \_| \_/ |___|_| \_\\___/|_| \_|_| |_|_____|_| \_| |_|
|
||||
#
|
||||
|
||||
export TERM=alacritty
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
|
||||
# Find arch package by binary
|
||||
source /usr/share/doc/pkgfile/command-not-found.bash
|
||||
|
||||
shopt -s autocd
|
||||
|
||||
_GREEN="\[\033[32m\]"
|
||||
_BLUE="\[\033[34m\]"
|
||||
_BOLD="\[\033[1m\]"
|
||||
_RESET="\[\033[0m\]"
|
||||
export PS1="${_GREEN}${_BOLD}\u@\h${_RESET}:${_BLUE}${_BOLD}\W${_RESET} # "
|
||||
|
||||
|
||||
# ____ ___ __ __ ____ _ _____ _____ ___ ___ _ _
|
||||
# / ___/ _ \| \/ | _ \| | | ____|_ _|_ _/ _ \| \ | |
|
||||
# | | | | | | |\/| | |_) | | | _| | | | | | | | \| |
|
||||
# | |__| |_| | | | | __/| |___| |___ | | | | |_| | |\ |
|
||||
# \____\___/|_| |_|_| |_____|_____| |_| |___\___/|_| \_|
|
||||
#
|
||||
|
||||
completions=(
|
||||
"git"
|
||||
"pacman"
|
||||
"systemctl"
|
||||
"yay"
|
||||
)
|
||||
|
||||
for file in ${completions[@]}
|
||||
do
|
||||
source "/usr/share/bash-completion/completions/$file"
|
||||
done
|
||||
9
config/.gitconfig
Normal file
9
config/.gitconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
[user]
|
||||
email = daniil@tsivinsky.com
|
||||
name = Daniil Tsivinsky
|
||||
[core]
|
||||
editor = nvim
|
||||
[init]
|
||||
defaultBranch = master
|
||||
[push]
|
||||
followTags = true
|
||||
1
config/alacritty/alacritty
Symbolic link
1
config/alacritty/alacritty
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/alacritty
|
||||
48
config/alacritty/alacritty.yml
Normal file
48
config/alacritty/alacritty.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
font:
|
||||
normal:
|
||||
family: Iosevka
|
||||
style: Regular
|
||||
bold:
|
||||
family: Iosevka
|
||||
style: Bold
|
||||
offset:
|
||||
x: 1
|
||||
y: 1
|
||||
|
||||
size: 12
|
||||
|
||||
# Colors (Ayu Mirage)
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '#202734'
|
||||
foreground: '#CBCCC6'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '#191E2A'
|
||||
red: '#FF3333'
|
||||
green: '#BAE67E'
|
||||
yellow: '#FFA759'
|
||||
blue: '#73D0FF'
|
||||
magenta: '#FFD580'
|
||||
cyan: '#95E6CB'
|
||||
white: '#C7C7C7'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '#686868'
|
||||
red: '#F27983'
|
||||
green: '#A6CC70'
|
||||
yellow: '#FFCC66'
|
||||
blue: '#5CCFE6'
|
||||
magenta: '#FFEE99'
|
||||
cyan: '#95E6CB'
|
||||
white: '#FFFFFF'
|
||||
|
||||
window:
|
||||
padding:
|
||||
x: 5
|
||||
y: 5
|
||||
|
||||
background_opacity: 0.95
|
||||
1
config/dunst/dunst
Symbolic link
1
config/dunst/dunst
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/dunst
|
||||
60
config/dunst/dunstrc
Normal file
60
config/dunst/dunstrc
Normal file
@@ -0,0 +1,60 @@
|
||||
[global]
|
||||
monitor = 0
|
||||
follow = mouse
|
||||
geometry = "350x5-30-30"
|
||||
indicate_hidden = yes
|
||||
shrink = no
|
||||
separator_height = 0
|
||||
padding = 16
|
||||
horizontal_padding = 16
|
||||
frame_width = 2
|
||||
sort = no
|
||||
idle_threshold = 120
|
||||
font = Fira Code 8
|
||||
line_height = 2
|
||||
markup = full
|
||||
format = <b>%s</b>\n%b
|
||||
alignment = left
|
||||
show_age_threshold = 60
|
||||
word_wrap = yes
|
||||
ignore_newline = no
|
||||
stack_duplicates = false
|
||||
hide_duplicate_count = yes
|
||||
show_indicators = no
|
||||
icon_position = right
|
||||
text_icon_padding = 20
|
||||
max_icon_size = 64
|
||||
sticky_history = yes
|
||||
history_length = 20
|
||||
browser = /usr/bin/firefox -new-tab
|
||||
always_run_script = true
|
||||
title = Dunst
|
||||
class = Dunst
|
||||
corner_radius = 8
|
||||
mouse_left = do_action
|
||||
|
||||
[shortcuts]
|
||||
close = ctrl+space
|
||||
close_all = ctrl+shift+space
|
||||
|
||||
[urgency_low]
|
||||
timeout = 4
|
||||
background = "#191e2a"
|
||||
foreground = "#cbccc6"
|
||||
frame_color = "#8bc34a"
|
||||
|
||||
[urgency_normal]
|
||||
timeout = 8
|
||||
background = "#191e2a"
|
||||
foreground = "#cbccc6"
|
||||
frame_color = "#ffa759"
|
||||
|
||||
[urgency_critical]
|
||||
timeout = 0
|
||||
background = "#191e2a"
|
||||
foreground = "#cbccc6"
|
||||
frame_color = "#ff3333"
|
||||
|
||||
[volume]
|
||||
appname = "notify-on-volume"
|
||||
history_ignore=yes
|
||||
1
config/fontconfig/fonts
Symbolic link
1
config/fontconfig/fonts
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/fonts
|
||||
11
config/fontconfig/fonts.conf
Normal file
11
config/fontconfig/fonts.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Monospace</family>
|
||||
<prefer>
|
||||
<family>Monospace</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
230
config/i3/config
Normal file
230
config/i3/config
Normal file
@@ -0,0 +1,230 @@
|
||||
# __ ___ ____ ___ _ ____ _ _____ ____
|
||||
# \ \ / / \ | _ \|_ _| / \ | __ )| | | ____/ ___|
|
||||
# \ \ / / _ \ | |_) || | / _ \ | _ \| | | _| \___ \
|
||||
# \ V / ___ \| _ < | | / ___ \| |_) | |___| |___ ___) |
|
||||
# \_/_/ \_\_| \_\___/_/ \_\____/|_____|_____|____/
|
||||
#
|
||||
|
||||
set $mod Mod4
|
||||
set $terminal alacritty
|
||||
|
||||
# Define variables for workspaces
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# Variables for movement keys
|
||||
set $left "h"
|
||||
set $right "l"
|
||||
set $up "k"
|
||||
set $down "j"
|
||||
|
||||
set $draw_wallpaper "feh --no-fehbg --bg-fill ~/Pictures/Wallpapers/2b.jpeg"
|
||||
|
||||
|
||||
|
||||
# ____ _____ _ _ _____ ____ _ _
|
||||
# / ___| ____| \ | | ____| _ \ / \ | |
|
||||
# | | _| _| | \| | _| | |_) | / _ \ | |
|
||||
# | |_| | |___| |\ | |___| _ < / ___ \| |___
|
||||
# \____|_____|_| \_|_____|_| \_\/_/ \_\_____|
|
||||
#
|
||||
# ____ _____ _____ _____ ___ _ _ ____ ____
|
||||
# / ___|| ____|_ _|_ _|_ _| \ | |/ ___/ ___|
|
||||
# \___ \| _| | | | | | || \| | | _\___ \
|
||||
# ___) | |___ | | | | | || |\ | |_| |___) |
|
||||
# |____/|_____| |_| |_| |___|_| \_|\____|____/
|
||||
#
|
||||
|
||||
# Add gaps for windows
|
||||
gaps inner 8
|
||||
gaps outer 5
|
||||
gaps top 50
|
||||
|
||||
default_border pixel
|
||||
smart_borders on
|
||||
|
||||
# Remove focusing windows with mouse
|
||||
focus_follows_mouse no
|
||||
|
||||
# Font i3 uses
|
||||
font pango:monospace 8
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
|
||||
|
||||
# ____ _____ _ ____ _____ _ _ ____ _ ____ ____ ____
|
||||
# / ___|_ _|/ \ | _ \_ _| | | | _ \ / \ | _ \| _ \/ ___|
|
||||
# \___ \ | | / _ \ | |_) || | | | | | |_) | / _ \ | |_) | |_) \___ \
|
||||
# ___) || |/ ___ \| _ < | | | |_| | __/ / ___ \| __/| __/ ___) |
|
||||
# |____/ |_/_/ \_\_| \_\|_| \___/|_| /_/ \_\_| |_| |____/
|
||||
#
|
||||
|
||||
# Autostart
|
||||
exec_always --no-startup-id $draw_wallpaper
|
||||
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||
exec_always --no-startup-id "setxkbmap -layout \"us,ru\" -option \"grp:win_space_toggle\""
|
||||
exec_always --no-startup-id picom --config $HOME/.config/picom.conf
|
||||
exec_always --no-startup-id dunst
|
||||
|
||||
# Assign applications to workspaces
|
||||
assign [class="firefox"] $ws1
|
||||
assign [class="Steam"] $ws3
|
||||
assign [class="Code"] $ws2
|
||||
|
||||
# Force these applications to be floating
|
||||
for_window [class="Steam"] floating enable
|
||||
for_window [class="mpv"] floating enable
|
||||
for_window [class="mpv"] move absolute center
|
||||
for_window [class="Yad"] floating enable
|
||||
for_window [class="Yad"] move absolute center
|
||||
for_window [class="MuPDF"] floating enable
|
||||
|
||||
|
||||
# _ _________ ______ ___ _ _ ____ ___ _ _ ____ ____
|
||||
# | |/ / ____\ \ / / __ )_ _| \ | | _ \_ _| \ | |/ ___/ ___|
|
||||
# | ' /| _| \ V /| _ \| || \| | | | | || \| | | _\___ \
|
||||
# | . \| |___ | | | |_) | || |\ | |_| | || |\ | |_| |___) |
|
||||
# |_|\_\_____| |_| |____/___|_| \_|____/___|_| \_|\____|____/
|
||||
#
|
||||
|
||||
|
||||
# Use Super+Tab to cycle through workspaces
|
||||
bindsym $mod+Tab workspace next
|
||||
bindsym $mod+Shift+Tab workspace prev
|
||||
|
||||
# Bind media keys on a keyboard to control volume and playback
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2
|
||||
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Bind Super+Home keys to take a screenshot
|
||||
bindsym $mod+Home exec --no-startup-id screenshoter
|
||||
|
||||
# Mod4 + Return starts a terminal
|
||||
bindsym $mod+Return exec $terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Binding to start rofi (Mod4 + d)
|
||||
bindsym $mod+d exec --no-startup-id rofi -show run
|
||||
|
||||
# change focus
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+g split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Toggle between stacking/tabbed/split
|
||||
bindsym $mod+x layout toggle
|
||||
|
||||
# Toggle window state between tiling and floating
|
||||
bindsym $mod+z floating toggle
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
|
||||
# Open applications with keybindings
|
||||
bindsym Mod1+r exec alacritty -e ranger
|
||||
bindsym Mod1+f exec firefox
|
||||
bindsym Mod1+s exec steam
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym $left resize shrink width 10 px or 10 ppt
|
||||
bindsym $up resize grow height 10 px or 10 ppt
|
||||
bindsym $down resize shrink height 10 px or 10 ppt
|
||||
bindsym $right resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
1
config/i3/i3
Symbolic link
1
config/i3/i3
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/i3
|
||||
32
config/nvim/coc-settings.json
Normal file
32
config/nvim/coc-settings.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"coc.preferences.formatOnSaveFiletypes": [
|
||||
"css",
|
||||
"markdown",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"svelte",
|
||||
"javascriptreact",
|
||||
"typescriptreact",
|
||||
"json",
|
||||
"jsonc"
|
||||
],
|
||||
"python.jediEnabled": true,
|
||||
"coc.source.emoji.filetypes": [
|
||||
"markdown",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"javascriptreact",
|
||||
"typescriptreact",
|
||||
"python",
|
||||
"go",
|
||||
"svelte"
|
||||
],
|
||||
"svelte.plugin.svelte.completions.enable": true,
|
||||
"svelte.plugin.css.completions.enable": true,
|
||||
"svelte.plugin.svelte.enable": true,
|
||||
"svelte.plugin.html.enable": true,
|
||||
"svelte.plugin.css.enable": true,
|
||||
"svelte.enable-ts-plugin": true,
|
||||
"svelte.plugin.svelte.format.enable": true,
|
||||
"html.filetypes": ["html", "javascriptreact", "typescriptreact"]
|
||||
}
|
||||
70
config/nvim/coc.vim
Normal file
70
config/nvim/coc.vim
Normal file
@@ -0,0 +1,70 @@
|
||||
" Always show the signcolumn, otherwise it would shift the text each time
|
||||
" diagnostics appear/become resolved.
|
||||
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
||||
" Recently vim can merge signcolumn and number column into one
|
||||
set signcolumn=number
|
||||
else
|
||||
set signcolumn=yes
|
||||
endif
|
||||
|
||||
" Use tab for trigger completion with characters ahead and navigate.
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
" Use <c-space> to trigger completion.
|
||||
if has('nvim')
|
||||
inoremap <silent><expr> <c-space> coc#refresh()
|
||||
else
|
||||
inoremap <silent><expr> <c-@> coc#refresh()
|
||||
endif
|
||||
|
||||
" GoTo definition
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
|
||||
" Use <C-l> for trigger snippet expand.
|
||||
imap <C-l> <Plug>(coc-snippets-expand)
|
||||
|
||||
" Use F2 to rename a variable, e.g.
|
||||
nmap <F2> <Plug>(coc-rename)
|
||||
|
||||
let g:coc_global_extensions = [
|
||||
\ 'coc-tsserver',
|
||||
\ 'coc-css',
|
||||
\ 'coc-go',
|
||||
\ 'coc-html',
|
||||
\ 'coc-prettier',
|
||||
\ 'coc-sh',
|
||||
\ 'coc-svelte',
|
||||
\ 'coc-pairs',
|
||||
\ 'coc-json',
|
||||
\ 'coc-snippets',
|
||||
\ 'coc-emmet',
|
||||
\ 'coc-highlight',
|
||||
\ 'coc-python',
|
||||
\ 'coc-emoji'
|
||||
\ ]
|
||||
|
||||
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current position.
|
||||
" Coc only does snippet and additional edit on confirm.
|
||||
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
|
||||
command! -nargs=0 Prettier :CocCommand prettier.formatFile
|
||||
|
||||
" Use K to show documentation in preview window
|
||||
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
||||
|
||||
function! s:show_documentation()
|
||||
if (index(['vim','help'], &filetype) >= 0)
|
||||
execute 'h '.expand('<cword>')
|
||||
else
|
||||
call CocAction('doHover')
|
||||
endif
|
||||
endfunction
|
||||
20
config/nvim/file-tree.vim
Normal file
20
config/nvim/file-tree.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
lua << EOF
|
||||
require("nvim-tree").setup {}
|
||||
EOF
|
||||
|
||||
let g:nvim_tree_width = 20
|
||||
let g:nvim_tree_ignore = [ '.git' ]
|
||||
let g:nvim_tree_add_trailing = 1
|
||||
let g:nvim_tree_quit_on_open = 1
|
||||
let g:nvim_tree_indent_markers = 1
|
||||
let g:nvim_tree_refresh_wait = 500
|
||||
let g:nvim_tree_show_icons = {
|
||||
\ 'git': 0,
|
||||
\ 'folders': 0,
|
||||
\ 'files': 0,
|
||||
\ 'folder_arrows': 0,
|
||||
\ }
|
||||
|
||||
" Remaps
|
||||
nnoremap <C-b> :NvimTreeToggle<CR>
|
||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
||||
27
config/nvim/general.vim
Normal file
27
config/nvim/general.vim
Normal file
@@ -0,0 +1,27 @@
|
||||
syntax on
|
||||
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
set autoindent
|
||||
|
||||
set number
|
||||
set relativenumber
|
||||
set wrap
|
||||
set noswapfile
|
||||
set encoding=utf-8
|
||||
set hidden
|
||||
set nowritebackup
|
||||
set cmdheight=2
|
||||
set updatetime=300
|
||||
set shortmess+=c
|
||||
set mouse=a " nv for normal and visual only
|
||||
set cursorline
|
||||
set clipboard+=unnamedplus
|
||||
set splitright
|
||||
set splitbelow
|
||||
|
||||
set termguicolors
|
||||
|
||||
" MY LEADER KEY IS GONNA BE A SPACE
|
||||
let mapleader = " "
|
||||
41
config/nvim/init.vim
Normal file
41
config/nvim/init.vim
Normal file
@@ -0,0 +1,41 @@
|
||||
source $HOME/.config/nvim/plugins.vim
|
||||
source $HOME/.config/nvim/general.vim
|
||||
source $HOME/.config/nvim/remaps.vim
|
||||
source $HOME/.config/nvim/theme.vim
|
||||
source $HOME/.config/nvim/terminal.vim
|
||||
source $HOME/.config/nvim/file-tree.vim
|
||||
source $HOME/.config/nvim/coc.vim
|
||||
source $HOME/.config/nvim/tabs.vim
|
||||
|
||||
" Filetypes for markdown extension
|
||||
let g:mkdp_filetypes = ['md', 'mdx', 'markdown']
|
||||
|
||||
let g:svelte_preprocessors = ['typescript', 'scss']
|
||||
|
||||
let g:closetag_filenames = '*.html,*.svelte,*.jsx,*.tsx'
|
||||
let g:closetag_regions = {
|
||||
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
|
||||
\ 'javascript.jsx': 'jsxRegion',
|
||||
\ 'typescriptreact': 'jsxRegion,tsxRegion',
|
||||
\ 'javascriptreact': 'jsxRegion',
|
||||
\ }
|
||||
|
||||
" Ignore files inside .git directory by CtrlP
|
||||
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
|
||||
|
||||
lua << EOF
|
||||
require("gitsigns").setup {
|
||||
current_line_blame = true,
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 500,
|
||||
},
|
||||
signcolumn = false,
|
||||
linehl = false,
|
||||
current_line_blame_formatter_opts = {
|
||||
relative_time = false
|
||||
}
|
||||
}
|
||||
require("gitabra").setup {}
|
||||
EOF
|
||||
1
config/nvim/nvim
Symbolic link
1
config/nvim/nvim
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/nvim
|
||||
27
config/nvim/plugins.vim
Normal file
27
config/nvim/plugins.vim
Normal file
@@ -0,0 +1,27 @@
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
|
||||
Plug 'ayu-theme/ayu-vim'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
|
||||
Plug 'akinsho/bufferline.nvim'
|
||||
Plug 'alvan/vim-closetag'
|
||||
Plug 'kyazdani42/nvim-web-devicons'
|
||||
Plug 'kevinoid/vim-jsonc'
|
||||
Plug 'fatih/vim-go'
|
||||
Plug 'ctrlpvim/ctrlp.vim'
|
||||
Plug 'mhinz/vim-startify'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'evanleck/vim-svelte'
|
||||
Plug 'HerringtonDarkholme/yats.vim'
|
||||
Plug 'yuezk/vim-js'
|
||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||
Plug 'lewis6991/gitsigns.nvim'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'Odie/gitabra'
|
||||
|
||||
call plug#end()
|
||||
52
config/nvim/remaps.vim
Normal file
52
config/nvim/remaps.vim
Normal file
@@ -0,0 +1,52 @@
|
||||
" These allow me to quickly save and quit vim
|
||||
nnoremap <leader>w :w<CR>
|
||||
nnoremap <leader>q :q<CR>
|
||||
|
||||
" Remaps to move line under the cursor up and down
|
||||
nnoremap <C-k> :m .-2<CR>==
|
||||
nnoremap <C-j> :m .+1<CR>==
|
||||
vnoremap K :m '<-2<CR>gv=gv
|
||||
vnoremap J :m '>+1<CR>gv=gv
|
||||
|
||||
" Move split panes to left/bottom/top/right
|
||||
nnoremap <A-h> <C-W>H
|
||||
nnoremap <A-j> <C-W>J
|
||||
nnoremap <A-k> <C-W>K
|
||||
nnoremap <A-l> <C-W>L
|
||||
|
||||
" move between panes to left/bottom/top/right
|
||||
nnoremap <nowait><leader>h <C-w>h
|
||||
nnoremap <leader>j <C-w>j
|
||||
nnoremap <leader>k <C-w>k
|
||||
nnoremap <leader>l <C-w>l
|
||||
tnoremap <A-h> <C-\><C-n><C-w>h
|
||||
tnoremap <A-j> <C-\><C-n><C-w>j
|
||||
tnoremap <A-k> <C-\><C-n><C-w>k
|
||||
tnoremap <A-l> <C-\><C-n><C-w>l
|
||||
|
||||
" Remove search highlighting
|
||||
noremap <leader>nh :nohl<CR>
|
||||
|
||||
" Use Ctrl+A to select the whole file
|
||||
nnoremap <C-a> ggVG
|
||||
|
||||
function! OpenTerminal()
|
||||
split term://bash
|
||||
resize 10
|
||||
endfunction
|
||||
" Open terminal
|
||||
nnoremap <leader>t :call OpenTerminal()<CR>
|
||||
|
||||
" Open Gitabra
|
||||
nnoremap <leader>g :Gitabra<CR>
|
||||
|
||||
" Open splits
|
||||
nnoremap <leader>v :vs<CR>
|
||||
nnoremap <leader>vv :sp<CR>
|
||||
|
||||
" Use Ctrl+Shift+jk to resize panes
|
||||
nnoremap <C-j> :resize -2<CR>
|
||||
nnoremap <C-k> :resize +2<CR>
|
||||
|
||||
" Remap to toggle gitsigns as linehl
|
||||
nnoremap <leader>sg :Gitsigns toggle_linehl<CR>
|
||||
19
config/nvim/tabs.vim
Normal file
19
config/nvim/tabs.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
lua << EOF
|
||||
require("bufferline").setup{}
|
||||
EOF
|
||||
|
||||
nnoremap <silent><C-[> :BufferLineCyclePrev<CR>
|
||||
nnoremap <silent><C-]> :BufferLineCycleNext<CR>
|
||||
|
||||
nnoremap <silent><leader>1 <Cmd>BufferLineGoToBuffer 1<CR>
|
||||
nnoremap <silent><leader>2 <Cmd>BufferLineGoToBuffer 2<CR>
|
||||
nnoremap <silent><leader>3 <Cmd>BufferLineGoToBuffer 3<CR>
|
||||
nnoremap <silent><leader>4 <Cmd>BufferLineGoToBuffer 4<CR>
|
||||
nnoremap <silent><leader>5 <Cmd>BufferLineGoToBuffer 5<CR>
|
||||
nnoremap <silent><leader>6 <Cmd>BufferLineGoToBuffer 6<CR>
|
||||
nnoremap <silent><leader>7 <Cmd>BufferLineGoToBuffer 7<CR>
|
||||
nnoremap <silent><leader>8 <Cmd>BufferLineGoToBuffer 8<CR>
|
||||
nnoremap <silent><leader>9 <Cmd>BufferLineGoToBuffer 9<CR>
|
||||
|
||||
" Close tab
|
||||
nnoremap <leader>e :bd<CR>
|
||||
2
config/nvim/terminal.vim
Normal file
2
config/nvim/terminal.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
" Use Escape to go to normal mode
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
7
config/nvim/theme.vim
Normal file
7
config/nvim/theme.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
" Colorscheme
|
||||
let ayucolor = 'mirage'
|
||||
colorscheme ayu
|
||||
|
||||
" Airline
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline_theme = 'ayu_mirage'
|
||||
273
config/picom.conf
Normal file
273
config/picom.conf
Normal file
@@ -0,0 +1,273 @@
|
||||
#################################
|
||||
# Shadows #
|
||||
#################################
|
||||
|
||||
|
||||
# shadow = true;
|
||||
# shadow-radius = 10;
|
||||
# shadow-offset-x = -7;
|
||||
# shadow-offset-y = -7;
|
||||
|
||||
# # Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# # shadow-red = 0
|
||||
|
||||
# # Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# # shadow-green = 0
|
||||
|
||||
# # Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# # shadow-blue = 0
|
||||
|
||||
# shadow-exclude = [
|
||||
# "name = 'Notification'",
|
||||
# "class_g = 'Conky'",
|
||||
# "class_g ?= 'Notify-osd'",
|
||||
# "class_g = 'Cairo-clock'",
|
||||
# "_GTK_FRAME_EXTENTS@:c"
|
||||
# ];
|
||||
|
||||
#################################
|
||||
# Fading #
|
||||
#################################
|
||||
|
||||
|
||||
fading = true
|
||||
fade-in-step = 0.03;
|
||||
fade-out-step = 0.05;
|
||||
|
||||
#################################
|
||||
# Transparency / Opacity #
|
||||
#################################
|
||||
|
||||
|
||||
inactive-opacity = 0.75;
|
||||
|
||||
inactive-dim = 0.4;
|
||||
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||
|
||||
|
||||
opacity-rule = [
|
||||
"95:class_g = 'Alacritty' && focused"
|
||||
];
|
||||
|
||||
|
||||
#################################
|
||||
# Blur #
|
||||
#################################
|
||||
|
||||
# blur-method = "kernel"
|
||||
# blur-background = true
|
||||
# blur-kern = "15,15,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,"
|
||||
|
||||
#################################
|
||||
# General Settings #
|
||||
#################################
|
||||
|
||||
|
||||
# daemon = false
|
||||
|
||||
backend = "xrender";
|
||||
vsync = true
|
||||
|
||||
# Try to detect WM windows (a non-override-redirect window with no
|
||||
# child that has 'WM_STATE') and mark them as active.
|
||||
#
|
||||
# mark-wmwin-focused = false
|
||||
mark-wmwin-focused = true;
|
||||
|
||||
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||
# mark-ovredir-focused = false
|
||||
mark-ovredir-focused = true;
|
||||
|
||||
# Try to detect windows with rounded corners and don't consider them
|
||||
# shaped windows. The accuracy is not very high, unfortunately.
|
||||
#
|
||||
# detect-rounded-corners = false
|
||||
detect-rounded-corners = true;
|
||||
|
||||
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
||||
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
||||
#
|
||||
# detect-client-opacity = false
|
||||
detect-client-opacity = true;
|
||||
|
||||
# Specify refresh rate of the screen. If not specified or 0, picom will
|
||||
# try detecting this with X RandR extension.
|
||||
#
|
||||
# refresh-rate = 60
|
||||
refresh-rate = 0
|
||||
|
||||
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||
# boost performance. This should not be used with
|
||||
# vsync drm/opengl/opengl-oml
|
||||
# as they essentially does sw-opti's job already,
|
||||
# unless you wish to specify a lower refresh rate than the actual value.
|
||||
#
|
||||
# sw-opti =
|
||||
|
||||
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||
# provided that the WM supports it.
|
||||
#
|
||||
# use-ewmh-active-win = false
|
||||
|
||||
# Unredirect all windows if a full-screen opaque window is detected,
|
||||
# to maximize performance for full-screen windows. Known to cause flickering
|
||||
# when redirecting/unredirecting windows.
|
||||
#
|
||||
# unredir-if-possible = false
|
||||
|
||||
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||
# unredir-if-possible-delay = 0
|
||||
|
||||
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||
# unredir-if-possible-exclude = []
|
||||
|
||||
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||
# in the same group focused at the same time.
|
||||
#
|
||||
# detect-transient = false
|
||||
detect-transient = true
|
||||
|
||||
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
|
||||
# detect-transient is enabled, too.
|
||||
#
|
||||
# detect-client-leader = false
|
||||
detect-client-leader = true
|
||||
|
||||
# Resize damaged region by a specific number of pixels.
|
||||
# A positive value enlarges it while a negative one shrinks it.
|
||||
# If the value is positive, those additional pixels will not be actually painted
|
||||
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||
# Primarily used to fix the line corruption issues of blur,
|
||||
# in which case you should use the blur radius value here
|
||||
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||
#
|
||||
# resize-damage = 1
|
||||
|
||||
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||
# Resource-hogging, and is not well tested.
|
||||
#
|
||||
# invert-color-include = []
|
||||
|
||||
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||
# Might cause incorrect opacity when rendering transparent content (but never
|
||||
# practically happened) and may not work with blur-background.
|
||||
# My tests show a 15% performance boost. Recommended.
|
||||
#
|
||||
# glx-no-stencil = false
|
||||
|
||||
# GLX backend: Avoid rebinding pixmap on window damage.
|
||||
# Probably could improve performance on rapid window content changes,
|
||||
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
|
||||
# Recommended if it works.
|
||||
#
|
||||
# glx-no-rebind-pixmap = false
|
||||
|
||||
# Disable the use of damage information.
|
||||
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
|
||||
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||
# The opposing option is use-damage
|
||||
#
|
||||
# no-use-damage = false
|
||||
use-damage = true
|
||||
|
||||
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||
# with GLX backend for some users.
|
||||
#
|
||||
# xrender-sync-fence = false
|
||||
|
||||
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
|
||||
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
|
||||
# in the source tree for examples.
|
||||
#
|
||||
# glx-fshader-win = ''
|
||||
|
||||
# Force all windows to be painted with blending. Useful if you
|
||||
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||
#
|
||||
# force-win-blend = false
|
||||
|
||||
# Do not use EWMH to detect fullscreen windows.
|
||||
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||
#
|
||||
# no-ewmh-fullscreen = false
|
||||
|
||||
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||
# so this could comes with a performance hit.
|
||||
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||
#
|
||||
# max-brightness = 1.0
|
||||
|
||||
# Make transparent windows clip other windows like non-transparent windows do,
|
||||
# instead of blending on top of them.
|
||||
#
|
||||
# transparent-clipping = false
|
||||
|
||||
# Set the log level. Possible values are:
|
||||
# "trace", "debug", "info", "warn", "error"
|
||||
# in increasing level of importance. Case doesn't matter.
|
||||
# If using the "TRACE" log level, it's better to log into a file
|
||||
# using *--log-file*, since it can generate a huge stream of logs.
|
||||
#
|
||||
# log-level = "debug"
|
||||
log-level = "warn";
|
||||
|
||||
# Set the log file.
|
||||
# If *--log-file* is never specified, logs will be written to stderr.
|
||||
# Otherwise, logs will to written to the given file, though some of the early
|
||||
# logs might still be written to the stderr.
|
||||
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||
#
|
||||
# log-file = '/path/to/your/log/file'
|
||||
|
||||
# Show all X errors (for debugging)
|
||||
# show-all-xerrors = false
|
||||
|
||||
# Write process ID to a file.
|
||||
# write-pid-path = '/path/to/your/log/file'
|
||||
|
||||
# Window type settings
|
||||
#
|
||||
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||
# "tooltip", "notification", "combo", and "dnd".
|
||||
#
|
||||
# Following per window-type options are available: ::
|
||||
#
|
||||
# fade, shadow:::
|
||||
# Controls window-type-specific shadow and fade settings.
|
||||
#
|
||||
# opacity:::
|
||||
# Controls default opacity of the window type.
|
||||
#
|
||||
# focus:::
|
||||
# Controls whether the window of this type is to be always considered focused.
|
||||
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||
#
|
||||
# full-shadow:::
|
||||
# Controls whether shadow is drawn under the parts of the window that you
|
||||
# normally won't be able to see. Useful when the window has parts of it
|
||||
# transparent, and you want shadows in those areas.
|
||||
#
|
||||
# redir-ignore:::
|
||||
# Controls whether this type of windows should cause screen to become
|
||||
# redirected again after been unredirected. If you have unredir-if-possible
|
||||
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||
# you can set this to `true`.
|
||||
#
|
||||
wintypes:
|
||||
{
|
||||
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
||||
dock = { shadow = false; }
|
||||
dnd = { shadow = false; }
|
||||
popup_menu = { opacity = 0.8; }
|
||||
dropdown_menu = { opacity = 0.8; }
|
||||
};
|
||||
130
config/polybar/config.ini
Normal file
130
config/polybar/config.ini
Normal file
@@ -0,0 +1,130 @@
|
||||
[colors]
|
||||
; This is colors for ayu theme (https://github.com/ayu-theme/ayu-colors)
|
||||
primary = #ffa759
|
||||
background = #202734
|
||||
background-alt = #191e2a
|
||||
foreground = #cbccc6
|
||||
|
||||
[bar/main]
|
||||
width = 100%
|
||||
height = 40
|
||||
fixed-center = true
|
||||
padding-right = 2
|
||||
wm-restack = i3
|
||||
override-redirect = true
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
font-0 = FiraCode:size=11
|
||||
font-1 = FontAwesome5Brands:size=12
|
||||
font-2 = FontAwesome5FreeSolid:size=12
|
||||
|
||||
modules-left = workspaces player
|
||||
modules-center = date
|
||||
modules-right = keyboard-layout volume-control network power-menu
|
||||
|
||||
module-margin = 1
|
||||
|
||||
|
||||
; _ _____ _____ _____ __ __ ___ ____ _ _ _ _____ ____
|
||||
; | | | ____| ___|_ _| | \/ |/ _ \| _ \| | | | | | ____/ ___|
|
||||
; | | | _| | |_ | | | |\/| | | | | | | | | | | | | _| \___ \
|
||||
; | |___| |___| _| | | | | | | |_| | |_| | |_| | |___| |___ ___) |
|
||||
; |_____|_____|_| |_| |_| |_|\___/|____/ \___/|_____|_____|____/
|
||||
;
|
||||
|
||||
[module/workspaces]
|
||||
type = internal/i3
|
||||
|
||||
; Current active workspace
|
||||
label-focused = "%index%"
|
||||
label-focused-foreground = ${colors.primary}
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-padding = 2
|
||||
|
||||
; All the other workspaces but the active
|
||||
label-unfocused = ${self.label-focused}
|
||||
label-unfocused-padding = ${self.label-focused-padding}
|
||||
|
||||
label-urgent = %index%
|
||||
label-urgent-padding = ${self.label-focused-padding}
|
||||
label-urgent-background = ${colors.primary}
|
||||
|
||||
label-mode = --%mode%--
|
||||
|
||||
[module/player]
|
||||
type = custom/script
|
||||
|
||||
exec = players=`playerctl -l | wc -l` ; [[ $players != "0" ]] && playerctl metadata -f "{{status}}: {{trunc(title, 30)}} by {{artist}}" || echo
|
||||
tail = true
|
||||
|
||||
format = <label>
|
||||
|
||||
label = %output%
|
||||
|
||||
click-left = playerctl play-pause
|
||||
|
||||
|
||||
|
||||
; ____ _____ _ _ _____ _____ ____
|
||||
; / ___| ____| \ | |_ _| ____| _ \
|
||||
; | | | _| | \| | | | | _| | |_) |
|
||||
; | |___| |___| |\ | | | | |___| _ <
|
||||
; \____|_____|_| \_| |_| |_____|_| \_\
|
||||
;
|
||||
; __ __ ___ ____ _ _ _ _____ ____
|
||||
; | \/ |/ _ \| _ \| | | | | | ____/ ___|
|
||||
; | |\/| | | | | | | | | | | | | _| \___ \
|
||||
; | | | | |_| | |_| | |_| | |___| |___ ___) |
|
||||
; |_| |_|\___/|____/ \___/|_____|_____|____/
|
||||
|
||||
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
|
||||
date = "%d %b %H:%M, %A"
|
||||
|
||||
label = %date%
|
||||
|
||||
|
||||
; ____ ___ ____ _ _ _____ __ __ ___ ____ _ _ _ _____ ____
|
||||
; | _ \|_ _/ ___| | | |_ _| | \/ |/ _ \| _ \| | | | | | ____/ ___|
|
||||
; | |_) || | | _| |_| | | | | |\/| | | | | | | | | | | | | _| \___ \
|
||||
; | _ < | | |_| | _ | | | | | | | |_| | |_| | |_| | |___| |___ ___) |
|
||||
; |_| \_\___\____|_| |_| |_| |_| |_|\___/|____/ \___/|_____|_____|____/
|
||||
;
|
||||
|
||||
[module/keyboard-layout]
|
||||
type = internal/xkeyboard
|
||||
|
||||
format = <label-layout>
|
||||
label-layout = %layout%
|
||||
|
||||
[module/volume-control]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume>
|
||||
|
||||
label-muted = MUTE
|
||||
label-muted-foreground = ${colors.primary}
|
||||
|
||||
[module/network]
|
||||
type = internal/network
|
||||
interface = enp2s0
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
|
||||
label-connected =
|
||||
label-disconnected = No Network
|
||||
|
||||
[module/power-menu]
|
||||
type = custom/text
|
||||
|
||||
content = %{A:~/dotfiles/polybar/logout-window.sh:}%{A}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
|
||||
9
config/polybar/launch.sh
Executable file
9
config/polybar/launch.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
polybar main -c $HOME/.config/polybar/config.ini
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
22
config/polybar/logout-window.sh
Executable file
22
config/polybar/logout-window.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#! /bin/bash
|
||||
|
||||
action=$(yad --width 300 --entry --title "System Logout" \
|
||||
--button="Ok" --button="Cancel" \
|
||||
--text "What to do?" \
|
||||
--entry-text \
|
||||
"Power Off" "Reboot" "Logout" \
|
||||
)
|
||||
|
||||
return=$?
|
||||
|
||||
if [[ $return -eq 1 ]] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case $action in
|
||||
Power*) cmd="systemctl poweroff" ;;
|
||||
Reboot*) cmd="systemctl reboot" ;;
|
||||
Logout*) cmd="i3-msg exit"
|
||||
esac
|
||||
|
||||
eval exec $cmd
|
||||
1
config/polybar/polybar
Symbolic link
1
config/polybar/polybar
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/polybar
|
||||
114
config/rofi/config.rasi
Normal file
114
config/rofi/config.rasi
Normal file
@@ -0,0 +1,114 @@
|
||||
configuration {
|
||||
modi: "drun";
|
||||
font: "Iosevka 12";
|
||||
show-icons: true;
|
||||
}
|
||||
|
||||
* {
|
||||
background: #202734;
|
||||
background-alt: #191e2a;
|
||||
foreground: #cbccc6;
|
||||
|
||||
yellow: #ffa759;
|
||||
orange: #ffcc66;
|
||||
red: #ff3333;
|
||||
magenta: #ffd580;
|
||||
violet: #ffee99;
|
||||
blue: #73d0ff;
|
||||
cyan: #95e6cb;
|
||||
green: #859900;
|
||||
|
||||
normal-foreground: @foreground;
|
||||
normal-background: @background;
|
||||
active-foreground: @green;
|
||||
active-background: @background;
|
||||
urgent-foreground: @red;
|
||||
urgent-background: @background;
|
||||
selected-foreground: @magenta;
|
||||
|
||||
selected-normal-foreground: @selected-foreground;
|
||||
selected-normal-background: @selected-background;
|
||||
selected-active-foreground: @active-foreground;
|
||||
selected-active-background: @selected-background;
|
||||
selected-urgent-foreground: @urgent-foreground;
|
||||
selected-urgent-background: @selected-background;
|
||||
|
||||
alternate-normal-background: @background;
|
||||
alternate-normal-foreground: @alternate-foreground;
|
||||
alternate-active-foreground: @active-foreground;
|
||||
alternate-active-background: @background;
|
||||
alternate-urgent-foreground: @urgent-foreground;
|
||||
alternate-urgent-background: @background;
|
||||
|
||||
separatorcolor: @blue;
|
||||
|
||||
/* Main element styles */
|
||||
border-color: @blue;
|
||||
spacing: 2;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
window {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
padding: 35% 20%;
|
||||
}
|
||||
|
||||
/* entry, */
|
||||
/* prompt { */
|
||||
/* padding: 6px; */
|
||||
/* } */
|
||||
|
||||
element {
|
||||
padding: 10px;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
/* background-color: @normal-background; */
|
||||
/* text-color: @normal-foreground; */
|
||||
}
|
||||
|
||||
element normal.urgent {
|
||||
/* background-color: @urgent-background; */
|
||||
/* text-color: @urgent-foreground; */
|
||||
}
|
||||
|
||||
element normal.active {
|
||||
/* background-color: @active-background; */
|
||||
/* text-color: @active-foreground; */
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
/* background-color: @selected-normal-background; */
|
||||
/* text-color: @selected-normal-foreground; */
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
/* background-color: @selected-urgent-background; */
|
||||
/* text-color: @selected-urgent-foreground; */
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
/* background-color: @selected-active-background; */
|
||||
/* text-color: @selected-active-foreground; */
|
||||
}
|
||||
|
||||
element alternate.normal {
|
||||
/* background-color: @alternate-normal-background; */
|
||||
/* text-color: @alternate-normal-foreground; */
|
||||
}
|
||||
|
||||
element alternate.urgent {
|
||||
/* background-color: @alternate-urgent-background; */
|
||||
/* text-color: @alternate-urgent-foreground; */
|
||||
}
|
||||
|
||||
element alternate.active {
|
||||
/* background-color: @alternate-active-background; */
|
||||
/* text-color: @alternate-active-foreground; */
|
||||
}
|
||||
1
config/rofi/rofi
Symbolic link
1
config/rofi/rofi
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/rofi
|
||||
199
config/sway/config
Normal file
199
config/sway/config
Normal file
@@ -0,0 +1,199 @@
|
||||
### Variables
|
||||
|
||||
# Main keys
|
||||
set $mod Mod4
|
||||
|
||||
set $alt Mod1
|
||||
# Home row direction keys, like vim
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
# Your preferred terminal emulator
|
||||
set $term alacritty
|
||||
|
||||
# Your preferred application launcher
|
||||
set $menu rofi -show drun
|
||||
|
||||
# Workspaces
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
|
||||
|
||||
# ____ _____ _ _ _____ ____ _ _
|
||||
# / ___| ____| \ | | ____| _ \ / \ | |
|
||||
# | | _| _| | \| | _| | |_) | / _ \ | |
|
||||
# | |_| | |___| |\ | |___| _ < / ___ \| |___
|
||||
# \____|_____|_| \_|_____|_| \_\/_/ \_\_____|
|
||||
#
|
||||
default_border none
|
||||
smart_borders on
|
||||
focus_follows_mouse no
|
||||
gaps inner 10
|
||||
floating_modifier $mod normal
|
||||
font FiraCode 10
|
||||
|
||||
# Keyboard layout
|
||||
input * {
|
||||
xkb_layout "us,ru"
|
||||
xkb_options "grp:win_space_toggle"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# _ ____ ____ _ ___ ____ _ _____ ___ ___ _ _ ____
|
||||
# / \ | _ \| _ \| | |_ _/ ___| / \|_ _|_ _/ _ \| \ | / ___|
|
||||
# / _ \ | |_) | |_) | | | | | / _ \ | | | | | | | \| \___ \
|
||||
# / ___ \| __/| __/| |___ | | |___ / ___ \| | | | |_| | |\ |___) |
|
||||
# /_/ \_\_| |_| |_____|___\____/_/ \_\_| |___\___/|_| \_|____/
|
||||
#
|
||||
# Start applications with keybindings
|
||||
bindsym $alt+f exec firefox
|
||||
bindsym $alt+r exec alacritty -e ranger
|
||||
bindsym $alt+s exec steam
|
||||
|
||||
# Assign specific applications their workspaces
|
||||
assign [class="firefox"] $ws1
|
||||
assign [class="Steam"] $ws3
|
||||
|
||||
# Default settings for some applications
|
||||
for_window [class="Steam"] floating enable
|
||||
for_window [class="mpv"] floating enable
|
||||
for_window [class="mpv"] move absolute center
|
||||
for_window [class="MuPDF"] floating enable
|
||||
|
||||
|
||||
|
||||
# _ _ _ _____ ___ ____ _____ _ ____ _____
|
||||
# / \ | | | |_ _/ _ \/ ___|_ _|/ \ | _ \_ _|
|
||||
# / _ \| | | | | || | | \___ \ | | / _ \ | |_) || |
|
||||
# / ___ \ |_| | | || |_| |___) || |/ ___ \| _ < | |
|
||||
# /_/ \_\___/ |_| \___/|____/ |_/_/ \_\_| \_\|_|
|
||||
#
|
||||
exec_always --no-startup-id $HOME/.config/waybar/launch.sh
|
||||
exec_always --no-startup-id dunst
|
||||
exec_always --no-startup-id $HOME/dotfiles/bin/set-wallpaper --restore
|
||||
|
||||
|
||||
|
||||
# _ _________ ______ ___ _ _ ____ ___ _ _ ____ ____
|
||||
# | |/ / ____\ \ / / __ )_ _| \ | | _ \_ _| \ | |/ ___/ ___|
|
||||
# | ' /| _| \ V /| _ \| || \| | | | | || \| | | _\___ \
|
||||
# | . \| |___ | | | |_) | || |\ | |_| | || |\ | |_| |___) |
|
||||
# |_|\_\_____| |_| |____/___|_| \_|____/___|_| \_|\____|____/
|
||||
#
|
||||
|
||||
# Bind media keys on a keyboard to control volume and playback
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 2 && notify-on-volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 2 && notify-on-volume
|
||||
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Make screenshots
|
||||
bindsym $mod+Home exec $HOME/dotfiles/bin/wlshot copy
|
||||
bindsym $mod+Shift+Home exec $HOME/dotfiles/bin/wlshot save
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Run wlogout to quit
|
||||
bindsym $mod+Shift+e exec --no-startup-id wlogout -b 4 -m 450 -c 30
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+r reload
|
||||
|
||||
# Move focus between tiling and floating areas
|
||||
bindsym $mod+m focus mode_toggle
|
||||
|
||||
# Move focus
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
|
||||
# Move focused windows
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
|
||||
# Cycle through workspaces
|
||||
bindsym $mod+Tab workspace next
|
||||
bindsym $mod+Shift+Tab workspace prev
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# Change split mode
|
||||
bindsym $mod+g splith
|
||||
bindsym $mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Toggle between layout modes
|
||||
bindsym $mod+x layout toggle
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+z floating toggle
|
||||
|
||||
### Resize mode
|
||||
mode "resize" {
|
||||
bindsym $left resize shrink width 100px
|
||||
bindsym $down resize grow height 100px
|
||||
bindsym $up resize shrink height 100px
|
||||
bindsym $right resize grow width 100px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
7
config/sway/config.d/50-systemd-user.conf
Normal file
7
config/sway/config.d/50-systemd-user.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
|
||||
# See FS#63021
|
||||
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
|
||||
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
1
config/sway/sway
Symbolic link
1
config/sway/sway
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/sway
|
||||
9
config/swaylock/config
Normal file
9
config/swaylock/config
Normal file
@@ -0,0 +1,9 @@
|
||||
color=191e2a
|
||||
|
||||
font=Iosevka
|
||||
font-size=24
|
||||
|
||||
indicator-radius=100
|
||||
|
||||
inside-color=ffa759
|
||||
ring-color=191e2a
|
||||
71
config/waybar/config
Normal file
71
config/waybar/config
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"position": "top",
|
||||
"modules-left": ["sway/workspaces", "custom/player", "sway/mode"],
|
||||
"modules-right": [
|
||||
"custom/weather",
|
||||
"custom/pacman-updates",
|
||||
"pulseaudio",
|
||||
"sway/language",
|
||||
"network",
|
||||
"clock",
|
||||
"tray",
|
||||
"custom/power-menu"
|
||||
],
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-output": true,
|
||||
"format": "{index}"
|
||||
},
|
||||
"custom/player": {
|
||||
"exec": "playerctl metadata -f '{{emoji(status)}} {{title}} by {{artist}}'",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "pamixer -t",
|
||||
"restart-interval": 0,
|
||||
"tooltip": false,
|
||||
"max-length": 40
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "--{}--"
|
||||
},
|
||||
|
||||
"custom/weather": {
|
||||
"exec": "curl 'https://wttr.in/?format=1'",
|
||||
"interval": 60,
|
||||
"on-click": "firefox https://wttr.in",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/pacman-updates": {
|
||||
"exec": "pacman -Qu | wc -l",
|
||||
"interval": 60,
|
||||
"return-type": "{}",
|
||||
"format": "{} updates",
|
||||
"on-click": "alacritty -e sudo pacman -Syu",
|
||||
"tooltip": false
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"format-muted": "MUTE"
|
||||
},
|
||||
"sway/language": {
|
||||
"tooltip": false
|
||||
},
|
||||
"network": {
|
||||
"format": "{icon}",
|
||||
"format-icons": [""],
|
||||
"format-disconnected": "No network",
|
||||
"tooltip": false
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%d %b %H:%M, %A}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/power-menu": {
|
||||
"format": "{icon}",
|
||||
"format-icons": [""],
|
||||
"on-click": "wlogout -b 4 -m 450 -c 30"
|
||||
}
|
||||
}
|
||||
5
config/waybar/launch.sh
Executable file
5
config/waybar/launch.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
|
||||
killall waybar
|
||||
|
||||
waybar
|
||||
54
config/waybar/style.css
Normal file
54
config/waybar/style.css
Normal file
@@ -0,0 +1,54 @@
|
||||
/* Colors */
|
||||
/* primary: #ffa759 */
|
||||
/* background: #202734 */
|
||||
/* background-alt: #191e2a */
|
||||
/* foreground: #cbccc6 */
|
||||
|
||||
window#waybar {
|
||||
background: #191e2a;
|
||||
color: #cbccc6;
|
||||
font-family: "Fira Code", "Font Awesome 5 Free Solid";
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background: #202734;
|
||||
margin: 10px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #ffa759;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background: #ffa759;
|
||||
}
|
||||
|
||||
#mode {
|
||||
color: #ffa759;
|
||||
}
|
||||
|
||||
#custom-player,
|
||||
#custom-weather,
|
||||
#custom-pacman-updates,
|
||||
#clock,
|
||||
#network,
|
||||
#language,
|
||||
#pulseaudio,
|
||||
#tray,
|
||||
#custom-power-menu {
|
||||
background: #202734;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: #ffa759;
|
||||
}
|
||||
1
config/waybar/waybar
Symbolic link
1
config/waybar/waybar
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/waybar
|
||||
24
config/wlogout/layout
Normal file
24
config/wlogout/layout
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"label" : "lock",
|
||||
"action" : "swaylock",
|
||||
"text" : "Lock",
|
||||
"keybind" : "l"
|
||||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "loginctl terminate-user $USER",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
{
|
||||
"label" : "shutdown",
|
||||
"action" : "systemctl poweroff",
|
||||
"text" : "Shutdown",
|
||||
"keybind" : "s"
|
||||
}
|
||||
{
|
||||
"label" : "reboot",
|
||||
"action" : "systemctl reboot",
|
||||
"text" : "Reboot",
|
||||
"keybind" : "r"
|
||||
}
|
||||
66
config/wlogout/style.css
Normal file
66
config/wlogout/style.css
Normal file
@@ -0,0 +1,66 @@
|
||||
* {
|
||||
background-image: none;
|
||||
}
|
||||
window {
|
||||
background-color: #191e2a;
|
||||
}
|
||||
button {
|
||||
color: #cbccc6;
|
||||
border: none;
|
||||
background-color: #202734;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 20%;
|
||||
font-size: 15px;
|
||||
box-shadow: 0 5px 4px 4px rgba(0, 0, 0, 0.1);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
button:focus,
|
||||
button:active,
|
||||
button:hover {
|
||||
background-color: #ffa759;
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
#lock {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/lock.png"),
|
||||
url("/usr/local/share/wlogout/icons/lock.png")
|
||||
);
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/logout.png"),
|
||||
url("/usr/local/share/wlogout/icons/logout.png")
|
||||
);
|
||||
}
|
||||
|
||||
#suspend {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/suspend.png"),
|
||||
url("/usr/local/share/wlogout/icons/suspend.png")
|
||||
);
|
||||
}
|
||||
|
||||
#hibernate {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/hibernate.png"),
|
||||
url("/usr/local/share/wlogout/icons/hibernate.png")
|
||||
);
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/shutdown.png"),
|
||||
url("/usr/local/share/wlogout/icons/shutdown.png")
|
||||
);
|
||||
}
|
||||
|
||||
#reboot {
|
||||
background-image: image(
|
||||
url("/usr/share/wlogout/icons/reboot.png"),
|
||||
url("/usr/local/share/wlogout/icons/reboot.png")
|
||||
);
|
||||
}
|
||||
1
config/wlogout/wlogout
Symbolic link
1
config/wlogout/wlogout
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/wlogout
|
||||
Reference in New Issue
Block a user