Change up font

This commit is contained in:
Marco Thomas
2022-05-09 18:05:01 +02:00
parent 7157c4a496
commit bb0b18b4d1
9 changed files with 62 additions and 53 deletions

View File

@@ -1,8 +1,13 @@
#!/bin/bash
date=$(date +'%A, %d.%m %R')
date=$(date +'%A, %d. %b %R')
battery=$(cat /sys/class/power_supply/BAT1/capacity)
if [ $(cat /sys/class/power_supply/BAT1/status) = 'Discharging' ]; then
bat_rem=" ▼ "$(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep "time to empty" | cut -f14- -d ' ')
else
bat_rem=" ⯅ "$(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep "time to full" | cut -f15- -d ' ')
fi
if [ $(cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode) = '1' ]; then
conservation='on'
@@ -18,4 +23,4 @@ fi
powermode=$(cat /sys/firmware/acpi/platform_profile)
sep='-'
echo $battery"% "$conservation $sep $powermode $sep $wifi $sep $date
echo $battery"%"$bat_rem $sep $conservation $sep $powermode $sep $wifi $sep $date

View File

@@ -61,13 +61,12 @@ input type:pointer {
input type:keyboard {
xkb_layout eu
xkb_options caps:escape
repeat_delay 300
repeat_rate 50
}
# Key bindings
# Basics:
# Floating
floating_modifier $mod normal
# Terminal
bindsym $mod+Return exec gnome-terminal
@@ -75,14 +74,14 @@ input type:keyboard {
bindsym $mod+Shift+Backspace kill
# Application launcher
bindsym $mod+d exec dmenu_path | bemenu -l 5 --tf "#859900" --hf "#859900" --nb "#002b36" --hb "#002b36" --tb "#002b36" --fb "#002b36" --fn "JuliaMono 13" | xargs swaymsg exec --
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#002b36" --hb "#002b36" --tb "#002b36" --fb "#002b36" --fn "JuliaMono 13" -i
set $files find $HOME -name '*.pdf' -not -path "$HOME/\.*" 2> /dev/null | cut -f 4- -d "/"
bindsym $mod+d exec dmenu_path | $bemenu | xargs swaymsg exec --
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdfs' | xargs -d '\n' -r xdg-open
# Screenshot
# bindsym $mod+Shift+s exec wayshot -s "$(slurp -f '%x %y %w %h')" --stdout | wl-copy
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | swappy -f -
# Reload the configuration file
bindsym $mod+Shift+r reload
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
bindsym $mod+Ctrl+Shift+s exec grim -g "$(slurp)" - | swappy -f -
# Logout etc
bindsym $mod+Ctrl+Backspace exec wlogout
@@ -91,8 +90,8 @@ input type:keyboard {
bindsym $mod+v exec swaync-client -t -sw
# Brightness
bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86MonBrightnessUp exec light -A 5
bindsym XF86MonBrightnessDown exec light -U 5
# Audio
bindsym XF86AudioPlay exec playerctl play-pause
@@ -109,22 +108,12 @@ input type:keyboard {
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, 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
# Workspaces:
# Declare workspaces
@@ -138,6 +127,7 @@ input type:keyboard {
set $ws8 '8'
set $ws9 '9'
set $ws10 '10'
# Switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
@@ -149,6 +139,7 @@ input type:keyboard {
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
@@ -160,8 +151,6 @@ input type:keyboard {
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
# Layout stuff:
workspace_layout stacking
@@ -169,6 +158,9 @@ input type:keyboard {
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Resize windows with $mod + mouse
floating_modifier $mod normal
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
@@ -176,7 +168,9 @@ input type:keyboard {
bindsym $mod+space focus mode_toggle
# Window rules
default_border none
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
assign [app_id="org.keepassxc.KeePassXC"] $ws9
# Status Bar
# man 5 sway-bar