This commit is contained in:
2020-07-25 02:56:35 +02:00
parent 4b09eb1f78
commit 282e697ad8
5 changed files with 32 additions and 165 deletions

View File

@ -20,7 +20,7 @@ window:
scrolling:
history: 10000
multiplier: 2
multiplier: 3
# Font configuration
font:
@ -76,170 +76,26 @@ colors:
cyan: "#9F8D5E"
white: "#dbcdac"
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
# `Shift` modifier is automatically added as a requirement.
#
# Each mouse binding will specify a:
#
# - `mouse`:
#
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# - `action` (see key bindings)
#
# And optionally:
#
# - `mods` (see key bindings)
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
- { mouse: Middle, mods: Shift, action: PasteSelection }
- { mouse: Right, mods: Shift, action: Paste }
- { mouse: Middle, action: None }
- { mouse: Right, action: None }
#ToggleBlockSelection }
#- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSele
# - A-Z
# - F1-F24
# - Key0-Key9
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/event/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`.
#
# Then exactly one of:
#
# - `chars`: Send a byte sequence to the running application
#
# 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.
#
# - `action`: Execute a predefined action
#
# - ToggleViMode
# - Copy
# - Paste
# - PasteSelection
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# - Hide
# - Minimize
# - Quit
# - ToggleFullscreen
# - SpawnNewInstance
# - ClearLogNotice
# - ClearSelection
# - ReceiveChar
# - None
#
# (`mode: Vi` only):
# - Open
# - Up
# - Down
# - Left
# - Right
# - First
# - Last
# - FirstOccupied
# - High
# - Middle
# - Low
# - SemanticLeft
# - SemanticRight
# - SemanticLeftEnd
# - SemanticRightEnd
# - WordRight
# - WordLeft
# - WordRightEnd
# - WordLeftEnd
# - Bracket
# - ToggleNormalSelection
# - ToggleLineSelection
# - ToggleBlockSelection
# - ToggleSemanticSelection
#
# (macOS only):
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
#
# (Linux/BSD only):
# - CopySelection: Copies into selection buffer
#
# - `command`: Fork and execute a specified command plus arguments
#
# The `command` field must be a map containing a `program` string and an
# `args` array of command line parameter strings. For example:
# `{ program: "alacritty", args: ["-e", "vttest"] }`
#
# And optionally:
#
# - `mods`: Key modifiers to filter binding actions
#
# - Command
# - Control
# - Option
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this:
# `mods: Control|Shift`.
# Whitespace and capitalization are relevant and must match the example.
#
# - `mode`: Indicate a binding for only specific terminal reported modes
#
# This is mainly used to send applications the correct escape sequences
# when in different modes.
#
# - AppCursor
# - AppKeypad
# - Alt
#
# A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`.
#
# 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 `ReceiveChar` action. Alternatively, you can use `None` for
# a no-op if you do not wish to receive input characters for that binding.
#
# If the same trigger is assigned to multiple actions, all of them are executed
# at once.
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }
- { key: V, mods: Alt, action: Paste}
- { key: J, mods: Alt, action: IncreaseFontSize }
- { key: K, mods: Alt, action: DecreaseFontSize }
- { key: J, mods: Shift, action: ScrollLineUp}
- { key: K, mods: Shift, action: ScrollLineDown}
# - { key: J, mods: Shift, action: ScrollLineUp}
# - { key: K, mods: Shift, action: ScrollLineDown}
# { mouse: Middle, action: PasteSelection }
#- { key: Paste, action: Paste }
#- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
- { key: PageUp, mods: Shift, action: ScrollPageUp, }
- { key: PageDown, mods: Shift, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }

View File

@ -169,12 +169,7 @@ bindsym $mod+r mode "resize"
# startup
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Attach workspaces to displays
exec --no-startup-id i3-msg "workspace 1, move workspace to output eDP1"
exec --no-startup-id i3-msg "workspace 2, move workspace to output eDP1"
exec --no-startup-id i3-msg "workspace 3, move workspace to output HDMI"
exec --no-startup-id i3-msg 'exec $TERMINAL; workspace 2; exec firefox;'
exec --no-startup-id i3-msg 'workspace 1; exec $TERMINAL; workspace 2; exec firefox;'
exec --no-startup-id feh --bg-scale ~/Wallpapers/seneca.jpg
exec --no-startup-id ~/bin/autoconfgure_display.sh
exec --no-startup-id picom --config ~/.config/i3/picom.conf -b

View File

@ -103,7 +103,7 @@ font-3 - RobotoMono Nerd Font:antialias=true:size=18;0
; modules-center = s4 filesystem s5
; modules-right = s4 powermenu s1 pulseaudio s3
modules-left = battery wlan weather arch
modules-left = battery wlan weather
modules-center = mpd
modules-right =
@ -559,11 +559,11 @@ exec = ~/.config/polybar/polybar-weather/openweathermap-detailed.sh
format-background = ${colors.primary}
format-prefix-foreground = ${colors.background}
[module/arch]
type = custom/script
exec = ~/.config/polybar/polybar-network-update/updates-arch-combined.sh
format-background = ${colors.primary}
format-prefix-foreground = ${colors.background}
#[module/arch]
#type = custom/script
#exec = ~/.config/polybar/polybar-network-update/updates-arch-combined.sh
#format-background = ${colors.primary}
#format-prefix-foreground = ${colors.background}
[module/syngeos]
type = custom/script

View File

@ -0,0 +1,7 @@
#!/bin/bash
most_urgent_desc=`task rc.verbose: rc.report.next.columns:description rc.report.next.labels:1 limit:1 next`
most_urgent_id=`task rc.verbose: rc.report.next.columns:id rc.report.next.labels:1 limit:1 next`
most_urgent_due=`task rc.verbose: rc.report.next.columns:due.relative rc.report.next.labels:1 limit:1 next`
echo "$most_urgent_id" > /tmp/tw_polybar_id
echo "$most_urgent_desc ·  $most_urgent_due"