diff options
| -rw-r--r-- | .config/i3status-rust/grandmaster4000.toml | 88 | ||||
| -rw-r--r-- | .config/i3status-rust/speedwagon.toml | 91 | ||||
| -rw-r--r-- | .config/sway/config | 216 | ||||
| -rw-r--r-- | .config/sway/grandmaster4000.conf | 19 | ||||
| -rw-r--r-- | .config/sway/speedwagon.conf | 15 |
5 files changed, 429 insertions, 0 deletions
diff --git a/.config/i3status-rust/grandmaster4000.toml b/.config/i3status-rust/grandmaster4000.toml new file mode 100644 index 0000000..a45f7ab --- /dev/null +++ b/.config/i3status-rust/grandmaster4000.toml @@ -0,0 +1,88 @@ +[theme] +theme = "slick" +[theme.overrides] +separator = "<span font='12'></span>" +# Example: redefine `idle` colors +idle_bg = "#24283b" +idle_fg = "#c0caf5" +alternating_tint_bg = "#101010" +# Example: swap `good` and `warning` colors +#good_fg = +good_bg = "#9ece6a" +#warning_fg = +warning_bg = "#e0af68" +#critical_fg = +critical_bg = "#f7768e" +info_bg = "#7aa2f7" + +[icons] +icons = "awesome4" + +[[block]] +block = "weather" +format = "$icon $weather $temp" +service = { name = "openweathermap", api_key = "70dbf8d9e3e8874f931cec5b17dc165c", city_id = "3088171", units = "metric" } +interval = 600 + +[[block]] +block = "sound" + +[[block]] +block = "pacman" +interval = 10 + +[[block]] +block = "disk_space" +path = "/" +info_type = "available" +alert_unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 +format = " $icon / $available.eng(w:2) " + +[[block]] +block = "disk_space" +path = "/home" +info_type = "available" +alert_unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 +format = " $icon /home $available.eng(w:2) " + +[[block]] +block = "net" +device = "enp14s0" +format = "$icon $ip $speed_down $speed_up" +interval = 5 + +[[block]] +block = "memory" + +[[block]] +block = "cpu" +interval = 1 + +[[block]] +block = "amd_gpu" +interval = 1 + + +[[block]] +block = "temperature" +interval = 10 +format = "$average" + +[[block]] +block = "load" +interval = 1 +format = "$icon $1m" + +[[block]] +block = "uptime" + +[[block]] +block = "time" +interval = 1 +format = " $timestamp.datetime(f:'%a %d/%m %R') " diff --git a/.config/i3status-rust/speedwagon.toml b/.config/i3status-rust/speedwagon.toml new file mode 100644 index 0000000..1a244ef --- /dev/null +++ b/.config/i3status-rust/speedwagon.toml @@ -0,0 +1,91 @@ +[theme] +theme = "slick" +[theme.overrides] +separator = "<span font='12'></span>" +# Example: redefine `idle` colors +idle_bg = "#24283b" +idle_fg = "#c0caf5" +alternating_tint_bg = "#101010" +# Example: swap `good` and `warning` colors +#good_fg = +good_bg = "#9ece6a" +#warning_fg = +warning_bg = "#e0af68" +#critical_fg = +critical_bg = "#f7768e" +info_bg = "#7aa2f7" + +[icons] +icons = "awesome4" + +[[block]] +block = "weather" +format = "$icon $weather $temp" +service = { name = "openweathermap", api_key = "70dbf8d9e3e8874f931cec5b17dc165c", city_id = "3088171", units = "metric" } +interval = 600 + +[[block]] +block = "sound" + +[[block]] +block = "pacman" +interval = 10 + +[[block]] +block = "disk_space" +path = "/" +info_type = "available" +alert_unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 +format = " $icon / $available.eng(w:2) " + +[[block]] +block = "disk_space" +path = "/home" +info_type = "available" +alert_unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 +format = " $icon /home $available.eng(w:2) " + +[[block]] +block = "net" +device = "enp14s0" +format = "$icon $ip $speed_down $speed_up" +interval = 5 + +[[block]] +block = "memory" + +[[block]] +block = "cpu" +interval = 1 + +[[block]] +block = "amd_gpu" +interval = 1 + +[[block]] +block = "temperature" +interval = 10 +format = "$average" + +[[block]] +block = "load" +interval = 1 +format = "$icon $1m" + +[[block]] +block = "battery" +format = " $icon $percentage " + +[[block]] +block = "uptime" + +[[block]] +block = "time" +interval = 1 +format = " $timestamp.datetime(f:'%a %d/%m %R') " diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..af2d37a --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,216 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term foot +# Your preferred application launcher +# Note: pass the final command to swaymsg so that the resulting window can be opened +# on the original workspace that the command was run on. +set $menu j4-dmenu-desktop --dmenu "wmenu -i -f 'Iosevka Nerd Font 12' -N 24283b -n c0caf5 -M 24283b -m c0caf5 -S c0caf5 -s 24283b" | xargs swaymsg exec -- + +### Idle configuration + +exec swayidle -w \ + timeout 300 'swaylock -t -e -c 1f1f1f -i ~/.local/lock_2560_2head.png' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -t -e -c 1f1f1f -i ~/.local/lock_2560_2head.png' + +exec dunst +# +# 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. + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + input * { + xkb_layout "pl" +} + +### Key bindings +# +# Basics: +# + # Start a terminal + bindsym $mod+Return exec $term + + # 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. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # Reload the configuration file + bindsym $mod+Shift+r reload + + # 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' +# +# Moving around: +# + # Move your focus around + bindsym $mod+$left focus left + 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: +# + set $ws1 "1.www" + set $ws2 "2.dev" + set $ws3 "3.comm" + set $ws4 "4.cmd" + set $ws5 "5.doc" + set $ws6 "6.music" + set $ws7 "7" + set $ws8 "8" + set $ws9 "9" + set $ws10 "10" + + # Switch to workspace + bindsym $mod+1 workspace $ws1 + bindsym $mod+2 workspace $ws2 + bindsym $mod+3 workspace $ws3 + bindsym $mod+4 workspace $ws4 + bindsym $mod+5 workspace $ws5 + bindsym $mod+6 workspace $ws6 + bindsym $mod+7 workspace $ws7 + 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 + bindsym $mod+Shift+3 move container to workspace $ws3 + bindsym $mod+Shift+4 move container to workspace $ws4 + bindsym $mod+Shift+5 move container to workspace $ws5 + bindsym $mod+Shift+6 move container to workspace $ws6 + bindsym $mod+Shift+7 move container to workspace $ws7 + 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: +# + # You can "split" the current object of your focus with + # $mod+b or $mod+v, for horizontal and vertical splits + # respectively. + bindsym $mod+v splith + bindsym $mod+s splitv + + # Switch the current container between different layout styles + bindsym $mod+q layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # Move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show + +# Font + font pango:Iosevka Nerd Font 10 + +# Gaps + gaps inner 10 + +# +# 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 100px + bindsym $down resize grow height 100px + bindsym $up resize shrink height 100px + bindsym $right resize grow width 100px + + # Ditto, with arrow keys + bindsym Left resize shrink width 100px + bindsym Down resize grow height 100px + bindsym Up resize shrink height 100px + bindsym Right resize grow width 100px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +#client.<class> <border> <background> <text> <indicator> <child_border> +client.focused "#24283b" "#24283b" "#c0caf5" "#c0caf5" "#2c2c2c" +client.focused_inactive "#24283b" "#c0caf5" "#24283b" "#000000" "#999999" +client.unfocused "#23242a" "#c0caf5" "#24283b" "#000000" "#999999" + +bindsym $mod+Shift+s exec --no-startup-id swaylock -t -e -c 1f1f1f -i ~/.local/lock_2560_2head.png + +include ~/.config/sway/`hostname`.conf diff --git a/.config/sway/grandmaster4000.conf b/.config/sway/grandmaster4000.conf new file mode 100644 index 0000000..d9d6ff9 --- /dev/null +++ b/.config/sway/grandmaster4000.conf @@ -0,0 +1,19 @@ +output DP-3 resolution 2560x1440 position 0,593 +output DP-2 resolution 2560x1440 position 2560,593 +output HDMI-A-1 resolution 2560x1440 position 5120,0 transform 90 + +bar { + status_command i3status-rs ~/.config/i3status-rust/grandmaster4000.toml + font pango:Iosevka Nerd Font 10 + position top + colors { + background #24283b + + focused_workspace #24283b #c0caf5 #24283b + active_workspace #24283b #24283b #c0caf5 + inactive_workspace #24283b #24283b #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff + } +} + diff --git a/.config/sway/speedwagon.conf b/.config/sway/speedwagon.conf new file mode 100644 index 0000000..490eab6 --- /dev/null +++ b/.config/sway/speedwagon.conf @@ -0,0 +1,15 @@ +bar { + status_command i3status-rs ~/.config/i3status-rust/speedwagon.toml + font pango:Iosevka Nerd Font 10 + position top + colors { + background #24283b + + focused_workspace #24283b #c0caf5 #24283b + active_workspace #24283b #24283b #c0caf5 + inactive_workspace #24283b #24283b #888888 + urgent_workspace #2f343a #900000 #ffffff + binding_mode #2f343a #900000 #ffffff + } +} + |
