sway tweaks
This commit is contained in:
52
.config/alacritty/alacritty.toml
Normal file
52
.config/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
[colors.bright]
|
||||||
|
black = "#545454"
|
||||||
|
blue = "#94bff3"
|
||||||
|
cyan = "#93e0e3"
|
||||||
|
green = "#8ae234"
|
||||||
|
magenta = "#b294bb"
|
||||||
|
red = "#fc5454"
|
||||||
|
white = "#ffffff"
|
||||||
|
yellow = "#fce94f"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#3f3f3f"
|
||||||
|
blue = "#94bff3"
|
||||||
|
cyan = "#06989a"
|
||||||
|
green = "#4e9a06"
|
||||||
|
magenta = "#85678f"
|
||||||
|
red = "#cc0000"
|
||||||
|
white = "#dcdccc"
|
||||||
|
yellow = "#c4a000"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#222222"
|
||||||
|
foreground = "#F9F9F9"
|
||||||
|
|
||||||
|
[font]
|
||||||
|
size = 11.0
|
||||||
|
|
||||||
|
[font.bold]
|
||||||
|
style = "Bold"
|
||||||
|
family = "FiraCode Nerd Font Mono"
|
||||||
|
|
||||||
|
[font.bold_italic]
|
||||||
|
style = "Bold Italic"
|
||||||
|
family = "FiraCode Nerd Font Mono"
|
||||||
|
|
||||||
|
[font.italic]
|
||||||
|
style = "Italic"
|
||||||
|
family = "FiraCode Nerd Font Mono"
|
||||||
|
|
||||||
|
[font.normal]
|
||||||
|
style = "Regular"
|
||||||
|
family = "FiraCode Nerd Font Mono"
|
||||||
|
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
action = "ToggleFullscreen"
|
||||||
|
key = "F11"
|
||||||
|
|
||||||
|
[scrolling]
|
||||||
|
history = 50000
|
||||||
|
|
||||||
|
[window]
|
||||||
|
opacity = 0.8
|
||||||
81
.config/shell/alias.sh
Normal file
81
.config/shell/alias.sh
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
|
||||||
|
alias diff='diff -u --color'
|
||||||
|
alias tree='eza --tree'
|
||||||
|
alias ls='eza --group-directories-first' # make output more readable and show directories first
|
||||||
|
alias ll='ls --long --header --git'
|
||||||
|
alias li='ls --git-ignore'
|
||||||
|
alias la='ls --all'
|
||||||
|
alias less='less --use-color'
|
||||||
|
alias grep='rg' # colorize grep output, set GREP_COLORS
|
||||||
|
alias cp="cp -i" # Confirm before overwriting something
|
||||||
|
alias df='df -h' # Human-readable sizes
|
||||||
|
alias vi='nvim' # Show sizes in MB
|
||||||
|
alias r='R'
|
||||||
|
alias xar="xarchiver"
|
||||||
|
alias g="git"
|
||||||
|
alias py="python"
|
||||||
|
alias t="dict"
|
||||||
|
alias act="source .venv/bin/activate"
|
||||||
|
alias copy="wl-copy"
|
||||||
|
alias paste="wl-paste"
|
||||||
|
|
||||||
|
|
||||||
|
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
||||||
|
alias notify='notify-send --urgency=normal -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
|
#Add a "dotfiles" alias for .dotfile git repo
|
||||||
|
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
|
#alias 'dotfiles-update'='dotfiles commit -a && dotfiles push'
|
||||||
|
|
||||||
|
sleep() {
|
||||||
|
if [ "$1" = "-m" ]; then
|
||||||
|
if [ -n "$2" ]; then
|
||||||
|
sleep "$(( $2 * 60 ))"
|
||||||
|
else
|
||||||
|
echo "Please provide a duration in minutes after the -m flag."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
/usr/bin/sleep "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
colors() {
|
||||||
|
local fgc bgc vals seq0
|
||||||
|
|
||||||
|
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
|
||||||
|
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
|
||||||
|
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
|
||||||
|
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
|
||||||
|
|
||||||
|
# foreground colors
|
||||||
|
for fgc in {30..37}; do
|
||||||
|
# background colors
|
||||||
|
for bgc in {40..47}; do
|
||||||
|
fgc=${fgc#37} # white
|
||||||
|
bgc=${bgc#40} # black
|
||||||
|
|
||||||
|
vals="${fgc:+$fgc;}${bgc}"
|
||||||
|
vals=${vals%%;}
|
||||||
|
|
||||||
|
seq0="${vals:+\e[${vals}m}"
|
||||||
|
printf " %-9s" "${seq0:-(default)}"
|
||||||
|
printf " ${seq0}TEXT\e[m"
|
||||||
|
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
|
||||||
|
done
|
||||||
|
echo; echo
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
wttr() #alternatively use schachmat/wego
|
||||||
|
{
|
||||||
|
for city in "$@"; do
|
||||||
|
curl "wttr.in/$city";
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pwd() # print path of files
|
||||||
|
{
|
||||||
|
echo "$PWD/$1"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -15,9 +15,6 @@ exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|||||||
# Desktop notifications
|
# Desktop notifications
|
||||||
exec mako -c ~/.config/sway/mako/config
|
exec mako -c ~/.config/sway/mako/config
|
||||||
|
|
||||||
# Autotiling
|
|
||||||
exec autotiling
|
|
||||||
|
|
||||||
# Wlsunset - night colors - install this application
|
# Wlsunset - night colors - install this application
|
||||||
# exec ~/.config/sway/scripts/light.sh
|
# exec ~/.config/sway/scripts/light.sh
|
||||||
|
|
||||||
@@ -26,6 +23,7 @@ exec dex -a -s /etc/xdg/autostart/:~/.config/autostart/
|
|||||||
|
|
||||||
# nm-applet
|
# nm-applet
|
||||||
exec nm-applet --indicator
|
exec nm-applet --indicator
|
||||||
|
exec blueman-tray
|
||||||
|
|
||||||
# Clipman wl-paste
|
# Clipman wl-paste
|
||||||
# exec clipman restore
|
# exec clipman restore
|
||||||
|
|||||||
@@ -78,29 +78,11 @@ bindsym $mod+Ctrl+c exec killall conky
|
|||||||
bindsym Ctrl+Alt+Next exec conky-rotate -n
|
bindsym Ctrl+Alt+Next exec conky-rotate -n
|
||||||
bindsym Ctrl+Alt+Prior exec conky-rotate -p
|
bindsym Ctrl+Alt+Prior exec conky-rotate -p
|
||||||
|
|
||||||
# Variety
|
|
||||||
# trash wallpaper
|
|
||||||
bindsym Alt+t exec variety -t
|
|
||||||
# next wallpaper
|
|
||||||
bindsym Alt+n exec variety -n
|
|
||||||
bindsym Shift+Alt+n exec variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)
|
|
||||||
bindsym Alt+Right exec variety -n
|
|
||||||
# previous wallpaper
|
|
||||||
bindsym Alt+p exec variety -p
|
|
||||||
bindsym Alt+Left exec variety -p
|
|
||||||
# favorite wallpaper
|
|
||||||
bindsym Alt+f exec variety -f
|
|
||||||
# pause wallpaper
|
|
||||||
bindsym Alt+Up exec variety --pause
|
|
||||||
# resume wallpaper
|
|
||||||
bindsym Alt+Down exec variety --resume
|
|
||||||
|
|
||||||
# task manager
|
|
||||||
|
|
||||||
#bindsym $mod+Escape exec ~/.config/sway/scripts/wkill.sh
|
#bindsym $mod+Escape exec ~/.config/sway/scripts/wkill.sh
|
||||||
|
|
||||||
# CONTROL + ALT
|
# CONTROL + ALT
|
||||||
bindsym Ctrl+Alt+b exec thunar
|
bindsym $mod+e exec thunar
|
||||||
bindsym Ctrl+Alt+f exec firefox
|
bindsym Ctrl+Alt+f exec firefox
|
||||||
bindsym Ctrl+Alt+g exec chromium
|
bindsym Ctrl+Alt+g exec chromium
|
||||||
bindsym Ctrl+Alt+p exec pamac-manager
|
bindsym Ctrl+Alt+p exec pamac-manager
|
||||||
|
|||||||
@@ -14,18 +14,14 @@ input type:touchpad {
|
|||||||
#
|
#
|
||||||
# Change or switch the next setting
|
# Change or switch the next setting
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
xkb_layout "de"
|
xkb_layout eu
|
||||||
xkb_numlock enabled
|
xkb_numlock enabled
|
||||||
repeat_delay 200
|
repeat_delay 200
|
||||||
repeat_rate 35
|
repeat_rate 35
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exec_always {
|
|
||||||
'swaymsg input type:keyboard xkb_layout "$(localectl status | grep "X11 Layout" | sed -e "s/^.*X11 Layout://")"'
|
|
||||||
'swaymsg input type:keyboard xkb_variant "$(localectl status | grep "X11 Variant" | sed -e "s/^.*X11 Variant://")"'
|
|
||||||
}
|
|
||||||
|
|
||||||
input "5824:10203:MoErgo_Glove80_Left_Keyboard" {
|
input "5824:10203:MoErgo_Glove80_Left_Keyboard" {
|
||||||
xkb_layout "eu"
|
xkb_layout eu
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
### Output configuration
|
### Output configuration
|
||||||
|
output DP_2 resolution 2560x1440 pos 0 0
|
||||||
|
output DP_3 resolution 2560x1440 pos 2560 0
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
|
|||||||
19
.config/sway/config.d/scratchpad
Normal file
19
.config/sway/config.d/scratchpad
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# vim: filetype=i3config
|
||||||
|
# Scratchpad binds
|
||||||
|
exec_always bitwarden-desktop
|
||||||
|
for_window [instance="bitwarden"] move scratchpad
|
||||||
|
for_window [instance="bitwarden"] sticky enable
|
||||||
|
for_window [instance="bitwarden"] resize set height 1200 900
|
||||||
|
bindsym $mod+p [instance="bitwarden"] scratchpad show;
|
||||||
|
|
||||||
|
exec_always alacritty --class="dropdown_tmux" -e 'tmux'
|
||||||
|
for_window [app_id="dropdown_tmux"] move scratchpad
|
||||||
|
for_window [app_id="dropdown_tmux"] floating enable
|
||||||
|
for_window [app_id="dropdown_tmux"] sticky enable
|
||||||
|
for_window [app_id="dropdown_tmux"] resize set height 900 width 1200
|
||||||
|
bindsym $mod+Space [app_id="dropdown_tmux"] scratchpad show
|
||||||
|
|
||||||
|
# General dropdown window traits. The order can matter.
|
||||||
|
# sticky allows windows to stay visible even when switching workspaces
|
||||||
|
#for_window [instance="dropdown_tmux"] border pixel 3
|
||||||
|
|
||||||
Reference in New Issue
Block a user