Some updates
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
## Programs
|
## Programs
|
||||||
+ Editor: nvim
|
+ Editor: nvim
|
||||||
+ Launcher: dmenu + rofi
|
+ Launcher: dmenu
|
||||||
+ Bar: polybar
|
+ Bar: polybar
|
||||||
+ Notifications: dunst
|
+ Notifications: dunst
|
||||||
+ Compositor: [picom](https://github.com/ibhagwan/picom)
|
+ Compositor: [picom](https://github.com/ibhagwan/picom)
|
||||||
@@ -16,11 +16,14 @@
|
|||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
+ Vundle: `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
|
+ vim-plug: `curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim`
|
||||||
|
|
||||||
## Fonts
|
## Fonts
|
||||||
+ Fira Code Regular Nerd Font Complete Mono.ttf: General
|
+ Fira Code Regular Nerd Font Complete Mono.ttf: General
|
||||||
+ IPAGothic.ttf: Japanese Characters
|
+ IPAGothic.ttf: Japanese Characters
|
||||||
+ [Siji](https://github.com/stark/siji): Icon Font for Polybar
|
+ [Siji](https://github.com/stark/siji): Icon Font for Polybar
|
||||||
|
|
||||||
|
To get a siji icon: `clone, ./install.sh, ./view.sh, echo "\ue002"`
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -19,7 +19,7 @@ bindsym $mod+Return exec --no-startup-id alacritty
|
|||||||
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
|
bindsym $mod+Ctrl+Return exec --no-startup-id xterm
|
||||||
|
|
||||||
# Leaving
|
# Leaving
|
||||||
bindsym $mod+Shift+BackSpace exec "~/scripts/lock-laptop.sh"
|
bindsym $mod+Shift+BackSpace exec "~/scripts/lock.sh"
|
||||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Logout?' -B 'Yes!' 'i3-msg exit'"
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Logout?' -B 'Yes!' 'i3-msg exit'"
|
||||||
|
|
||||||
# Config refresh
|
# Config refresh
|
||||||
@@ -57,7 +57,7 @@ bindsym $mod+n workspace next
|
|||||||
bindsym $mod+p workspace prev
|
bindsym $mod+p workspace prev
|
||||||
|
|
||||||
# Rofi and dmenu
|
# Rofi and dmenu
|
||||||
bindsym $mod+space exec rofi -show run
|
# bindsym $mod+space exec rofi -show run
|
||||||
|
|
||||||
set $fg '#ffffff'
|
set $fg '#ffffff'
|
||||||
set $bg '#000000'
|
set $bg '#000000'
|
||||||
@@ -138,30 +138,23 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
|||||||
new_window 1pixel
|
new_window 1pixel
|
||||||
|
|
||||||
# Set Border
|
# Set Border
|
||||||
for_window [class="^.*"] border pixel 0
|
for_window [class="^.*"] border pixel 1
|
||||||
|
|
||||||
set $frost2 "#eceff4"
|
set $red "#dc322f"
|
||||||
set $red "#A3BE8C"
|
set $termbg "#002b36"
|
||||||
|
|
||||||
set $c0 "#2E3440"
|
# class border backgr. text indic. child_border
|
||||||
set $c8 "#434C5E"
|
client.focused #ffffff #ffffff #000000 #ffffff #ffffff
|
||||||
|
client.focused_inactive $termbg $termbg #ffffff $termbg $termbg
|
||||||
|
client.unfocused $termbg $termbg #ffffff $termbg $termbg
|
||||||
|
client.urgent $red $red #ffffff $red $red
|
||||||
|
client.background #ffffff
|
||||||
|
|
||||||
# class border backgr.text indic. child_border
|
# ============================== Start
|
||||||
client.focused $c8 $c8 $frost2 $c8 $c8
|
|
||||||
client.focused_inactive $c0 $c0 $frost2 $c0 $c0
|
|
||||||
client.unfocused $c0 $c0 $frost0 $c0 $c0
|
|
||||||
client.urgent $red $red $frost2 $red $red
|
|
||||||
client.background $frost2
|
|
||||||
|
|
||||||
# i3-gaps
|
|
||||||
gaps inner 8
|
|
||||||
|
|
||||||
# ============================== Autostart
|
|
||||||
# Keyboard layout
|
# Keyboard layout
|
||||||
exec setxkbmap -layout za
|
exec setxkbmap -layout za
|
||||||
|
|
||||||
# Programs
|
|
||||||
exec feh --bg-scale $HOME/data/wallpaper/wallpaper.png
|
exec feh --bg-scale $HOME/data/wallpaper/wallpaper.png
|
||||||
exec dunst &
|
exec dunst
|
||||||
exec picom &
|
exec picom
|
||||||
exec --no-startup-id ~/.config/polybar/launch.sh laptop &
|
exec --no-startup-id ~/.config/polybar/launch.sh
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
let g:netrw_dirhistmax =10
|
let g:netrw_dirhistmax =10
|
||||||
let g:netrw_dirhistcnt =5
|
let g:netrw_dirhistcnt =6
|
||||||
|
let g:netrw_dirhist_6='/home/marc/.config/dunst'
|
||||||
let g:netrw_dirhist_5='/home/marc/.mutt/user'
|
let g:netrw_dirhist_5='/home/marc/.mutt/user'
|
||||||
let g:netrw_dirhist_4='/home/marc/dots/laptop/.config/rofi'
|
let g:netrw_dirhist_4='/home/marc/dots/laptop/.config/rofi'
|
||||||
let g:netrw_dirhist_3='/home/marc/.config/rofi'
|
let g:netrw_dirhist_3='/home/marc/.config/rofi'
|
||||||
|
|||||||
@@ -2,17 +2,16 @@
|
|||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background = #000000
|
background = #000000
|
||||||
#foreground = ${xrdb:color7}
|
|
||||||
foreground = #ffffff
|
foreground = #ffffff
|
||||||
#foreground-alt = ${xrdb:color8}
|
|
||||||
foreground-alt = #555555
|
|
||||||
urgent = ${xrdb:color1}
|
urgent = ${xrdb:color1}
|
||||||
|
#urgent = #ff0000
|
||||||
|
|
||||||
[bar/main]
|
[bar/laptop]
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
|
|
||||||
font-0 = "FiraCode Nerd Font Mono:pixelsize=9;2"
|
font-0 = "FiraCode Nerd Font Mono:pixelsize=9;2"
|
||||||
font-1 = "IPAGothic:fontformat=truetype:antialias=false:pixelsize=9;2"
|
font-1 = "IPAGothic:fontformat=truetype:antialias=false:pixelsize=9;2"
|
||||||
|
font-2 = "Siji:size=7;1"
|
||||||
|
|
||||||
height = 27px
|
height = 27px
|
||||||
width = 100%
|
width = 100%
|
||||||
@@ -26,7 +25,7 @@ padding-right = 1
|
|||||||
separator = /
|
separator = /
|
||||||
|
|
||||||
modules-left = i3 xwindow
|
modules-left = i3 xwindow
|
||||||
modules-right = spotify network volume backlight battery date
|
modules-right = spotify network networkupdown volume backlight battery date
|
||||||
|
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
@@ -53,14 +52,15 @@ ws-icon-9 = 10;十
|
|||||||
ws-icon-default =
|
ws-icon-default =
|
||||||
|
|
||||||
label-focused = "%icon%"
|
label-focused = "%icon%"
|
||||||
|
label-focused-foreground = ${colors.background}
|
||||||
|
label-focused-background = ${colors.foreground}
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
|
|
||||||
label-unfocused = "%icon%"
|
label-unfocused = "%icon%"
|
||||||
label-unfocused-foreground = ${colors.foreground-alt}
|
|
||||||
label-unfocused-padding = 1
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
label-urgent = "%icon%"
|
label-urgent = "%icon%"
|
||||||
label-urgent-foreground = ${colors.urgent}
|
label-urgent-background = ${colors.urgent}
|
||||||
label-urgent-padding = 1
|
label-urgent-padding = 1
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
@@ -76,20 +76,54 @@ date = %H:%M - %a %d.%m.%Y%
|
|||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
#ls -1 /sys/class/backlight
|
#ls -1 /sys/class/backlight
|
||||||
card = amdgpu_bl0
|
card = amdgpu_bl0
|
||||||
label = lgt %percentage%%
|
format-prefix = " "
|
||||||
|
label = %percentage%%
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
battery = BAT0
|
battery = BAT0
|
||||||
apdapter = ADP1
|
apdapter = ADP1
|
||||||
|
|
||||||
label-charging = bat %percentage%%
|
format-charging = <animation-charging> <label-charging>
|
||||||
label-discharging = bat %percentage%%
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
label-full= bat %percentage%%
|
format-full = <ramp-capacity> <label-full>
|
||||||
|
|
||||||
|
label-charging = %percentage%%
|
||||||
|
label-discharging = %percentage%%
|
||||||
|
label-full = %percentage%%
|
||||||
|
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-3 =
|
||||||
|
ramp-capacity-4 =
|
||||||
|
ramp-capacity-5 =
|
||||||
|
ramp-capacity-6 =
|
||||||
|
ramp-capacity-7 =
|
||||||
|
ramp-capacity-8 =
|
||||||
|
ramp-capacity-9 =
|
||||||
|
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-3 =
|
||||||
|
|
||||||
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
label-volume = vol %percentage%%
|
format-volume = <ramp-volume> <label-volume>
|
||||||
|
|
||||||
|
ramp-volume-0 =
|
||||||
|
ramp-volume-1 =
|
||||||
|
ramp-volume-2 =
|
||||||
|
ramp-volume-3 =
|
||||||
|
ramp-volume-4 =
|
||||||
|
ramp-headphones-0 =
|
||||||
|
ramp-headphones-1 =
|
||||||
|
|
||||||
|
label-volume = %percentage%%
|
||||||
|
format-muted-prefix = " "
|
||||||
label-muted = muted
|
label-muted = muted
|
||||||
|
|
||||||
[module/network]
|
[module/network]
|
||||||
@@ -98,5 +132,13 @@ interface = wlo1
|
|||||||
interval = 3.0
|
interval = 3.0
|
||||||
accumulate-stats = true
|
accumulate-stats = true
|
||||||
unknown-as-up = true
|
unknown-as-up = true
|
||||||
label-connected = %essid%
|
label-connected = %essid%: %signal%%
|
||||||
label-disconnected = no wifi
|
label-disconnected = no wifi
|
||||||
|
|
||||||
|
[module/networkupdown]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlo1
|
||||||
|
interval = 3.0
|
||||||
|
accumulate-stats = true
|
||||||
|
unknown-as-up = true
|
||||||
|
label-connected = %upspeed% %downspeed%
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
|
|
||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
if [ "$1" = "laptop" ]; then
|
if [ $mon = "eDP-1" ]; then
|
||||||
MONITOR=$mon polybar --reload main &
|
MONITOR=$mon polybar --reload laptop &
|
||||||
|
else
|
||||||
|
MONITOR=$mon polybar --reload desktop &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -10,29 +10,23 @@
|
|||||||
let mapleader = "\<Space>"
|
let mapleader = "\<Space>"
|
||||||
|
|
||||||
" ============================== Plugins
|
" ============================== Plugins
|
||||||
set nocompatible
|
call plug#begin()
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
|
||||||
call vundle#begin()
|
|
||||||
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plug 'altercation/vim-colors-solarized' " Colorscheme
|
||||||
|
|
||||||
" Automatic intendations
|
Plug 'tpope/vim-sleuth' " Automatic intendations
|
||||||
Plugin 'tpope/vim-sleuth'
|
|
||||||
|
|
||||||
" Pairs
|
Plug 'jiangmiao/auto-pairs' " Pair Completion
|
||||||
Plugin 'jiangmiao/auto-pairs'
|
|
||||||
|
|
||||||
" fzf
|
|
||||||
if executable("fzf")
|
if executable("fzf")
|
||||||
Plugin 'junegunn/fzf'
|
Plug 'junegunn/fzf'
|
||||||
Plugin 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Colors
|
if has ("nvim")
|
||||||
Plugin 'altercation/vim-colors-solarized'
|
endif
|
||||||
|
|
||||||
call vundle#end()
|
call plug#end()
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
" ============================== Colors
|
" ============================== Colors
|
||||||
syntax on
|
syntax on
|
||||||
@@ -55,8 +49,8 @@ set confirm " can't quit without saving
|
|||||||
set noshowmode " don't show mode in status
|
set noshowmode " don't show mode in status
|
||||||
set noshowcmd " don't show command in status
|
set noshowcmd " don't show command in status
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set mouse=c
|
set mouse=c " a=on, c=off
|
||||||
set undolevels=1337 " memegods can make mistakes
|
set undolevels=1337
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set wildmenu " autocomplete :e
|
set wildmenu " autocomplete :e
|
||||||
set scrolloff=7 " min lines aboive or below the cursor
|
set scrolloff=7 " min lines aboive or below the cursor
|
||||||
@@ -65,6 +59,8 @@ set scrolloff=7 " min lines aboive or below the cursor
|
|||||||
set list
|
set list
|
||||||
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
||||||
|
|
||||||
|
autocmd FileType perl set tabstop=8 shiftwidth=4 softtabstop=4
|
||||||
|
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
match ExtraWhitespace /\s\+\%#\@<!$/
|
match ExtraWhitespace /\s\+\%#\@<!$/
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ autoload -U colors && colors
|
|||||||
precmd_vcs_info() { vcs_info }
|
precmd_vcs_info() { vcs_info }
|
||||||
precmd_functions+=( precmd_vcs_info )
|
precmd_functions+=( precmd_vcs_info )
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
export PROMPT="%{$fg[yellow]%}%m %{$fg_bold[blue]%}%~%{$fg_bold[cyan]%}\$vcs_info_msg_0_ %{$reset_color%}"
|
export PROMPT="%{$fg[yellow]%}%m %{$fg[blue]%}%~%{$fg[cyan]%}\$vcs_info_msg_0_ %{$reset_color%}"
|
||||||
zstyle ':vcs_info:git:*' formats '|%b '
|
zstyle ':vcs_info:git:*' formats '|%b '
|
||||||
|
|
||||||
# ============================== Exports
|
# ============================== Exports
|
||||||
@@ -99,7 +99,7 @@ function zle-keymap-select() {
|
|||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
||||||
function vi_mode_prompt_info() {
|
function vi_mode_prompt_info() {
|
||||||
MODE_INDICATOR="%{$fg_bold[green]%}<<<%{$reset_color%}"
|
MODE_INDICATOR="%{$fg[green]%}<<<%{$reset_color%}"
|
||||||
echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
|
echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
dunst &
|
|
||||||
picom &
|
|
||||||
Reference in New Issue
Block a user