Remove old unneeded files

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-05-11 21:05:30 +02:00
parent 61012463fe
commit 1f2793c77e
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
22 changed files with 1 additions and 1747 deletions

View file

@ -1,14 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# .config/X11/nvidia-xinitrc
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is the startup script when you start the x-server using nvidia-xrun.
#
# USAGE:
# This script is executed when you start the x-server using nvidia-xrun.
. "${XDG_CONFIG_HOME}/X11/xinitrc"

View file

@ -1,33 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# .config/X11/xinitrc
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is the startup script when you start the x-server.
#
# USAGE:
# This script is executed when you start the x-server.
. "${XDG_CONFIG_HOME}/X11/xsetup"
# Load different i3 configuration depending on nvidia-xrun is used because
# the monitor names are different.
NVIDIA_CHECK="$(xrandr | grep "eDP-1-1 connected")"
if [ -z "${NVIDIA_CHECK}" ]; then
SCREEN_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.intel"
else
SCREEN_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.nvidia"
fi
# Load different i3 configuration depending on the hostname
HOST="$(hostname)"
HOST_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.${HOST}"
cat "${SCREEN_I3_CONFIG}" "${XDG_CONFIG_HOME}/i3/config.base" "${HOST_I3_CONFIG}" > "${XDG_CONFIG_HOME}/i3/config"
i3 > "${XDG_LOG_HOME}/i3.log" 2>&1
#export DESKTOP_SESSION=plasma
#exec startplasma-x11

View file

@ -1 +0,0 @@
Sxiv.background: #000000

View file

@ -1,35 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# .config/X11/xsetup
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This file setups things that should by started by the x-server like the
# ibus-daemon and the keyboard layout.
#
# USAGE:
# This script is sourced by both .xinitrc and .xprofile
# Disable DPMS and prevent screen from blanking
xset s off -dpms
# Set keyboard layout
setxkbmap -model pc105 -layout ch
# Start applications
nm-applet &
#redshift-gtk &
sxhkd &
nextcloud &
dunst &
#ibus-daemon -drx
# Merge .Xresources on boot
wal --theme tempus_future
xrdb -merge "${XDG_CONFIG_HOME}/X11/xresources"
xrdb -merge "${XDG_CACHE_HOME}/wal/colors.Xresources"
dbus-update-activation-environment --systemd DISPLAY
export SSH_AUTH_SOCK

View file

