diff --git a/scripts/scripts/battery_indicator.sh b/scripts/scripts/battery_indicator.sh index dd7ed8e..abd9a71 100755 --- a/scripts/scripts/battery_indicator.sh +++ b/scripts/scripts/battery_indicator.sh @@ -1,10 +1,15 @@ #!/usr/bin/env bash -#output="$(upower -i /org/freedesktop/UPower/devices/battery_BAT1)" percentage="$(cat /sys/class/power_supply/BAT1/capacity)" status="$(cat /sys/class/power_supply/BAT1/status)" -echo "${percentage}%" + +status_icon="" +case "$status" in + "Charging") + status_icon="ϟ";; +esac +echo "${status_icon}${percentage}%" diff --git a/sway/.config/sway/config b/sway/.config/sway/config index ca8b06c..b06a49b 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -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 -### Idle configuration -# -# Example configuration: -# +# autostart exec swayidle -w \ timeout 300 'swaylock -f -c 000000' \ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# 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. -# - + +exec mako +# visuals gaps inner 10 default_border pixel 1 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 # # Example configuration: @@ -102,9 +90,6 @@ input "type:keyboard" { # Kill focused window bindsym $mod+Shift+q kill - # Start your launcher - bindsym $mod+d exec $menu - # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # 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) 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: # @@ -223,21 +208,11 @@ bindsym $mod+Shift+b exec google-chrome-stable # Resizing containers: # 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 $down resize grow height 10px bindsym $up resize shrink height 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 bindsym Return mode "default" bindsym Escape mode "default" @@ -254,11 +229,16 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. # 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 + font "cozette 8" + #font "Terminus (TTF)" + height 20 colors { statusline #ebdbb2 - background #1d2021 - inactive_workspace #32323200 #32323200 #ebdbb2 + background #1d202100 + inactive_workspace #1d202100 #1d202100 #ebdbb2 + focused_workspace #282828 #83c07c #282828 + active_workspace #28282800 #83c07c #282828 } } diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index e74fbf8..895c198 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -32,6 +32,8 @@ my-backward-delete-word() { zle -N my-backward-delete-word bindkey '^W' my-backward-delete-word bindkey '^H' backward-delete-word +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line alias ls="exa --icons"