dotfiles

[ACTIVE] managed with chezmoi
git clone git://git.figbert.com/dotfiles.git
Log | Files | Refs

commit 3779d6509954c1288273e769fbc79a35acd7cddf
parent 05265e05c3e525200f9734d280f6d6ec2885ac0f
Author: FIGBERT <figbert@figbert.com>
Date:   Fri, 23 Jul 2021 14:27:02 -0700

Add SwayWM and i3status-rust config

Diffstat:
Adot_config/i3status-rust/config.toml | 31+++++++++++++++++++++++++++++++
Adot_config/sway/config.tmpl | 141+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 172 insertions(+), 0 deletions(-)

diff --git a/dot_config/i3status-rust/config.toml b/dot_config/i3status-rust/config.toml @@ -0,0 +1,31 @@ +theme = "slick" +icons = "material-nf" + +[[block]] +block = "cpu" +interval = 5 + +[[block]] +block = "memory" +display_type = "memory" +format_mem = "{mem_total_used_percents}" +clickable = false + +[[block]] +block = "backlight" + +[[block]] +block = "sound" +driver = "alsa" + +[[block]] +block = "net" +format = "{ssid}" + +[[block]] +block = "battery" + +[[block]] +block = "time" +format = "%a %d-%m-%Y %T" +interval = 1 diff --git a/dot_config/sway/config.tmpl b/dot_config/sway/config.tmpl @@ -0,0 +1,141 @@ +# Variables +set $mod Mod1 +set $left h +set $down j +set $up k +set $right l +set $term alacritty +set $menu bemenu-run --fn 'JetBrainsMono Nerd Font Mono' | xargs swaymsg exec -- + +# Output +output * bg /usr/share/backgrounds/big-sur.jpg fill +client.focused #0a84ff #00448a #f2f2f7 #57aaff #0a84ff +default_border pixel 2 +gaps outer 8 +gaps inner 8 + +# Input +input "2:7:SynPS/2_Synaptics_TouchPad" { + dwt enabled + natural_scroll enabled + middle_emulation enabled +} +input "type:keyboard" { + xkb_layout us,il + xkb_options caps:escape +} + +# Key Bindings +bindsym $mod+Return exec $term +bindsym $mod+Shift+q kill +bindsym $mod+q exec swaylock -f -i /usr/share/backgrounds/spaceport.jpg +bindsym $mod+d exec $menu +floating_modifier $mod normal +bindsym $mod+Shift+c reload +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+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 + +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 10 + +bindsym $mod+b splith +bindsym $mod+v splitv + +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +bindsym $mod+f fullscreen + +bindsym $mod+Shift+space floating toggle +bindsym $mod+space focus mode_toggle +bindsym $mod+a focus parent + +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +mode "resize" { + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +bindsym XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym XF86MonBrightnessUp exec brightnessctl set +5% +bindsym Shift+XF86MonBrightnessDown exec brightnessctl set 1%- +bindsym Shift+XF86MonBrightnessUp exec brightnessctl set +1% + +bindsym XF86AudioLowerVolume exec amixer set Master 5%- +bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ +bindsym Shift+XF86AudioLowerVolume exec amixer set Master 1%- +bindsym Shift+XF86AudioRaiseVolume exec amixer set Master 1%+ + +# Status Bar +bar { + position top + status_command i3status-rs + font pango:JetBrainsMono Nerd Font Mono + + colors { + statusline #f2f2f7 + background #2c2c2e + focused_workspace #0a84ff #00448a #f2f2f7 + inactive_workspace #2c2c2e #2c2c2e #636366 + urgent_workspace #960800 #960800 #f2f2f7 + } +} + +# swayidle +exec swayidle -w \ + timeout 300 'swaylock -f -i /usr/share/backgrounds/spaceport.jpg' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -i /usr/share/backgrounds/spaceport.jpg' + +# wlsunset +exec wlsunset -t 2500 -l {{ .coords.lat }} -L {{ .coords.lon }}