mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
fix home and end key on zsh
This commit is contained in:
parent
f6705a7ac2
commit
8b66cf5713
3 changed files with 22 additions and 35 deletions
|
@ -1,10 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#output="$(upower -i /org/freedesktop/UPower/devices/battery_BAT1)"
|
|
||||||
percentage="$(cat /sys/class/power_supply/BAT1/capacity)"
|
percentage="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||||
status="$(cat /sys/class/power_supply/BAT1/status)"
|
status="$(cat /sys/class/power_supply/BAT1/status)"
|
||||||
|
|
||||||
|
|
||||||
echo "${percentage}%"
|
|
||||||
|
status_icon=""
|
||||||
|
case "$status" in
|
||||||
|
"Charging")
|
||||||
|
status_icon="ϟ";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
echo "${status_icon}${percentage}%"
|
||||||
|
|
|
@ -31,31 +31,25 @@ output * bg /home/leon/Pictures/wallpapers/0126.jpg fill
|
||||||
#
|
#
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
### Idle configuration
|
# autostart
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 000000' \
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep 'swaylock -f -c 000000'
|
before-sleep 'swaylock -f -c 000000'
|
||||||
#
|
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
exec mako
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# visuals
|
||||||
gaps inner 10
|
gaps inner 10
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
client.focused "#ebdbb2" "#ebdbb2" "#1d2021"
|
client.focused "#ebdbb2" "#ebdbb2" "#1d2021"
|
||||||
client.unfocused "#28282800" "#28282800" "#1d2021"
|
client.unfocused "#1d2021" "#1d2021" "#1d2021"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,12 +59,6 @@ client.unfocused "#28282800" "#28282800" "#1d2021"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exec mako
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
|
@ -102,9 +90,6 @@ input "type:keyboard" {
|
||||||
# Kill focused window
|
# Kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# Start your launcher
|
|
||||||
bindsym $mod+d exec $menu
|
|
||||||
|
|
||||||
# Drag floating windows by holding down $mod and left mouse button.
|
# Drag floating windows by holding down $mod and left mouse button.
|
||||||
# Resize them with right mouse button + $mod.
|
# Resize them with right mouse button + $mod.
|
||||||
# Despite the name, also works for non-floating windows.
|
# Despite the name, also works for non-floating windows.
|
||||||
|
@ -118,7 +103,7 @@ input "type:keyboard" {
|
||||||
# Exit sway (logs you out of your Wayland session)
|
# Exit sway (logs you out of your Wayland session)
|
||||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||||
|
|
||||||
bindsym $mod+Shift+p exec rofi -show drun -modi drun
|
bindsym $mod+Shift+p exec ~/.config/rofi/bin/launcher_ribbon
|
||||||
#
|
#
|
||||||
# Moving around:
|
# Moving around:
|
||||||
#
|
#
|
||||||
|
@ -223,21 +208,11 @@ bindsym $mod+Shift+b exec google-chrome-stable
|
||||||
# Resizing containers:
|
# Resizing containers:
|
||||||
#
|
#
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
# left will shrink the containers width
|
|
||||||
# right will grow the containers width
|
|
||||||
# up will shrink the containers height
|
|
||||||
# down will grow the containers height
|
|
||||||
bindsym $left resize shrink width 10px
|
bindsym $left resize shrink width 10px
|
||||||
bindsym $down resize grow height 10px
|
bindsym $down resize grow height 10px
|
||||||
bindsym $up resize shrink height 10px
|
bindsym $up resize shrink height 10px
|
||||||
bindsym $right resize grow width 10px
|
bindsym $right resize grow width 10px
|
||||||
|
|
||||||
# Ditto, with arrow keys
|
|
||||||
bindsym Left resize shrink width 10px
|
|
||||||
bindsym Down resize grow height 10px
|
|
||||||
bindsym Up resize shrink height 10px
|
|
||||||
bindsym Right resize grow width 10px
|
|
||||||
|
|
||||||
# Return to default mode
|
# Return to default mode
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
|
@ -254,11 +229,16 @@ bar {
|
||||||
# When the status_command prints a new line to stdout, swaybar updates.
|
# When the status_command prints a new line to stdout, swaybar updates.
|
||||||
# The default just shows the current date and time.
|
# The default just shows the current date and time.
|
||||||
status_command while echo "$(/home/leon/scripts/battery_indicator.sh) // $(date +'%Y-%m-%d %l:%M:%S %p')"; do sleep 1; done
|
status_command while echo "$(/home/leon/scripts/battery_indicator.sh) // $(date +'%Y-%m-%d %l:%M:%S %p')"; do sleep 1; done
|
||||||
|
font "cozette 8"
|
||||||
|
#font "Terminus (TTF)"
|
||||||
|
height 20
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
statusline #ebdbb2
|
statusline #ebdbb2
|
||||||
background #1d2021
|
background #1d202100
|
||||||
inactive_workspace #32323200 #32323200 #ebdbb2
|
inactive_workspace #1d202100 #1d202100 #ebdbb2
|
||||||
|
focused_workspace #282828 #83c07c #282828
|
||||||
|
active_workspace #28282800 #83c07c #282828
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@ my-backward-delete-word() {
|
||||||
zle -N my-backward-delete-word
|
zle -N my-backward-delete-word
|
||||||
bindkey '^W' my-backward-delete-word
|
bindkey '^W' my-backward-delete-word
|
||||||
bindkey '^H' backward-delete-word
|
bindkey '^H' backward-delete-word
|
||||||
|
bindkey "^[[H" beginning-of-line
|
||||||
|
bindkey "^[[F" end-of-line
|
||||||
|
|
||||||
|
|
||||||
alias ls="exa --icons"
|
alias ls="exa --icons"
|
||||||
|
|
Loading…
Reference in a new issue