@ -1,534 +0,0 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
#TERM: xterm-256color
window:
# Allow terminal applications to change Alacritty's window title.
dynamic_title: true
# Window dimensions (changes require restart)
#
# Specified in number of columns/lines, not pixels.
# If both are `0`, this setting is ignored.
dimensions:
columns: 0
lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides.
padding:
x: 2
y: 2
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
# Window decorations
#
# Values for `decorations`:
# - full: Borders and title bar
# - none: Neither borders nor title bar
#
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background, but no title bar buttons
decorations: none
scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
history: 10000
# Number of lines the viewport will move for every line scrolled when
# scrollback is enabled (history > 0).
multiplier: 3
# Font configuration (changes require restart)
font:
# Normal (roman) font face
normal:
family: "JetBrainsMono Nerd Font"
size: 8
# Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
offset:
x: 0
y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the right,
# increasing `y` moves the glyph upwards.
glyph_offset:
x: 0
y: 0
# Thin stroke font rendering (macOS only)
#
# Thin strokes are suitable for retina displays, but for non-retina screens
# it is recommended to set `use_thin_strokes` to `false`
#
# macOS >= 10.14.x:
#
# If the font quality on non-retina display looks bad then set
# `use_thin_strokes` to `true` and enable font smoothing by running the
# following command:
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
#
# This is a global setting and will require a log out or restart to take
# effect.
use_thin_strokes: false
# If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true
# Colors (Tomorrow Night Bright)
colors:
# Default colors
primary:
background: '0x080808'
foreground: '0xa1b0b8'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not present.
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
# is `false`, the normal foreground color will be used.
#dim_foreground: '0x9a9a9a'
#bright_foreground: '0xffffff'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor. If these are unset,
# the cursor color will be the inverse of the cell color.
#cursor:
# text: '0x000000'
# cursor: '0xffffff'
# Selection colors
#
# Colors which should be used to draw the selection area. If selection
# background is unset, selection color will be the inverse of the cell colors.
# If only text is unset the cell text color will remain the same.
#selection:
# text: '0xeaeaea'
# background: '0x404040'
# Normal colors
normal:
black: '0x252525'
red: '0xff5252'
green: '0xc3d82c'
yellow: '0xffd740'
blue: '0x40c4ff'
magenta: '0xff4081'
cyan: '0x70c0ba'
white: '0xeaeaea'
# Bright colors
bright:
black: '0x252525'
red: '0xff5252'
green: '0xc3d82c'
yellow: '0xffd740'
blue: '0x40c4ff'
magenta: '0xff4081'
cyan: '0x54ced6'
white: '0xffffff'
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
#dim:
# black: '0x000000'
# red: '0x8c3336'
# green: '0x7a8530'
# yellow: '0x97822e'
# blue: '0x506d8f'
# magenta: '0x80638e'
# cyan: '0x497e7a'
# white: '0x9a9a9a'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '0xff00ff' }`
#
indexed_colors: []
# Visual Bell
#
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
# rung, the terminal background will be set to white and transition back to the
# default background color. You can control the rate of this transition by
# setting the `duration` property (represented in milliseconds). You can also
# configure the transition function by setting the `animation` property.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
#
# Specifying a `duration` of `0` will disable the visual bell.
bell:
animation: EaseOutExpo
duration: 0
color: '0xffffff'
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.67
# Mouse bindings
#
# Available fields:
# - mouse
# - action
# - mods (optional)
#
# Values for `mouse`:
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# All available `mods` and `action` values are documented in the key binding
# section.
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
double_click: { threshold: 300 }
triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
hide_when_typing: false
url:
# URL launcher
#
# This program is executed when clicking on a text which is recognized as a URL.
# The URL is always added to the command as the last parameter.
#
# When set to `None`, URL launching will be disabled completely.
#
# Default:
# - (macOS) open
# - (Linux) xdg-open
# - (Windows) explorer
#launcher:
# program: xdg-open
# args: []
# URL modifiers
#
# These are the modifiers that need to be held down for opening URLs when clicking
# on them. The available modifiers are documented in the key binding section.
modifiers: None
selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
# When set to `true`, selected text will be copied to the primary clipboard.
save_to_clipboard: false
cursor:
# Cursor style
#
# Values for `style`:
# - ▇ Block
# - _ Underline
# - | Beam
style: Beam
# If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused.
unfocused_hollow: true
# Live config reload (changes require restart)
live_config_reload: true
# Shell
#
# You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
# Entries in `shell.args` are passed unmodified as arguments to the shell.
#
# Default:
# - (Linux/macOS) /bin/bash --login
# - (Windows) powershell
#shell:
# program: /bin/bash
# args:
# - --login
# Windows 10 ConPTY backend (Windows only)
#
# This will enable better color support and may resolve other issues,
# however this API and its implementation is still young and so is
# disabled by default, as stability may not be as good as the winpty
# backend.
#
# Alacritty will fall back to the WinPTY automatically if the ConPTY
# backend cannot be initialized.
enable_experimental_conpty_backend: false
# Send ESC (\x1b) before characters when alt is pressed.
alt_send_esc: true
# Key bindings
#
# Key bindings are specified as a list of objects. Each binding will specify a
# key and modifiers required to trigger it, terminal modes where the binding is
# applicable, and what should be done when the key binding fires. It can either
# send a byte sequence to the running application (`chars`), execute a
# predefined action (`action`) or fork and execute a specified command plus
# arguments (`command`).
#
# Bindings are always filled by default, but will be replaced when a new binding
# with the same triggers is defined. To unset a default binding, it can be
# mapped to the `None` action.
#
# Example:
# `- { key: V, mods: Control|Shift, action: Paste }`
#
# Available fields:
# - key
# - mods (optional)
# - chars | action | command (exactly one required)
# - mode (optional)
#
# Values for `key`:
# - `A` -> `Z`
# - `F1` -> `F12`
# - `Key1` -> `Key0`
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
#
# Instead of using the name of the keys, the `key` field also supports using
# the scancode of the desired key. Scancodes have to be specified as a
# decimal number.
# This command will allow you to display the hex scancodes for certain keys:
# `showkey --scancodes`
#
# Values for `mods`:
# - Command
# - Control
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
# Whitespace and capitalization is relevant and must match the example.
#
# Values for `chars`:
# The `chars` field writes the specified string to the terminal. This makes
# it possible to pass escape sequences.
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
# the command `showkey -a` outside of tmux.
# Note that applications use terminfo to map escape sequences back to
# keys. It is therefore required to update the terminfo when
# changing an escape sequence.
#
# Values for `action`:
# - Paste
# - PasteSelection
# - Copy
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# - Hide
# - Quit
# - ClearLogNotice
# - SpawnNewInstance
# - None
#
# Values for `command`:
# The `command` field must be a map containing a `program` string and
# an `args` array of command line parameter strings.
#
# Example:
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
#
# Values for `mode`:
# - ~AppCursor
# - AppCursor
# - ~AppKeypad
# - AppKeypad
key_bindings:
- { key: Period, mods: Control, action: IncreaseFontSize }
# (Windows/Linux only)
#- { key: V, mods: Control|Shift, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy }
#- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Add, mods: Control, action: IncreaseFontSize }
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
# (macOS only)
#- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: Add, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: K, mods: Command, action: ClearHistory }
#- { key: K, mods: Command, chars: "\x0c" }
#- { key: V, mods: Command, action: Paste }
#- { key: C, mods: Command, action: Copy }
#- { key: H, mods: Command, action: Hide }
#- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit }
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, chars: "\x0c" }
- { key: Home, mods: Alt, chars: "\x1b[1;3H" }
- { key: Home, chars: "\x1bOH", mode: AppCursor }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
- { key: End, mods: Alt, chars: "\x1b[1;3F" }
- { key: End, chars: "\x1bOF", mode: AppCursor }
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
- { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
- { key: PageUp, chars: "\x1b[5~" }
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
- { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
- { key: PageDown, chars: "\x1b[6~" }
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
- { key: Back, chars: "\x7f" }
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
- { key: Insert, chars: "\x1b[2~" }
- { key: Delete, chars: "\x1b[3~" }
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
- { key: Left, chars: "\x1bOD", mode: AppCursor }
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
- { key: Right, chars: "\x1bOC", mode: AppCursor }
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
- { key: Up, chars: "\x1bOA", mode: AppCursor }
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
- { key: Down, chars: "\x1bOB", mode: AppCursor }
- { key: F1, chars: "\x1bOP" }
- { key: F2, chars: "\x1bOQ" }
- { key: F3, chars: "\x1bOR" }
- { key: F4, chars: "\x1bOS" }
- { key: F5, chars: "\x1b[15~" }
- { key: F6, chars: "\x1b[17~" }
- { key: F7, chars: "\x1b[18~" }
- { key: F8, chars: "\x1b[19~" }
- { key: F9, chars: "\x1b[20~" }
- { key: F10, chars: "\x1b[21~" }
- { key: F11, chars: "\x1b[23~" }
- { key: F12, chars: "\x1b[24~" }
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
- { key: NumpadEnter, chars: "\n" }

View file

@ -6,4 +6,3 @@ file:///home/severin/music Music
file:///home/severin/pictures Pictures
file:///home/severin/videos Videos
file:///home/severin/data Data
file:///home/severin/games/guild-wars-2/drive_c/users/severin/My%20Documents/GUILD%20WARS%202/Screens Screens

View file

@ -1,196 +0,0 @@
# SCRIPT NAME:
# .config/i3/config.base
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This file contains my i3 configuration.
#
# USAGE:
# This file is automatically merged together with the local i3 configuration
# on start.
# Disable window titlebars and borders
for_window [class="^.*"] border pixel 0
# Make dropdown terminal always float
for_window [class="dropdown-terminal"] floating enable
# Gaps
gaps top 45
gaps bottom 45
gaps inner 10
new_window none
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Noto Sans, Font Awesome 5 Free 15px
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
###############################################################################
# Modifiers #
###############################################################################
set $mod Mod4
set $alt Mod1
###############################################################################
# Workspaces #
###############################################################################
# Define workspaces
set $workspace1 "1: "
set $workspace2 "2: "
set $workspace3 "3: "
set $workspace4 "4: "
set $workspace5 "5: "
set $workspace6 "6: "
set $workspace7 "7: "
set $workspace8 "8: "
set $workspace9 "9: "
set $workspace10 "10: "
# Assign workspaces to outputs
workspace $workspace1 output $output1
workspace $workspace2 output $output2
workspace $workspace3 output $output2
workspace $workspace4 output $output2
workspace $workspace5 output $output1
workspace $workspace6 output $output1
workspace $workspace7 output $output2
workspace $workspace8 output $output1
workspace $workspace9 output $output2
workspace $workspace10 output $output2
# Assign applications to workspaces
assign [class="Google-chrome-beta"] $workspace1
assign [class="Chromium"] $workspace1
assign [class="firefox"] $workspace1
assign [class="code-oss"] $workspace3
assign [class="jetbrains-phpstorm"] $workspace3
assign [class="Nemo"] $workspace4
assign [class="Thunar"] $workspace4
assign [class="discord"] $workspace5
assign [class="Element"] $workspace5
assign [class="Riot"] $workspace5
assign [class="Slack"] $workspace5
assign [class="Rambox"] $workspace5
assign [class="Hamsket"] $workspace5
assign [class="Ferdi"] $workspace5
assign [class="Steam"] $workspace6
assign [class="Lutris"] $workspace6
assign [class="minecraft-launcher"] $workspace6
assign [class="Notable"] $workspace7
assign [class="Joplin"] $workspace7
assign [class="KeePassXC"] $workspace8
assign [class="vlc"] $workspace9
assign [class="mpv"] $workspace9
assign [instance="cmus"] $workspace10
###############################################################################
# Keybindings #
###############################################################################
# Kill focused window
bindsym $mod+Shift+q kill
# Change focus
bindsym $mod+Left focus left
bindsym $mod+H focus left
bindsym $mod+Down focus down
bindsym $mod+J focus down
bindsym $mod+Up focus up
bindsym $mod+K focus up
bindsym $mod+Right focus right
bindsym $mod+L focus right
# Move focused window
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+H move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+J move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+K move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+L move right
# Moving workspaces to other displays
bindsym $mod+$alt+Left move workspace to output left
bindsym $mod+$alt+H move workspace to output left
bindsym $mod+$alt+Right move workspace to output right
bindsym $mod+$alt+L move workspace to output right
# Toggle split orientation
bindsym $mod+T split toggle
# Fullscreen toggle
bindsym $mod+F11 fullscreen toggle
# Toggle between floating / tilling mode
bindsym $mod+S floating toggle
# Workspace switching
bindsym $mod+1 workspace $workspace1
bindsym $mod+KP_1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+KP_2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+KP_3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+KP_4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+KP_5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+KP_6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+KP_7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+KP_8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+KP_9 workspace $workspace9
bindsym $mod+0 workspace $workspace10
bindsym $mod+KP_0 workspace $workspace10
# Moving container to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+KP_1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+KP_2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+KP_3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+KP_4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+KP_5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+KP_6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+KP_7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+KP_8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+KP_9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10
bindsym $mod+Shift+KP_0 move container to workspace $workspace10
# Restart i3
bindsym $mod+Shift+r restart
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+x mode "resize"

View file

@ -1,5 +0,0 @@
###############################################################################
# Outputs #
###############################################################################
set $output1 HDMI1
set $output2 eDP1

View file

@ -1,5 +0,0 @@
###############################################################################
# Outputs #
###############################################################################
set $output1 HDMI-1-1
set $output2 eDP-1-1

View file

@ -1,21 +0,0 @@
###############################################################################
# Layouts #
###############################################################################
exec --no-startup-id "i3-msg 'workspace 2: ; exec kitty'"
exec --no-startup-id "i3-msg 'workspace 1: '"
###############################################################################
# Startup applications #
###############################################################################
# Setup monitor
exec_always --no-startup-id monitor-setup
exec_always --no-startup-id picom -b --experimental-backends
# Other applications
exec firefox
exec discord
exec joplin-desktop
exec thunar
exec thunar
exec keepassxc

View file

@ -1,39 +0,0 @@
# SCRIPT NAME:
# .config/compton/compton.conf
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This is my compton configuration.
#
# USAGE:
# This file is automatically used by compton.
# Settings opacity rules
opacity-rule = [];
# Shadows
shadow = false;
shadow-exclude = [
"name != 'dropdown-terminal'",
];
blur:
{
method = "dual_kawase";
strength = 5;
background = false;
background-frame = false;
background-fixed = false;
};
corner-radius = 0;
# Performance improvements
unredir-if-possible = true;
backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
vsync = true;
xrender-sync-fence = true;

View file

@ -1,301 +0,0 @@
# SCRIPT NAME:
# .config/polybar/config
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This file contains my Polybar configuration
#
# USAGE:
# This file is automatically used by Polybar.
#######################################
# Variables
#######################################
[settings]
padding = 2
# 60% alpha
background-color = ${xrdb:color0:#222}
foreground-color = ${xrdb:color7:#222}
bar-height = 35
#background = ${xrdb:color0:#222}
#foreground = ${xrdb:color7:#222}
#foreground-alt = ${xrdb:color7:#222}
#primary = ${xrdb:color1:#222}
#secondary = ${xrdb:color2:#222}
#alert = ${xrdb:color3:#222}
#######################################
# Top bar
#######################################
[bar/top]
monitor = ${env:POLYBAR_MONITOR}
width = 100%:-20
height = ${settings.bar-height}
offset-x = 10
offset-y = 10
override-redirect = true
wm-restack = i3
font-0 = Iosevka:pixelsize=12;3
font-1 = Noto Sans CJK JP:pixelsize=12;3
font-2 = Font Awesome 5 Free:style=Solid::pixelsize=12;3
font-3 = Font Awesome 5 Brands:pixelsize=12;3
font-4 = siji:pixelsize=12;3
background = ${settings.background-color}
foreground = ${settings.foreground-color}
padding-right = 2
module-margin = 1
modules-left = i3 i3info
modules-center =
modules-right = update battery battery2 volume backlight vpn wlan ethernet date power
tray-position = none
separator = |
scroll-up = i3wm-desknext
scroll-down = i3wm-deskprev
#######################################
# Bottom bar
#######################################
[bar/bottom]
inherit = bar/top
bottom = true
modules-left =
modules-center =
modules-right = memory
tray-position = left
#######################################
# i3 workspaces
#######################################
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = false
format = <label-state>
label-focused = %name%
label-focused-foreground = ${settings.background-color}
label-focused-background = ${settings.foreground-color}
label-focused-padding = ${settings.padding}
label-unfocused = %name%
label-unfocused-padding = ${settings.padding}
label-visible = %name%
label-visible-padding = ${settings.padding}
label-urgent = %name%
label-urgent-foreground = ${settings.foreground-color}
label-urgent-background = ${settings.background-color}
label-urgent-padding = ${settings.padding}
###############################################################################
# RSS count #
###############################################################################
[module/rss]
type = custom/script
exec = newsboat -x print-unread | cut -d " " -f1
format = <label>
label =  %output%
interval = 60
###############################################################################
# Update count #
###############################################################################
[module/update]
type = custom/script
exec = ${XDG_CONFIG_HOME}/polybar/scripts/update-count
format = <label>
label =  %output%
interval = 60
click-left = xdg-open "https://www.archlinux.org/"
###############################################################################
# i3 info #
###############################################################################
[module/i3info]
type = custom/script
exec = ${XDG_CONFIG_HOME}/polybar/scripts/i3info.py
format = <label>
label = %output%
interval = 1
###############################################################################
# Battery indicator #
###############################################################################
[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = AC
time-format = %H:%M
label-full =  %percentage%%
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%% %time%
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%% %time%
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${settings.foreground-color}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate = 500
interval = 5
poll-interval = 5
[module/battery2]
battery = BAT1
inherit = module/battery
##############################################################################
# Volume indicator #
##############################################################################
[module/volume]
type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = true
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
format-muted =  <label-muted>
label-muted = %percentage%%
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
interval = 5
##############################################################################
# Brightness indicator #
##############################################################################
[module/backlight]
type = custom/script
exec = light -G | cut -d. -f1
format =  <label>
label = %output%%
interval = 0.1
scroll-up = light -A 5
scroll-down = light -U 5
##############################################################################
# VPN indicator #
##############################################################################
[module/vpn]
type = custom/script
exec = nmcli connection show --active | grep "vpn" | cut -d " " -f 1
format =  <label>
label = %output%
interval = 0.1
##############################################################################
# WiFi indicator #
##############################################################################
[module/wlan]
type = internal/network
interface = ${env:POLYBAR_WLAN}
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
format-disconnected = <label-disconnected>
label-disconnected =  Disconnected
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${settings.foreground-color}
interval = 1
##############################################################################
# Network indicator #
##############################################################################
[module/ethernet]
type = internal/network
interface = ${env:POLYBAR_NETWORK}
format-connected =  <label-connected>
label-connected = Connected
format-disconnected =  <label-disconnected>
label-disconnected = Disconnected
interval = 1
##############################################################################
# Time and date #
##############################################################################
[module/date]
type = custom/script
exec = date +"%F %H:%M:%S"
format =  <label>
label = %output%
interval = 1
click-left = xdg-open "https://calendar.google.com"
##############################################################################
# Power menu #
##############################################################################
[module/power]
type = custom/text
content = 
click-left = $XDG_BIN_HOME/power
[module/memory]
type = internal/memory
; Seconds to sleep between updates
; Default: 1

View file

@ -1,17 +0,0 @@
#!/usr/bin/env python3
import i3ipc
i3 = i3ipc.Connection()
splitv_text = '[ V ]'
splith_text = '[ H ]'
split_none = ''
parent = i3.get_tree().find_focused().parent
# if parent.layout == 'splitv':
# print(splitv_text)
# elif parent.layout == 'splith':
# print(splith_text)
# else:
# print(split_none)
print("")

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
#
# SCRIPT NAME:
# update-count
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Returns the outstanding system updates.
#
# USAGE:
# ./update-count
UPDATES=$(checkupdates | wc -l)
AUR_UPDATES=$(paru -Qua --devel 2>&1 | wc -l)
# Need to increase this value by one, as wc -l counts only newlines...
AUR_UPDATES=$((AUR_UPDATES + 1))
echo "${UPDATES} / ${AUR_UPDATES}"

View file

@ -1,89 +0,0 @@
###############################################################################
# Menus #
###############################################################################
# Open run menu
super + r
rofi -show run -lines 5 -display-run Run
# Open power menu
super + F4
power
# Open screenshot menu
Print
screenshot
# Open game menu
super + g
games
###############################################################################
# Applications #
###############################################################################
# Open terminal emulator
super + Return
kitty
# Open file browser
super + e
thunar
###############################################################################
# Volume #
###############################################################################
# Mute
{XF86AudioMute, super + m}
pamixer -t
# Increase volume
{XF86AudioRaiseVolume, super + KP_Add}
increase-volume
# Decrease volume
{XF86AudioLowerVolume, super + KP_Subtract}
pamixer -d 5 --allow-boost
###############################################################################
# Media #
###############################################################################
XF86AudioStop
mpc stop
{XF86AudioPlay, super + KP_Enter, super + control + Return}
mpc toggle
{XF86AudioNext, super + control + Right}
mpc next
{XF86AudioPrev, super + control + Left}
mpc prev
###############################################################################
# Brightness #
###############################################################################
{XF86MonBrightnessUp, XF86MonBrightnessDown}
light -{A,U} 5
###############################################################################
# Screenlock #
###############################################################################
XF86Sleep
screenlock
###############################################################################
# tdrop #
###############################################################################
super + c
tdrop -ma -w 80% -x 10% -y 55 kitty --class="dropdown-terminal"
###############################################################################
# SXHKD #
###############################################################################
super + control + Escape
pkill -USR1 -x sxhkd

View file

@ -42,15 +42,6 @@ zstyle ':completion:*' menu select
# Persistent rehash
zstyle ':completion:*' rehash true
# Use colors from xresources for linux console
if [ "$TERM" = "linux" ]; then
_SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
while IFS= read -r line; do
echo -en "${line}"
done < <(sed -n "${_SEDCMD}" "${XDG_CONFIG_HOME}/X11/xresources" | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}')
clear
fi
# Sourcing environment variables
if [ -f "${HOME}/.config/custom/env" ]; then
. "${HOME}/.config/custom/env"
@ -68,4 +59,4 @@ fi
# Plugins
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"