my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

remove sway

-239
-228
.config/sway/config
··· 1 - # Default config for sway 2 - 3 - # Copy this to ~/.config/sway/config and edit it to your liking. 4 - # 5 - # Read `man 5 sway` for a complete reference. 6 - 7 - ### Variables 8 - # 9 - # Logo key. Use Mod1 for Alt. 10 - set $mod Mod4 11 - # Home row direction keys, like vim 12 - set $left h 13 - set $down j 14 - set $up k 15 - set $right l 16 - # Your preferred terminal emulator 17 - set $term st 18 - # Your preferred application launcher 19 - # Note: it's recommended that you pass the final command to sway 20 - set $menu dmenu_path | dmenu | xargs swaymsg exec -- 21 - 22 - ### Output configuration 23 - # 24 - # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) 25 - output * bg /home/j3s/pix/lainbakka.jpg fill 26 - # 27 - 28 - # clamshell mode 29 - set $laptop eDP-1 30 - bindswitch --reload lid:on output $laptop disable 31 - bindswitch --reload lid:off output $laptop enable 32 - 33 - # You can get the names of your outputs by running: swaymsg -t get_outputs 34 - 35 - ### Idle configuration 36 - # exec swayidle -w \ 37 - # timeout 700 'swaylock -f -c 000000' \ 38 - # timeout 900 'swaymsg "output * dpms off"' \ 39 - # resume 'swaymsg "output * dpms on"' \ 40 - # before-sleep 'swaylock -f -c 000000' 41 - # This will lock your screen after 700 seconds of inactivity, then turn off 42 - # your displays after another 900 seconds, and turn your screens back on when 43 - # resumed. It will also lock your screen before your computer goes to sleep. 44 - 45 - ### Input configuration 46 - input "1133:49979:Logitech_K840_Mechanical_Corded_Keyboard" { 47 - xkb_layout us 48 - xkb_options ctrl:nocaps 49 - } 50 - 51 - input "1452:591:USB_Keychron_K2_USB_DEVICE" { 52 - xkb_layout us 53 - xkb_options ctrl:nocaps 54 - } 55 - 56 - input "1452:597:Keychron_K2" { 57 - xkb_layout us 58 - xkb_options ctrl:nocaps 59 - } 60 - 61 - input "1:1:AT_Translated_Set_2_keyboard" { 62 - xkb_layout us 63 - xkb_options ctrl:nocaps 64 - } 65 - 66 - input "1739:30383:CUST0001:00_06CB:76AF_Touchpad" { 67 - tap enabled 68 - tap_button_map lrm 69 - dwt disabled 70 - click_method clickfinger 71 - } 72 - # 73 - # You can get the names of your inputs by running: swaymsg -t get_inputs 74 - # Read `man 5 sway-input` for more information about this section. 75 - 76 - ### Key bindings 77 - # 78 - # Basics: 79 - # 80 - # firstly, enable floating for da float class 81 - for_window [class="floatme"] floating enable 82 - 83 - # multimedia 84 - bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 85 - bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 86 - 87 - # Start a terminal 88 - bindsym $mod+Return exec $term 89 - bindsym $mod+Shift+Return exec $term -c 'floatme' 90 - 91 - # Kill focused window 92 - bindsym $mod+Shift+q kill 93 - 94 - # Start your launcher 95 - bindsym $mod+d exec $menu 96 - 97 - # Drag floating windows by holding down $mod and left mouse button. 98 - # Resize them with right mouse button + $mod. 99 - # Despite the name, also works for non-floating windows. 100 - # Change normal to inverse to use left mouse button for resizing and right 101 - # mouse button for dragging. 102 - floating_modifier $mod normal 103 - 104 - # Reload the configuration file 105 - bindsym $mod+Shift+c reload 106 - 107 - # Exit sway (logs you out of your Wayland session) 108 - 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' 109 - # 110 - # Moving around: 111 - # 112 - # Move your focus around 113 - bindsym $mod+$left focus left 114 - bindsym $mod+$down focus down 115 - bindsym $mod+$up focus up 116 - bindsym $mod+$right focus right 117 - 118 - # Move the focused window with the same, but add Shift 119 - bindsym $mod+Shift+$left move left 120 - bindsym $mod+Shift+$down move down 121 - bindsym $mod+Shift+$up move up 122 - bindsym $mod+Shift+$right move right 123 - # Ditto, with arrow keys 124 - bindsym $mod+Shift+Left move left 125 - bindsym $mod+Shift+Down move down 126 - bindsym $mod+Shift+Up move up 127 - bindsym $mod+Shift+Right move right 128 - # 129 - # Workspaces: 130 - # 131 - # Switch to workspace 132 - bindsym $mod+1 workspace 1 133 - bindsym $mod+2 workspace 2 134 - bindsym $mod+3 workspace 3 135 - bindsym $mod+4 workspace 4 136 - bindsym $mod+5 workspace 5 137 - bindsym $mod+6 workspace 6 138 - bindsym $mod+7 workspace 7 139 - bindsym $mod+8 workspace 8 140 - bindsym $mod+9 workspace 9 141 - bindsym $mod+0 workspace 10 142 - # Move focused container to workspace 143 - bindsym $mod+Shift+1 move container to workspace 1 144 - bindsym $mod+Shift+2 move container to workspace 2 145 - bindsym $mod+Shift+3 move container to workspace 3 146 - bindsym $mod+Shift+4 move container to workspace 4 147 - bindsym $mod+Shift+5 move container to workspace 5 148 - bindsym $mod+Shift+6 move container to workspace 6 149 - bindsym $mod+Shift+7 move container to workspace 7 150 - bindsym $mod+Shift+8 move container to workspace 8 151 - bindsym $mod+Shift+9 move container to workspace 9 152 - bindsym $mod+Shift+0 move container to workspace 10 153 - # Note: workspaces can have any name you want, not just numbers. 154 - # We just use 1-10 as the default. 155 - # 156 - # Layout stuff: 157 - # 158 - # You can "split" the current object of your focus with 159 - # $mod+b or $mod+v, for horizontal and vertical splits 160 - # respectively. 161 - bindsym $mod+b splith 162 - bindsym $mod+v splitv 163 - 164 - # Switch the current container between different layout styles 165 - bindsym $mod+s layout stacking 166 - bindsym $mod+w layout tabbed 167 - bindsym $mod+e layout toggle split 168 - 169 - # Make the current focus fullscreen 170 - bindsym $mod+f fullscreen 171 - 172 - # Toggle the current focus between tiling and floating mode 173 - bindsym $mod+Shift+space floating toggle 174 - 175 - # Swap focus between the tiling area and the floating area 176 - bindsym $mod+space focus mode_toggle 177 - 178 - # Move focus to the parent container 179 - bindsym $mod+a focus parent 180 - # 181 - # Scratchpad: 182 - # 183 - # Sway has a "scratchpad", which is a bag of holding for windows. 184 - # You can send windows there and get them back later. 185 - 186 - # Move the currently focused window to the scratchpad 187 - bindsym $mod+Shift+minus move scratchpad 188 - 189 - # Show the next scratchpad window or hide the focused scratchpad window. 190 - # If there are multiple scratchpad windows, this command cycles through them. 191 - bindsym $mod+minus scratchpad show 192 - # 193 - # Resizing containers: 194 - # 195 - mode "resize" { 196 - bindsym $left resize shrink width 10px 197 - bindsym $down resize grow height 10px 198 - bindsym $up resize shrink height 10px 199 - bindsym $right resize grow width 10px 200 - 201 - bindsym Left resize shrink width 10px 202 - bindsym Down resize grow height 10px 203 - bindsym Up resize shrink height 10px 204 - bindsym Right resize grow width 10px 205 - 206 - # Return to default mode 207 - bindsym Return mode "default" 208 - bindsym Escape mode "default" 209 - } 210 - bindsym $mod+r mode "resize" 211 - 212 - # 213 - # Status Bar: 214 - # 215 - # Read `man 5 sway-bar` for more information about this section. 216 - bar { 217 - position top 218 - 219 - status_command while ~/.config/sway/status; do sleep 1; done 220 - 221 - colors { 222 - statusline #ffffff 223 - background #333333 224 - inactive_workspace #333333 #333333 #ffffff 225 - } 226 - } 227 - 228 - include /etc/sway/config.d/*
-11
.config/sway/status
··· 1 - #!/bin/sh 2 - 3 - date_formatted=$(date "+%a %F %H:%M") 4 - 5 - linux_version=$(uname -r | cut -d '-' -f1) 6 - 7 - battery_status=$(cat /sys/class/power_supply/BAT0/status) 8 - 9 - battery_perc=$(cat /sys/class/power_supply/BAT0/capacity) 10 - 11 - echo "$linux_version | $battery_perc% $battery_status | $date_formatted "