add sway and waybar configs, misc other stuff

This commit is contained in:
Mark Riedesel 2021-08-21 15:09:03 -05:00
parent 192a283141
commit 528c998ee4
21 changed files with 634 additions and 58 deletions

1
_bin/desktop-env Executable file
View file

@ -0,0 +1 @@
#!/bin/sh

5
_bin/i3-clean-workspace Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
WORKSPACES=$(i3-msg -t get_workspaces)
# echo $WORKSPACES | jq
echo $WORKSPACES

View file

@ -28,21 +28,27 @@ _fg=${colors[5]}
_fg2=${colors[8]}
_clear="#00000000"
rofi -show drun -modi drun \
-color-window "$_bg, $_bg, $_fg" \
-color-normal "$_clear, $_fg, $_bg2, $_fg, $_bg" \
-color-active "$_clear, $_fg, $_clear, $_fg, $_clear" \
-opacity 10 \
-width 80 \
-padding 20 \
-bw 2 \
-separator-style none \
-line-padding 3 \
-icon-theme "Paper" \
-location 0 \
-hide-scrollbar \
-show-icons true \
-font "Abel 11" \
-display-run ">" \
-theme-str "#prompt-colon { enabled: false; }"
if command -v rofi &> /dev/null; then
rofi -show drun -modi drun \
-color-window "$_bg, $_bg, $_fg" \
-color-normal "$_clear, $_fg, $_bg2, $_fg, $_bg" \
-color-active "$_clear, $_fg, $_clear, $_fg, $_clear" \
-opacity 10 \
-width 80 \
-padding 20 \
-bw 2 \
-separator-style none \
-line-padding 3 \
-icon-theme "Paper" \
-location 0 \
-hide-scrollbar \
-show-icons true \
-font "Abel 11" \
-display-run ">" \
-theme-str "#prompt-colon { enabled: false; }"
elif command -v wofi &> /dev/null; then
COMMAND=wofi
$COMMAND --show drun
fi

View file

@ -130,7 +130,7 @@ bindsym $mod+Shift+e mode "$mode_system"
# appearance
font xft:artwiz lime 7
new_window pixel 5
default_border pixel 5
font xft:Roboto 13
# gaps inner 8
# gaps outer 0
@ -142,7 +142,9 @@ for_window [class="Puppet Pounders"] floating enable
set_from_resource $fg i3wm.color7
set_from_resource $bg i3wm.color2
set_from_resource $bgalt i3wm.color8
# set $fg #ff00ff
# set $bg #00ff00
# set $bgalt #ff00ff
workspace_layout default
# class brdr bg txt indic childbdr

159
_config/i3/config-orig Normal file
View file

@ -0,0 +1,159 @@
# use windows key for mod
set $mod Mod4
# quick-launch
bindsym $mod+Return exec kitty
bindsym $mod+Home exec thunar
bindsym $mod+b exec firefox
bindsym $mod+d exec --no-startup-id ~/bin/launcher
bindsym --release $mod+g exec --no-startup-id ~/bin/screengrab
# i3 actions
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# window bindings and behavior
floating_modifier $mod
focus_follows_mouse no
# kill focused window
bindsym $mod+Shift+q kill
# move window focus (Vim style)
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move window focus (with arrow keys)
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move window (Vim style)
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# move window (with arrow 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
# container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# splits
bindsym $mod+u split h
bindsym $mod+i split v
# fullscreen
bindsym $mod+f fullscreen
# toggle tiling/floating
bindsym $mod+Shift+space floating toggle
# toggle focus between tiling/floating
bindsym $mod+space focus mode_toggle
# focus parent container
bindsym $mod+a focus parent
# switch to specific workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# move focus to adjacent output
bindsym $mod+bracketleft focus output left
bindsym $mod+bracketright focus output right
# jump to workspace on same output
bindsym $mod+Shift+bracketleft workspace prev_on_output
bindsym $mod+Shift+bracketright workspace next_on_output
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l 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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# nice system menu
set $mode_system System (e) logout, (r) reboot, (shift+s) shutdown
mode "$mode_system" {
bindsym e exec --no-startup-id ~/bin/i3exit logout, mode "default"
bindsym r exec --no-startup-id ~/bin/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id ~/bin/i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "$mode_system"
# appearance
font xft:artwiz lime 7
default_border pixel 5
font xft:Roboto 13
# gaps inner 8
# gaps outer 0
# app specific launch flags
for_window [class="Peek"] floating enable
#set_from_resource $fg i3wm.color7
#set_from_resource $bg i3wm.color2
#set_from_resource $bgalt i3wm.color8
workspace_layout default
# class brdr bg txt indic childbdr
client.focused $bg $bg $fg $bg $bg
client.focused_inactive $bg $bg $fg $bg $bg
client.unfocused $bgalt $bgalt $fg $bg $bgalt
# client.urgent $bg $bg $fg $bg $bg
# client.placeholder $bg $bg $fg $bg $bg
# client.background $bg
# autostart
#exec --no-startup-id wal -q -t -i ~/wallpaper --saturate 0.8
exec_always ~/.config/polybar/launch.sh

View file

@ -8,3 +8,4 @@ window_padding_width 2.0
term xterm-256color
enable_audio_bell no
sync_to_monitor yes
background_opacity 0.95

1
_config/mpv/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
watch_later/*

4
_config/mpv/mpv.conf Normal file
View file

@ -0,0 +1,4 @@
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
loop-file=yes

2
_config/mpv/sbs.conf Normal file
View file

@ -0,0 +1,2 @@
glsl_shader=~~/sbs-tweak.glsl
loop-file=yes

View file

@ -0,0 +1,8 @@
//!HOOK CHROMA
//!BIND HOOKED
//!BIND LUMA
vec4 hook() {
vec3 _m = vec3(HOOKED_pos, 0.5);
return vec4(_m, 1.0);
}

View file

@ -25,13 +25,5 @@
"port": 6008
}
},
"tsserver.log": "true",
"tsserver.tsdk": ".yarn/sdks/typescript/lib",
"eslint": {
"packageManager": "yarn",
"nodePath": ".yarn/sdks",
"format": {
"enable": true
}
}
"tsserver.log": "true"
}

View file

@ -0,0 +1,7 @@
" to use folding provided by plugin
# setlocal foldmethod=expr
setlocal tabstop=4
nnoremap <buffer> <F4> :GodotRunLast<CR>
nnoremap <buffer> <F5> :GodotRun<CR>
nnoremap <buffer> <F6> :GodotRunCurrent<CR>
nnoremap <buffer> <F7> :GodotRunFZF<CR>

View file

@ -41,7 +41,7 @@ set softtabstop=4
set spell
set tabstop=4
set termguicolors
set filetype
" install vim-plug
if !filereadable(expand('~/.local/share/nvim/site/autoload/plug.vim'))
silent !echo "Installing vim-plug..."
@ -63,6 +63,12 @@ Plug 'sainnhe/sonokai', "{{{
" let g:sonokai_style = "maia"
" let g:sonokai_style = "shusia"
"}}}
Plug 'ghifarit53/tokyonight-vim', "{{{
let g:tokyonight_style = 'night'
let g:tokyonight_enable_italic = 1
let g:tokyonight_trasnparent_background = 1
"}}}
Plug 'dracula/vim', {'as': 'dracula'}
Plug 'nanotech/jellybeans.vim', "{{{
let g:jellybeans_use_term_italics=1
let g:jellybeans_use_gui_italics=1
@ -83,7 +89,6 @@ Plug 'posva/vim-vue'
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
Plug 'pantharshit00/vim-prisma'
Plug 'alexlafroscia/postcss-syntax.vim'
Plug 'habamax/vim-godot'
" functionality
Plug 'tpope/vim-sensible'
@ -221,13 +226,15 @@ Plug 'junegunn/fzf.vim', "{{{
nnoremap <silent> ; :call <sid>FuzzyFiles()<CR>
nnoremap <leader>/ :Rg<CR>
"}}}
Plug 'habamax/vim-godot', "{{{
"}}}
call plug#end()
" theme / visual
try
" colorscheme jellybeans
colorscheme sonokai
colorscheme dracula
catch
endtry
hi clear SpellBad " italicize misspellings

View file

@ -1,7 +1,4 @@
#backend = "xrender"
backend = "glx";
xrender-sync-fence =true;
vsync = true;
#backend = "xrender";
mark-wmwin-focused = true;
detect-client-opacity = true;
@ -14,38 +11,20 @@ fade-delta = 20;
fade-in-step = 0.2;
fade-out-step = 0.2;
# blur-kern = "3x3box"
# blur-background = false;
blur: {
method = "kawase";
strength = 5;
background = false;
background-frame = false;
background-fixed = false;
}
blur-kern = "3x3box"
blur-background = false;
### Shadows
shadow = true;
shadow-opacity = 0.3;
#shadow-radius = 3;
shadow-exclude = [
"class_g = 'slop'",
"class_g ~= 'Peek'"
"class_g = 'slop'",
]
### Rounded corners
#corner-radius = 10.0;
blur-background-exclude = [
"class_g ~= 'Peek'",
"class_g ~= 'maim'",
"class_i ~= 'maim'",
"class_g ~= 'slop'",
"name ~= 'maim'"
]
opacity-rule = [
"98:class_g = 'kitty' && focused",
"90:class_g = 'kitty' && !focused",
"95:class_g = 'kitty' && !focused",
"98:name *= 'polybar'"
];

187
_config/sway/config Normal file
View file

@ -0,0 +1,187 @@
# use windows key for mod
set $mod Mod4
# quick-launch
bindsym $mod+Return exec kitty
bindsym $mod+Home exec thunar
bindsym $mod+b exec firefox
bindsym $mod+d exec --no-startup-id ~/bin/launcher
bindsym --release $mod+g exec --no-startup-id ~/bin/screengrab
# i3 actions
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# window bindings and behavior
floating_modifier $mod
focus_follows_mouse no
# kill focused window
bindsym $mod+Shift+q kill
# move window focus (Vim style)
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move window focus (with arrow keys)
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move window (Vim style)
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# move window (with arrow 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
# container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# splits
bindsym $mod+u split h
bindsym $mod+i split v
# fullscreen
bindsym $mod+f fullscreen
# toggle tiling/floating
bindsym $mod+Shift+space floating toggle
# toggle focus between tiling/floating
bindsym $mod+space focus mode_toggle
# focus parent container
bindsym $mod+a focus parent
# switch to specific workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# move focus to adjacent output
bindsym $mod+bracketleft focus output left
bindsym $mod+bracketright focus output right
# jump to workspace on same output
bindsym $mod+Shift+bracketleft workspace prev_on_output
bindsym $mod+Shift+bracketright workspace next_on_output
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l 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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# nice system menu
set $mode_system System (e) logout, (r) reboot, (shift+s) shutdown
mode "$mode_system" {
bindsym e exec --no-startup-id ~/bin/i3exit logout, mode "default"
bindsym r exec --no-startup-id ~/bin/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id ~/bin/i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "$mode_system"
# appearance
font xft:artwiz lime 7
default_border pixel 5
font xft:Roboto 13
#gaps inner 8
# gaps outer 0
gaps inner 5
# app specific launch flags
for_window [class="Peek"] floating enable
#set_from_resource $fg i3wm.color7
#set_from_resource $bg i3wm.color2
#set_from_resource $bgalt i3wm.color8
include "$HOME/.cache/wal/colors-sway"
set $fg $color3
set $bg $color1
set $bgalt $color7
workspace_layout default
# class brdr bg txt indic childbdr
client.focused $bg $bg $fg $bg $bg
client.focused_inactive $bg $bg $fg $bg $bg
client.unfocused $bgalt $bgalt $fg $bg $bgalt
# client.urgent $bg $bg $fg $bg $bg
# client.placeholder $bg $bg $fg $bg $bg
# client.background $bg
# autostart
#exec --no-startup-id wal -q -t -i ~/wallpaper --saturate 0.8
# exec_always ~/.config/polybar/launch.sh
exec_always mako
input "type:keyboard" {
xkb_options caps:swapescape
}
set $monitor-center DP-1
set $monitor-left DVI-D-1
set $monitor-right DVI-I-1
output $monitor-center pos 1080 500 res 3840x2160
output $monitor-left pos 0 0 res 1920x1080 transform 90
output $monitor-right pos 4920 0 res 1920x1080 transform 270
# output $monitor-center bg $wallpaper fill
# output $monitor-left bg $wallpaper fill
# output $monitor-right bg $wallpaper fill
output * bg $wallpaper fill
bar {
swaybar_command waybar
}
set $opacity 0.9
for_window [app_id="kitty"] opacity $opacity;

37
_config/waybar/config Normal file
View file

@ -0,0 +1,37 @@
{
"layer": "top",
"modules-left": ["sway/workspaces", "mpd", "sway/mode"],
"modules-center": [],
"modules-right": ["network", "pulseaudio", "temperature", "cpu", "memory", "clock"],
"mpd": {
"tooltip": false,
"format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
"format-disconnected": "ﳌ",
"format-stopped": "",
"state-icons": {
"playing": "",
"paused": ""
}
},
"pulseaudio": {
"tooltip": false,
"scroll-step": 5,
"format": "{icon} {volume}%",
"format-icons": {
"default": ["奄", "奔", "墳"]
}
},
"network": {
"tooltip": false,
"format-wifi": " {essid} {ipaddr}",
"format-ethernet": " {ipaddr}"
},
"cpu": {
"tooltip": false,
"format": " {}%"
},
"memory": {
"tooltip": false,
"format": " {}%"
}
}

167
_config/waybar/style.css Normal file
View file

@ -0,0 +1,167 @@
/*
********************************************
**
**
**
**
**
********************************************
*/
* {
border: none;
border-radius: 0;
font-family: Nerd Font Hack;
font-size: 14px;
min-height: 24px;
}
window#waybar {
background: transparent;
}
window#waybar.hidden {
opacity: 0.2;
}
#window {
margin-top: 8px;
padding-left: 16px;
padding-right: 16px;
border-radius: 26px;
transition: none;
/*
color: #f8f8f2;
background: #282a36;
*/
color: transparent;
background: transparent;
}
window#waybar.termite #window,
window#waybar.Firefox #window,
window#waybar.Navigator #window,
window#waybar.PCSX2 #window {
color: #4d4d4d;
background: #e6e6e6;
}
#workspaces {
margin-top: 8px;
margin-left: 12px;
margin-bottom: 0;
border-radius: 26px;
background: #282a36;
transition: none;
}
#workspaces button {
transition: none;
color: #f8f8f2;
background: transparent;
font-size: 16px;
}
#workspaces button.focused {
color: #9aedfe;
}
#workspaces button:hover {
transition: none;
box-shadow: inherit;
text-shadow: inherit;
color: #ff79c6;
}
#mpd {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
background: #282a36;
transition: none;
color: #4d4d4d;
background: #5af78e;
}
#mpd.disconnected,
#mpd.stopped {
color: #f8f8f2;
background: #282a36;
}
#network {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #bd93f9;
}
#pulseaudio {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #9aedfe;
}
#temperature {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #5af78e;
}
#cpu {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #f1fa8c;
}
#memory {
margin-top: 8px;
margin-left: 8px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #4d4d4d;
background: #ff6e67;
}
#clock {
margin-top: 8px;
margin-left: 8px;
margin-right: 12px;
padding-left: 16px;
padding-right: 16px;
margin-bottom: 0;
border-radius: 26px;
transition: none;
color: #f8f8f2;
background: #282a36;
}

View file

@ -0,0 +1,5 @@
# if neovim-remote is present, create an alias for nvim
if (( $+commands[nvr] )) then
alias gdvim="NVIM_LISTEN_ADDRESS=/tmp/$USER-godot nvr"
fi

View file

@ -0,0 +1,3 @@
if (( $+commands[sway] )) then
export MOZ_ENABLE_WAYLAND=1
fi

1
tmux.conf Normal file
View file

@ -0,0 +1 @@
set-window-option -g mode-mouse on

2
zshrc
View file

@ -8,6 +8,8 @@ setopt EXTENDED_HISTORY # Include more information about command executed, e
setopt COMPLETE_IN_WORD # Allow completion from within a word/phrase
setopt PROMPT_SUBST # Enable parameter expansion, etc. in prompt
export LS_OPTIONS='--group-directories-first'
# aliases
alias retheme='wal -q -t -i ~/wallpaper -saturate 0.9'
alias sudo='sudo '