add all dotfiles
85
.Xresources
Normal file
|
@ -0,0 +1,85 @@
|
|||
!#include "/home/horhik/.xterm/themes/base16-dracula-256.Xresources"
|
||||
|
||||
! Base16 Dracula
|
||||
! Scheme: Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula)
|
||||
|
||||
#define base00 #282936
|
||||
#define base01 #3a3c4e
|
||||
#define base02 #4d4f68
|
||||
#define base03 #626483
|
||||
#define base04 #62d6e8
|
||||
#define base05 #e9e9f4
|
||||
#define base06 #f1f2f8
|
||||
#define base07 #f7f7fb
|
||||
#define base08 #ea51b2
|
||||
#define base09 #b45bcf
|
||||
#define base0A #00f769
|
||||
#define base0B #ebff87
|
||||
#define base0C #a1efe4
|
||||
#define base0D #62d6e8
|
||||
#define base0E #b45bcf
|
||||
#define base0F #00f769
|
||||
|
||||
|
||||
|
||||
*.foreground: base05
|
||||
#ifdef background_opacity
|
||||
*.background: [background_opacity]base00
|
||||
#else
|
||||
*.background: base00
|
||||
#endif
|
||||
*.cursorColor: base05
|
||||
|
||||
*.color0: base00
|
||||
*.color1: base08
|
||||
*.color2: base0B
|
||||
*.color3: base0A
|
||||
*.color4: base0D
|
||||
*.color5: base0E
|
||||
*.color6: base0C
|
||||
*.color7: base05
|
||||
|
||||
*.color8: base03
|
||||
*.color9: base08
|
||||
*.color10: base0B
|
||||
*.color11: base0A
|
||||
*.color12: base0D
|
||||
*.color13: base0E
|
||||
*.color14: base0C
|
||||
*.color15: base07
|
||||
|
||||
! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt),
|
||||
! use 'shell' template to set these if necessary
|
||||
*.color16: base09
|
||||
*.color17: base0F
|
||||
*.color18: base01
|
||||
*.color19: base02
|
||||
*.color20: base04
|
||||
*.color21: base06
|
||||
|
||||
|
||||
xterm*faceName: Mononoki
|
||||
xterm*faceSize: 14
|
||||
|
||||
!
|
||||
!Theme Nine
|
||||
!xterm*background: rgb:1a/1a/1a
|
||||
!xterm*foreground: rgb:d6/d6/d6
|
||||
!xterm*color0: rgb:00/00/00
|
||||
!xterm*color1: rgb:9e/18/28
|
||||
!xterm*color2: rgb:00/88/00
|
||||
!xterm*color3: rgb:96/8a/38
|
||||
!xterm*color4: rgb:41/41/71
|
||||
!xterm*color5: rgb:96/3c/59
|
||||
!xterm*color6: rgb:41/81/79
|
||||
!xterm*color7: rgb:be/be/be
|
||||
!xterm*color8: rgb:66/66/66
|
||||
!xterm*color9: rgb:cf/61/71
|
||||
!xterm*color10: rgb:7c/bc/8c
|
||||
!xterm*color11: rgb:ff/f7/96
|
||||
!xterm*color12: rgb:41/86/be
|
||||
!xterm*color13: rgb:cf/9e/be
|
||||
!xterm*color14: rgb:71/be/be
|
||||
!xterm*color15: rgb:ff/ff/ff
|
||||
!
|
||||
!xterm*cursorColor: #d6d6d6
|
14
.bashrc
Normal file
|
@ -0,0 +1,14 @@
|
|||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias vim=nvim
|
||||
alias notify-send=twmnc
|
||||
export TERMINAL=alacritty
|
||||
set TERMINAL alacritty
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
167
.config/cava/config
Normal file
|
@ -0,0 +1,167 @@
|
|||
## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting.
|
||||
|
||||
|
||||
[general]
|
||||
|
||||
# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0
|
||||
mode = waves
|
||||
|
||||
# Accepts only non-negative values.
|
||||
; framerate = 60
|
||||
|
||||
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
|
||||
# new as of 0.6.0 autosens of low values (dynamic range)
|
||||
# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0
|
||||
; autosens = 1
|
||||
; overshoot = 20
|
||||
|
||||
# Manual sensitivity in %. Autosens must be turned off for this to take effect.
|
||||
# 200 means double height. Accepts only non-negative values.
|
||||
; sensitivity = 100
|
||||
|
||||
# The number of bars (0-200). 0 sets it to auto (fill up console).
|
||||
# Bars' width and space between bars in number of characters.
|
||||
; bars = 0
|
||||
; bar_width = 2
|
||||
; bar_spacing = 1
|
||||
|
||||
|
||||
# Lower and higher cutoff frequencies for lowest and highest bars
|
||||
# the bandwidth of the visualizer.
|
||||
# Note: there is a minimum total bandwidth of 43Mhz x number of bars.
|
||||
# Cava will automatically increase the higher cutoff if a too low band is specified.
|
||||
; lower_cutoff_freq = 50
|
||||
; higher_cutoff_freq = 10000
|
||||
|
||||
# FFT buffer is set in the exponent of 2 and must be between 8 - 16, 8 = 256, 16 = 65536
|
||||
# this is the audio buffer used to create the spectrum
|
||||
# increasing the will improve the accuracy of the visualization,
|
||||
# but will also make it slower and increase CPU usage
|
||||
# anything below 10 and above 13 is considered experimental.
|
||||
; FFTbufferSize = 12;
|
||||
|
||||
|
||||
|
||||
[input]
|
||||
|
||||
# Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem'
|
||||
# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with.
|
||||
#
|
||||
# All input methods uses the same config variable 'source'
|
||||
# to define where it should get the audio.
|
||||
#
|
||||
# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
|
||||
# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
|
||||
#
|
||||
# For alsa 'source' will be the capture device.
|
||||
# For fifo 'source' will be the path to fifo-file.
|
||||
# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address
|
||||
; method = pulse
|
||||
; source = auto
|
||||
|
||||
; method = alsa
|
||||
; source = hw:Loopback,1
|
||||
|
||||
; method = fifo
|
||||
; source = /tmp/mpd.fifo
|
||||
; sample_rate = 44100
|
||||
; sample_bits = 16
|
||||
|
||||
; method = shmem
|
||||
; source = /squeezelite-AA:BB:CC:DD:EE:FF
|
||||
|
||||
; method = portaudio
|
||||
; source = auto
|
||||
|
||||
|
||||
[output]
|
||||
|
||||
# Output method. Can be 'ncurses', 'noncurses' or 'raw'.
|
||||
# 'noncurses' uses a custom framebuffer technique and draws only changes
|
||||
# from frame to frame. As of version 0.7.0 'noncurses' is default.
|
||||
#
|
||||
# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data
|
||||
# stream of the bar heights that can be used to send to other applications.
|
||||
# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above.
|
||||
method = ncurses
|
||||
|
||||
# Visual channels. Can be 'stereo' or 'mono'.
|
||||
# 'stereo' mirrors both channels with low frequencies in center.
|
||||
# 'mono' outputs left to right lowest to highest frequencies.
|
||||
# 'mono_option' set mono to either take input from 'left', 'right' or 'average'.
|
||||
; channels = stereo
|
||||
; mono_option = average
|
||||
|
||||
# Raw output target. A fifo will be created if target does not exist.
|
||||
; raw_target = /dev/stdout
|
||||
|
||||
# Raw data format. Can be 'binary' or 'ascii'.
|
||||
; data_format = binary
|
||||
|
||||
# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530).
|
||||
; bit_format = 16bit
|
||||
|
||||
# Ascii max value. In 'ascii' mode range will run from 0 to value specified here
|
||||
; ascii_max_range = 1000
|
||||
|
||||
# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters.
|
||||
# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)).
|
||||
; bar_delimiter = 59
|
||||
; frame_delimiter = 10
|
||||
|
||||
|
||||
|
||||
[color]
|
||||
|
||||
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
|
||||
# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires
|
||||
# ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt.
|
||||
# default is to keep current terminal color
|
||||
; background = default
|
||||
foreground = cyan
|
||||
|
||||
# Gradient mode, only hex defined colors (and thereby ncurses mode) are supported,
|
||||
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
||||
# You can define as many as 8 different colors. They range from bottom to top of screen
|
||||
; gradient = 1
|
||||
gradient_count = 8
|
||||
gradient_color_1 = '#59cc33'
|
||||
gradient_color_2 = '#80cc33'
|
||||
gradient_color_3 = '#a6cc33'
|
||||
gradient_color_4 = '#cccc33'
|
||||
gradient_color_5 = '#cca633'
|
||||
gradient_color_6 = '#cc8033'
|
||||
gradient_color_7 = '#cc5933'
|
||||
gradient_color_8 = '#cc3333'
|
||||
|
||||
|
||||
|
||||
[smoothing]
|
||||
|
||||
# Percentage value for integral smoothing. Takes values from 0 - 100.
|
||||
# Higher values means smoother, but less precise. 0 to disable.
|
||||
; integral = 77
|
||||
|
||||
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
|
||||
monstercat = 2
|
||||
waves = 5
|
||||
|
||||
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
|
||||
# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".
|
||||
; gravity = 100
|
||||
|
||||
|
||||
# In bar height, bars that would have been lower that this will not be drawn.
|
||||
; ignore = 0
|
||||
|
||||
|
||||
[eq]
|
||||
|
||||
# This one is tricky. You can have as much keys as you want.
|
||||
# Remember to uncomment more then one key! More keys = more precision.
|
||||
# Look at readme.md on github for further explanations and examples.
|
||||
; 1 = 1 # bass
|
||||
; 2 = 1
|
||||
; 3 = 1 # midtone
|
||||
; 4 = 1
|
||||
; 5 = 1 # treble
|
116
.config/compton/compton.conf
Normal file
|
@ -0,0 +1,116 @@
|
|||
# Shadow
|
||||
shadow = true;
|
||||
no-dnd-shadow = true; no-dock-shadow = true;
|
||||
clear-shadow = true;
|
||||
shadow-radius = 3;
|
||||
shadow-offset-x = -2;
|
||||
shadow-offset-y = 2;
|
||||
shadow-opacity = 0.5;
|
||||
# shadow-red = 0.0;
|
||||
# shadow-green = 0.0;
|
||||
# shadow-blue = 0.0;
|
||||
shadow-exclude = [
|
||||
"name = 'Notification'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
"class_g = 'firefox-developer-edition'"
|
||||
];
|
||||
# shadow-exclude = "n:e:Notification";
|
||||
# shadow-exclude-reg = "x10+0+0";
|
||||
# xinerama-shadow-crop = true;
|
||||
|
||||
# Opacity
|
||||
menu-opacity = 0.8;
|
||||
inactive-opacity = 1;
|
||||
active-opacity = 1;
|
||||
frame-opacity = 0.7;
|
||||
inactive-opacity-override = false;
|
||||
alpha-step = 0.06;
|
||||
# inactive-dim = 0.2;
|
||||
# inactive-dim-fixed = true;
|
||||
|
||||
|
||||
opacity-rule = [
|
||||
"80:class_g *?= 'URxvt'" ,
|
||||
"95:class_g *?= 'alacritty' && name *?='tmux'",
|
||||
"90:class_g *?= 'alacritty'",
|
||||
"90:class_g *?= 'xterm'",
|
||||
"90:class_g *?= 'Alacritty'",
|
||||
"50:class_g *?= 'variety'",
|
||||
"95:class_g *?= 'code'",
|
||||
"85:class_g *?= 'rofi'",
|
||||
"98:class_g *?= 'Kotatogram'",
|
||||
"0:class_g *?='Android Emulator'",
|
||||
"50:class_g *?='pomo'",
|
||||
"100:class_g *?= 'Webstorm'",
|
||||
"95:class_g *?= 'Emacs'",
|
||||
"60:class_g *?= 'zathura'",
|
||||
"60:class_g *?= 'Zathura'",
|
||||
];
|
||||
|
||||
# Blur
|
||||
blur-background = true;
|
||||
blur-method = "kawase";
|
||||
blur-strength = 8;
|
||||
#blur-background-frame = true;
|
||||
#dfasdfblur-kern = "3x3box";
|
||||
#blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||
#blur-background-fixed = true;
|
||||
blur-background-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"_GTK_FRAME_EXTENTS@:c",,
|
||||
#"class_g = 'alacritty'",
|
||||
|
||||
]
|
||||
|
||||
# Fading
|
||||
fading = false;
|
||||
# fade-delta = 30;
|
||||
#fade-in-step = 0.03;
|
||||
#fade-out-step = 0.03;
|
||||
# no-fading-openclose = true;
|
||||
# no-fading-destroyed-argb = true;
|
||||
#fade-exclude = [ ];
|
||||
|
||||
# Other
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
# use-ewmh-active-win = true;
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
refresh-rate = 0;
|
||||
vsync = "none";
|
||||
dbe = false;
|
||||
paint-on-overlay = true;
|
||||
# sw-opti = true;
|
||||
# unredir-if-possible = true;
|
||||
# unredir-if-possible-delay = 5000;
|
||||
# unredir-if-possible-exclude = [ ];
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'", "class_g *?='firefox-developer-edition'" ];
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
invert-color-include = [ ];
|
||||
# resize-damage = 1;
|
||||
|
||||
# GLX backend
|
||||
backend = "glx"
|
||||
glx-no-stencil = true;
|
||||
glx-copy-from-front = false;
|
||||
# glx-use-copysubbuffermesa = true;
|
||||
glx-no-rebind-pixmap = true;
|
||||
glx-swap-method = "undefined";
|
||||
# glx-use-gpushader4 = true;
|
||||
# xrender-sync = true;
|
||||
# xrender-sync-fence = true;
|
||||
|
||||
# Window type settings
|
||||
wintypes:
|
||||
{
|
||||
tooltip = { fade = false; shadow = true; opacity = 0.55; focus = true; };
|
||||
};
|
||||
|
||||
|
||||
|
319
.config/compton/dotfiles/i3/config
Normal file
|
@ -0,0 +1,319 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
|
||||
|
||||
#Look at existing keybindings names
|
||||
# ```xmodmap -pke | grep %key%```
|
||||
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:Roboto Mono 10, FontAwesome 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
# Redshift Night Mode
|
||||
# exec_always --no-startup-id redshift -P -O 4000
|
||||
|
||||
set $TERMINAL alacritty
|
||||
exec_always export TERMINAL=alacritty
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
#Screen brightnes
|
||||
bindsym XF86MonBrightnessUp exec lux -a 5
|
||||
bindsym XF86MonBrightnessDown exec lux -s 5
|
||||
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
|
||||
#bindsym $mod+d exec "rofi -modi run,drun -show drun -line-padding 4 -columns 2 -width 40 -padding 30 -hide-scrollbar -show-icons -drun-icon-theme Papirus"
|
||||
set $TERMINAL alacritty
|
||||
set $dmenu dmenu-terminal $TERMINAL
|
||||
bindsym $mod+t exec $dmenu
|
||||
bindsym $mod+d exec dmenu_run
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# alternatively, you can use the cursor 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
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+semicolon split h
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+Shift+alt focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
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 or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#---BAR POLYBAR---#
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
|
||||
###############Stylizing##################
|
||||
for_window [class="^.*"] border pixel 3
|
||||
# border_radius 3
|
||||
border_radius 0
|
||||
|
||||
|
||||
#client.focused #488444 #488444 #488444 #488444 #488444
|
||||
client.focused_inactive #282a36 #282a36 #282a36 #282a36 #282a36
|
||||
#client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused #44475a #44475a #44475a #44475a #44475a
|
||||
#client.unfocused #4c566a #4c566a #4c566a #4c566a #4c566a
|
||||
|
||||
|
||||
###############STARTUP Utilites##################
|
||||
exec /home/horhik/scripts/Startup/wifi.sh #WIFI
|
||||
###---touchpad--##
|
||||
exec --no-startup-id /home/horhik/Scripts/startup/touchpad.sh #WIFI
|
||||
exec --ho-startup-id sh ssh-agent bash ; ssh-add ~/.ssh/arch
|
||||
|
||||
#---Audio---#
|
||||
exec_always --no-startup-id pacmd set-card-profile 1 output:analog-stereo
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
#exec pulseaudio
|
||||
#---/Audio---#
|
||||
exec_always --no-startup-id xrandr --output HDMI-1 --above eDP-1
|
||||
###############STARTUP Apps##################
|
||||
#wallpapers
|
||||
#transparetncy:
|
||||
exec_always --no-startup-id compton --config ~/.config/compton/compton.conf
|
||||
#microphone
|
||||
exec 'pactl set-card-profile alsa_card.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00 output:iec958-stereo+input:analog-stereo'
|
||||
#---GAPS---#
|
||||
exec --no-startup-id i3-msg gaps inner all set 10
|
||||
exec_always --no-startup-id i3-msg smart_borders on
|
||||
|
||||
set $mode_gaps Gaps: (h) plus, (j) enable, (k) reset, (l) minus
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym j gaps inner current plus 5
|
||||
bindsym h gaps inner current set 10
|
||||
bindsym l gaps inner current set 0
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
set $mode_apps Apps:(n)otion,(f)irefox,(t)ick-tick,(m)ail,(p)rotonmail
|
||||
bindsym $mod+Shift+a mode "$mode_apps"
|
||||
|
||||
set $firefox firefox-developer-edition
|
||||
mode "$mode_apps" {
|
||||
bindsym f exec $firefox
|
||||
bindsym n exec $firefox --ssb https://notion.so & i3-msg mode 'default'
|
||||
bindsym Shift+s exec $firefox --ssb https://music.yandex.com & i3-msg mode 'default'
|
||||
bindsym t exec $firefox --ssb https://ticktick.com & i3-msg mode 'default'
|
||||
bindsym m exec $firefox --ssb https://tutanota.io & i3-msg mode 'default'
|
||||
bindsym p exec $firefox --ssb https://protonmail.com & i3-msg mode 'default'
|
||||
bindsym q exec qdirstat
|
||||
bindsym s exec flatpak run com.valvesoftware.Steam
|
||||
#evince book reader
|
||||
bindsym b exec evince
|
||||
bindsym s exec $firefox https://soundcloud.com
|
||||
#watch Toggl Timer
|
||||
bindsym w exec surf https://toggl.com/app/timer
|
||||
bindsym y exec $firefox music.yandex.ru/
|
||||
bindsym d exec surf https://www.collinsdictionary.com/
|
||||
#bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
#---shortcuts---#
|
||||
bindsym $mod+Shift+s exec flameshot gui
|
||||
|
||||
#---Language---#
|
||||
exec_always setxkbmap -layout us,ru
|
||||
exec_always xkb-switch -s us,ru
|
||||
|
||||
bindsym $mod+space exec xkb-switch -n
|
||||
|
||||
#--Floating togglable windows--#
|
||||
|
||||
# Terminal
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] resize set 825 600
|
||||
for_window [title="dropdown"] move scratchpad
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] border pixel 3
|
||||
exec --no-startup-id alacritty -t dropdown -e tmux
|
||||
bindsym $mod+u [title="dropdown"] scratchpad show; [title="dropdown"] move position center
|
||||
|
||||
# Toggl timer
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] resize set 800 70
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] move scratchpad
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] border pixel 3
|
||||
bindsym $mod+Shift+t [title="@cgDISVMFxT:T | Toggl"] scratchpad show; [title="@cgDISVMFxT:T | Toggl"] move position center
|
||||
exec --no-startup-id surf https://toggl.com/app/timer
|
||||
|
||||
#Emoji
|
||||
bindsym $mod+period exec rofimoji
|
||||
# Usage
|
||||
# Hit enter to insert the emoji directly
|
||||
# Hit alt+c to copy it to the clipboard
|
||||
# alt+t or alt+p can be used to select a specific input method
|
||||
# alt+1 inserts the most recently used character (alt+2 for the second most recently one etc.)
|
||||
|
||||
|
||||
|
||||
|
||||
exec variety
|
||||
exec_always --no-startup-id variety --next
|
||||
|
||||
exec "workspace 6;exec append_layout ~/Scripts/bin/freelances2.json; exec ~/Scripts/bin/freelances"
|
||||
|
2
.config/compton/dotfiles/i3/log.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
416
.config/dunst/dunstrc
Normal file
|
@ -0,0 +1,416 @@
|
|||
[global]
|
||||
### Display ###
|
||||
|
||||
# Which monitor should the notifications be displayed on.
|
||||
monitor = 0
|
||||
|
||||
# Display notification on focused monitor. Possible modes are:
|
||||
# mouse: follow mouse pointer
|
||||
# keyboard: follow window with keyboard focus
|
||||
# none: don't follow anything
|
||||
#
|
||||
# "keyboard" needs a window manager that exports the
|
||||
# _NET_ACTIVE_WINDOW property.
|
||||
# This should be the case for almost all modern window managers.
|
||||
#
|
||||
# If this option is set to mouse or keyboard, the monitor option
|
||||
# will be ignored.
|
||||
follow = mouse
|
||||
|
||||
# The geometry of the window:
|
||||
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||
# The geometry of the message window.
|
||||
# The height is measured in number of notifications everything else
|
||||
# in pixels. If the width is omitted but the height is given
|
||||
# ("-geometry x2"), the message window expands over the whole screen
|
||||
# (dmenu-like). If width is 0, the window expands to the longest
|
||||
# message displayed. A positive x is measured from the left, a
|
||||
# negative from the right side of the screen. Y is measured from
|
||||
# the top and down respectively.
|
||||
# The width can be negative. In this case the actual width is the
|
||||
# screen width minus the width defined in within the geometry option.
|
||||
geometry = "300x5-30+20"
|
||||
|
||||
# Show how many messages are currently hidden (because of geometry).
|
||||
indicate_hidden = yes
|
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if
|
||||
# width is 0.
|
||||
shrink = no
|
||||
|
||||
# The transparency of the window. Range: [0; 100].
|
||||
# This option will only work if a compositing window manager is
|
||||
# present (e.g. xcompmgr, compiz, etc.).
|
||||
transparency = 30
|
||||
|
||||
# The height of the entire notification. If the height is smaller
|
||||
# than the font height and padding combined, it will be raised
|
||||
# to the font height and padding.
|
||||
notification_height = 0
|
||||
|
||||
# Draw a line of "separator_height" pixel height between two
|
||||
# notifications.
|
||||
# Set to 0 to disable.
|
||||
separator_height = 20
|
||||
|
||||
# Padding between text and separator.
|
||||
padding = 24
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
|
||||
# Defines width in pixels of frame around the notification window.
|
||||
# Set to 0 to disable.
|
||||
frame_width = 4
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "#44475a"
|
||||
|
||||
# Define a color for the separator.
|
||||
# possible values are:
|
||||
# * auto: dunst tries to find a color fitting to the background;
|
||||
# * foreground: use the same color as the foreground;
|
||||
# * frame: use the same color as the frame;
|
||||
# * anything else will be interpreted as a X color.
|
||||
separator_color = frame
|
||||
|
||||
# Sort messages by urgency.
|
||||
sort = yes
|
||||
|
||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||
# for longer than idle_threshold seconds.
|
||||
# Set to 0 to disable.
|
||||
# A client can set the 'transient' hint to bypass this. See the rules
|
||||
# section for how to disable this if necessary
|
||||
idle_threshold = 120
|
||||
|
||||
### Text ###
|
||||
|
||||
font = Mononoki 12
|
||||
|
||||
# The spacing between lines. If the height is smaller than the
|
||||
# font height, it will get raised to the font height.
|
||||
line_height = 0
|
||||
|
||||
# Possible values are:
|
||||
# full: Allow a small subset of html markup in notifications:
|
||||
# <b>bold</b>
|
||||
# <i>italic</i>
|
||||
# <s>strikethrough</s>
|
||||
# <u>underline</u>
|
||||
#
|
||||
# For a complete reference see
|
||||
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
||||
#
|
||||
# strip: This setting is provided for compatibility with some broken
|
||||
# clients that send markup even though it's not enabled on the
|
||||
# server. Dunst will try to strip the markup but the parsing is
|
||||
# simplistic so using this option outside of matching rules for
|
||||
# specific applications *IS GREATLY DISCOURAGED*.
|
||||
#
|
||||
# no: Disable markup parsing, incoming notifications will be treated as
|
||||
# plain text. Dunst will not advertise that it has the body-markup
|
||||
# capability if this is set as a global setting.
|
||||
#
|
||||
# It's important to note that markup inside the format option will be parsed
|
||||
# regardless of what this is set to.
|
||||
markup = full
|
||||
|
||||
# The format of the message. Possible variables are:
|
||||
# %a appname
|
||||
# %s summary
|
||||
# %b body
|
||||
# %i iconname (including its path)
|
||||
# %I iconname (without its path)
|
||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||
# %n progress value if set without any extra characters
|
||||
# %% Literal %
|
||||
# Markup is allowed
|
||||
format = "<b>%s</b>\n%b"
|
||||
|
||||
# Alignment of message text.
|
||||
# Possible values are "left", "center" and "right".
|
||||
alignment = left
|
||||
|
||||
# Show age of message if message is older than show_age_threshold
|
||||
# seconds.
|
||||
# Set to -1 to disable.
|
||||
show_age_threshold = 60
|
||||
|
||||
# Split notifications into multiple lines if they don't fit into
|
||||
# geometry.
|
||||
word_wrap = yes
|
||||
|
||||
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
|
||||
# Possible values are "start", "middle" and "end".
|
||||
ellipsize = middle
|
||||
|
||||
# Ignore newlines '\n' in notifications.
|
||||
ignore_newline = no
|
||||
|
||||
# Stack together notifications with the same content
|
||||
stack_duplicates = true
|
||||
|
||||
# Hide the count of stacked notifications with the same content
|
||||
hide_duplicate_count = false
|
||||
|
||||
# Display indicators for URLs (U) and actions (A).
|
||||
show_indicators = yes
|
||||
|
||||
### Icons ###
|
||||
|
||||
# Align icons left/right/off
|
||||
icon_position = left
|
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable
|
||||
max_icon_size = 32
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/Papirus-Dark/16x16:/usr/share/icons/Papirus/16x16:/home/horhik/Pictures/icons
|
||||
### History ###
|
||||
|
||||
# Should a notification popped up from history be sticky or timeout
|
||||
# as if it would normally do.
|
||||
sticky_history = yes
|
||||
|
||||
# Maximum amount of notifications kept in history
|
||||
history_length = 20
|
||||
|
||||
### Misc/Advanced ###
|
||||
|
||||
# dmenu path.
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
|
||||
# Browser for opening urls in context menu.
|
||||
browser = /usr/bin/firefox -new-tab
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
||||
# Define the title of the windows spawned by dunst
|
||||
title = Dunst
|
||||
|
||||
# Define the class of the windows spawned by dunst
|
||||
class = Dunst
|
||||
|
||||
# Print a notification on startup.
|
||||
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||
# automatically after a crash.
|
||||
startup_notification = false
|
||||
|
||||
# Manage dunst's desire for talking
|
||||
# Can be one of the following values:
|
||||
# crit: Critical features. Dunst aborts
|
||||
# warn: Only non-fatal warnings
|
||||
# mesg: Important Messages
|
||||
# info: all unimportant stuff
|
||||
# debug: all less than unimportant stuff
|
||||
verbosity = mesg
|
||||
|
||||
# Define the corner radius of the notification window
|
||||
# in pixel size. If the radius is 0, you have no rounded
|
||||
# corners.
|
||||
# The radius will be automatically lowered if it exceeds half of the
|
||||
# notification height to avoid clipping text and/or icons.
|
||||
corner_radius = 0
|
||||
|
||||
### Legacy
|
||||
|
||||
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||
# This setting is provided for compatibility with older nVidia drivers that
|
||||
# do not support RandR and using it on systems that support RandR is highly
|
||||
# discouraged.
|
||||
#
|
||||
# By enabling this setting dunst will not be able to detect when a monitor
|
||||
# is connected or disconnected which might break follow mode if the screen
|
||||
# layout changes.
|
||||
force_xinerama = false
|
||||
|
||||
### mouse
|
||||
|
||||
# Defines action of mouse event
|
||||
# Possible values are:
|
||||
# * none: Don't do anything.
|
||||
# * do_action: If the notification has exactly one action, or one is marked as default,
|
||||
# invoke it. If there are multiple and no default, open the context menu.
|
||||
# * close_current: Close current notification.
|
||||
# * close_all: Close all notifications.
|
||||
mouse_left_click = close_current
|
||||
mouse_middle_click = do_action
|
||||
mouse_right_click = close_all
|
||||
|
||||
# Experimental features that may or may not work correctly. Do not expect them
|
||||
# to have a consistent behaviour across releases.
|
||||
[experimental]
|
||||
# Calculate the dpi to use on a per-monitor basis.
|
||||
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||
# using the resolution and physical size. This might be useful in setups
|
||||
# where there are multiple screens with very different dpi values.
|
||||
per_monitor_dpi = false
|
||||
|
||||
[shortcuts]
|
||||
|
||||
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||
# "mod3" and "mod4" (windows-key).
|
||||
# Xev might be helpful to find names for keys.
|
||||
|
||||
# Close notification.
|
||||
close = ctrl+space
|
||||
|
||||
# Close all notifications.
|
||||
close_all = ctrl+shift+space
|
||||
|
||||
# Redisplay last message(s).
|
||||
# On the US keyboard layout "grave" is normally above TAB and left
|
||||
# of "1". Make sure this key actually exists on your keyboard layout,
|
||||
# e.g. check output of 'xmodmap -pke'
|
||||
history = ctrl+grave
|
||||
|
||||
# Context menu.
|
||||
context = ctrl+shift+period
|
||||
|
||||
[urgency_low]
|
||||
# IMPORTANT: colors have to be defined in quotation marks.
|
||||
# Otherwise the "#" and following would be interpreted as a comment.
|
||||
background = "#282a36"
|
||||
foreground = "#f8f8f2"
|
||||
frame_color = "#50fa7b"
|
||||
timeout = 10
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_normal]
|
||||
background = "#282a36"
|
||||
foreground = "#ffffff"
|
||||
frame_color = "#8be9fd"
|
||||
timeout = 10
|
||||
# Icon for notifications with normal urgency, uncomment to enable
|
||||
#icon = /path/to/icon
|
||||
|
||||
[urgency_critical]
|
||||
background = "#44475a"
|
||||
foreground = "#ff5555"
|
||||
frame_color = "#ff5555"
|
||||
timeout = 0
|
||||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
icon = ~/Pictures/icons/warning.svg
|
||||
|
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to
|
||||
# override settings for certain messages.
|
||||
#
|
||||
# Messages can be matched by
|
||||
# appname (discouraged, see desktop_entry)
|
||||
# body
|
||||
# category
|
||||
# desktop_entry
|
||||
# icon
|
||||
# match_transient
|
||||
# msg_urgency
|
||||
# stack_tag
|
||||
# summary
|
||||
#
|
||||
# and you can override the
|
||||
# background
|
||||
# foreground
|
||||
# format
|
||||
# frame_color
|
||||
# fullscreen
|
||||
# new_icon
|
||||
# set_stack_tag
|
||||
# set_transient
|
||||
# timeout
|
||||
# urgency
|
||||
#
|
||||
# Shell-like globbing will get expanded.
|
||||
#
|
||||
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
|
||||
# GLib based applications export their desktop-entry name. In comparison to the appname,
|
||||
# the desktop-entry won't get localized.
|
||||
#
|
||||
# SCRIPTING
|
||||
# You can specify a script that gets run when the rule matches by
|
||||
# setting the "script" option.
|
||||
# The script will be called as follows:
|
||||
# script appname summary body icon urgency
|
||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||
#
|
||||
# NOTE: if you don't want a notification to be displayed, set the format
|
||||
# to "".
|
||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||
# to find fitting options for rules.
|
||||
|
||||
# Disable the transient hint so that idle_threshold cannot be bypassed from the
|
||||
# client
|
||||
#[transient_disable]
|
||||
# match_transient = yes
|
||||
# set_transient = no
|
||||
#
|
||||
# Make the handling of transient notifications more strict by making them not
|
||||
# be placed in history.
|
||||
#[transient_history_ignore]
|
||||
# match_transient = yes
|
||||
# history_ignore = yes
|
||||
|
||||
# fullscreen values
|
||||
# show: show the notifications, regardless if there is a fullscreen window opened
|
||||
# delay: displays the new notification, if there is no fullscreen window active
|
||||
# If the notification is already drawn, it won't get undrawn.
|
||||
# pushback: same as delay, but when switching into fullscreen, the notification will get
|
||||
# withdrawn from screen again and will get delayed like a new notification
|
||||
#[fullscreen_delay_everything]
|
||||
# fullscreen = delay
|
||||
#[fullscreen_show_critical]
|
||||
# msg_urgency = critical
|
||||
# fullscreen = show
|
||||
|
||||
#[espeak]
|
||||
# summary = "*"
|
||||
# script = dunst_espeak.sh
|
||||
|
||||
#[script-test]
|
||||
# summary = "*script*"
|
||||
# script = dunst_test.sh
|
||||
|
||||
#[ignore]
|
||||
# # This notification will not be displayed
|
||||
# summary = "foobar"
|
||||
# format = ""
|
||||
|
||||
#[history-ignore]
|
||||
# # This notification will not be saved in history
|
||||
# summary = "foobar"
|
||||
# history_ignore = yes
|
||||
|
||||
#[skip-display]
|
||||
# # This notification will not be displayed, but will be included in the history
|
||||
# summary = "foobar"
|
||||
# skip_display = yes
|
||||
|
||||
#[signed_on]
|
||||
# appname = Pidgin
|
||||
# summary = "*signed on*"
|
||||
# urgency = low
|
||||
#
|
||||
#[signed_off]
|
||||
# appname = Pidgin
|
||||
# summary = *signed off*
|
||||
# urgency = low
|
||||
#
|
||||
#[says]
|
||||
# appname = Pidgin
|
||||
# summary = *says*
|
||||
# urgency = critical
|
||||
#
|
||||
#[twitter]
|
||||
# appname = Pidgin
|
||||
# summary = *twitter.com*
|
||||
# urgency = normal
|
||||
#
|
||||
#[stack-volumes]
|
||||
# appname = "some_volume_notifiers"
|
||||
# set_stack_tag = "volume"
|
||||
#
|
||||
# vim: ft=cfg
|
7
.config/fish/conf.d/omf.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Path to Oh My Fish install.
|
||||
set -q XDG_DATA_HOME
|
||||
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||
|
||||
# Load Oh My Fish configuration.
|
||||
source $OMF_PATH/init.fish
|
36
.config/fish/fish_variables
Normal file
|
@ -0,0 +1,36 @@
|
|||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:005fd7
|
||||
SETUVAR fish_color_comment:990000
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:009900
|
||||
SETUVAR fish_color_error:ff0000
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_param:00afff
|
||||
SETUVAR fish_color_quote:999900
|
||||
SETUVAR fish_color_redirection:00afff
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:green\x1e\x2db
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_cursor_default:line
|
||||
SETUVAR fish_cursor_insert:line
|
||||
SETUVAR fish_cursor_normal:block
|
||||
SETUVAR fish_cursor_replace_one:underscore
|
||||
SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell\x0aType\x20\x60help\x60\x20for\x20instructions\x20on\x20how\x20to\x20use\x20fish
|
||||
SETUVAR fish_key_bindings:fish_vi_key_bindings
|
||||
SETUVAR fish_pager_color_completion:\x1d
|
||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
1
.config/fish/functions/fish_prompt.fish
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/horhik/.local/share/omf/themes/agnoster/fish_prompt.fish
|
4
.config/hub
Normal file
|
@ -0,0 +1,4 @@
|
|||
github.com:
|
||||
- user: Horhik
|
||||
oauth_token: 0a12aa606f320a3af03c5a388a9e59f0da13e6fc
|
||||
protocol: https
|
319
.config/i3/config
Normal file
|
@ -0,0 +1,319 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
|
||||
|
||||
#Look at existing keybindings names
|
||||
# ```xmodmap -pke | grep %key%```
|
||||
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:Roboto Mono 10, FontAwesome 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
# Redshift Night Mode
|
||||
# exec_always --no-startup-id redshift -P -O 4000
|
||||
|
||||
set $TERMINAL alacritty
|
||||
exec_always export TERMINAL=alacritty
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
#Screen brightnes
|
||||
bindsym XF86MonBrightnessUp exec lux -a 5
|
||||
bindsym XF86MonBrightnessDown exec lux -s 5
|
||||
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
|
||||
#bindsym $mod+d exec "rofi -modi run,drun -show drun -line-padding 4 -columns 2 -width 40 -padding 30 -hide-scrollbar -show-icons -drun-icon-theme Papirus"
|
||||
set $TERMINAL alacritty
|
||||
set $dmenu dmenu-terminal $TERMINAL
|
||||
bindsym $mod+t exec $dmenu
|
||||
bindsym $mod+d exec dmenu_run
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# alternatively, you can use the cursor 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
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+semicolon split h
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+Shift+alt focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
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 or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#---BAR POLYBAR---#
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
|
||||
###############Stylizing##################
|
||||
for_window [class="^.*"] border pixel 3
|
||||
# border_radius 3
|
||||
border_radius 0
|
||||
|
||||
|
||||
#client.focused #488444 #488444 #488444 #488444 #488444
|
||||
client.focused_inactive #282a36 #282a36 #282a36 #282a36 #282a36
|
||||
#client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused #44475a #44475a #44475a #44475a #44475a
|
||||
#client.unfocused #4c566a #4c566a #4c566a #4c566a #4c566a
|
||||
|
||||
|
||||
###############STARTUP Utilites##################
|
||||
exec /home/horhik/scripts/Startup/wifi.sh #WIFI
|
||||
###---touchpad--##
|
||||
exec --no-startup-id /home/horhik/Scripts/startup/touchpad.sh #WIFI
|
||||
exec --ho-startup-id sh ssh-agent bash ; ssh-add ~/.ssh/arch
|
||||
|
||||
#---Audio---#
|
||||
exec_always --no-startup-id pacmd set-card-profile 1 output:analog-stereo
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
#exec pulseaudio
|
||||
#---/Audio---#
|
||||
exec_always --no-startup-id xrandr --output HDMI-1 --above eDP-1
|
||||
###############STARTUP Apps##################
|
||||
#wallpapers
|
||||
#transparetncy:
|
||||
exec_always --no-startup-id compton --config ~/.config/compton/compton.conf
|
||||
#microphone
|
||||
exec 'pactl set-card-profile alsa_card.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00 output:iec958-stereo+input:analog-stereo'
|
||||
#---GAPS---#
|
||||
exec --no-startup-id i3-msg gaps inner all set 10
|
||||
exec_always --no-startup-id i3-msg smart_borders on
|
||||
|
||||
set $mode_gaps Gaps: (h) plus, (j) enable, (k) reset, (l) minus
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym j gaps inner current plus 5
|
||||
bindsym h gaps inner current set 10
|
||||
bindsym l gaps inner current set 0
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
set $mode_apps Apps:(n)otion,(f)irefox,(t)ick-tick,(m)ail,(p)rotonmail
|
||||
bindsym $mod+Shift+a mode "$mode_apps"
|
||||
|
||||
set $firefox firefox-developer-edition
|
||||
mode "$mode_apps" {
|
||||
bindsym f exec $firefox
|
||||
bindsym n exec $firefox --ssb https://notion.so & i3-msg mode 'default'
|
||||
bindsym Shift+s exec $firefox --ssb https://music.yandex.com & i3-msg mode 'default'
|
||||
bindsym t exec $firefox --ssb https://ticktick.com & i3-msg mode 'default'
|
||||
bindsym m exec $firefox --ssb https://tutanota.io & i3-msg mode 'default'
|
||||
bindsym p exec $firefox --ssb https://protonmail.com & i3-msg mode 'default'
|
||||
bindsym q exec qdirstat
|
||||
bindsym s exec flatpak run com.valvesoftware.Steam
|
||||
#evince book reader
|
||||
bindsym b exec evince
|
||||
bindsym s exec $firefox https://soundcloud.com
|
||||
#watch Toggl Timer
|
||||
bindsym w exec surf https://toggl.com/app/timer
|
||||
bindsym y exec $firefox music.yandex.ru/
|
||||
bindsym d exec surf https://www.collinsdictionary.com/
|
||||
#bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
#---shortcuts---#
|
||||
bindsym $mod+Shift+s exec flameshot gui
|
||||
|
||||
#---Language---#
|
||||
exec_always setxkbmap -layout us,ru
|
||||
exec_always xkb-switch -s us,ru
|
||||
|
||||
bindsym $mod+space exec xkb-switch -n
|
||||
|
||||
#--Floating togglable windows--#
|
||||
|
||||
# Terminal
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] resize set 825 600
|
||||
for_window [title="dropdown"] move scratchpad
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] border pixel 3
|
||||
exec --no-startup-id alacritty -t dropdown -e tmux
|
||||
bindsym $mod+u [title="dropdown"] scratchpad show; [title="dropdown"] move position center
|
||||
|
||||
# Toggl timer
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] resize set 800 70
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] move scratchpad
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] border pixel 3
|
||||
bindsym $mod+Shift+t [title="@cgDISVMFxT:T | Toggl"] scratchpad show; [title="@cgDISVMFxT:T | Toggl"] move position center
|
||||
exec --no-startup-id surf https://toggl.com/app/timer
|
||||
|
||||
#Emoji
|
||||
bindsym $mod+period exec rofimoji
|
||||
# Usage
|
||||
# Hit enter to insert the emoji directly
|
||||
# Hit alt+c to copy it to the clipboard
|
||||
# alt+t or alt+p can be used to select a specific input method
|
||||
# alt+1 inserts the most recently used character (alt+2 for the second most recently one etc.)
|
||||
|
||||
|
||||
|
||||
|
||||
exec variety
|
||||
exec_always --no-startup-id variety --next
|
||||
|
||||
exec "workspace 6;exec append_layout ~/Scripts/bin/freelances2.json; exec ~/Scripts/bin/freelances"
|
||||
|
319
.config/i3/dotfiles/i3/config
Normal file
|
@ -0,0 +1,319 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
|
||||
|
||||
#Look at existing keybindings names
|
||||
# ```xmodmap -pke | grep %key%```
|
||||
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:Roboto Mono 10, FontAwesome 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
# Redshift Night Mode
|
||||
# exec_always --no-startup-id redshift -P -O 4000
|
||||
|
||||
set $TERMINAL alacritty
|
||||
exec_always export TERMINAL=alacritty
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
#Screen brightnes
|
||||
bindsym XF86MonBrightnessUp exec lux -a 5
|
||||
bindsym XF86MonBrightnessDown exec lux -s 5
|
||||
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
|
||||
#bindsym $mod+d exec "rofi -modi run,drun -show drun -line-padding 4 -columns 2 -width 40 -padding 30 -hide-scrollbar -show-icons -drun-icon-theme Papirus"
|
||||
set $TERMINAL alacritty
|
||||
set $dmenu dmenu-terminal $TERMINAL
|
||||
bindsym $mod+t exec $dmenu
|
||||
bindsym $mod+d exec dmenu_run
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# alternatively, you can use the cursor 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
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+semicolon split h
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+Shift+alt focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
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 or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#---BAR POLYBAR---#
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
|
||||
###############Stylizing##################
|
||||
for_window [class="^.*"] border pixel 3
|
||||
# border_radius 3
|
||||
border_radius 0
|
||||
|
||||
|
||||
#client.focused #488444 #488444 #488444 #488444 #488444
|
||||
client.focused_inactive #282a36 #282a36 #282a36 #282a36 #282a36
|
||||
#client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused #44475a #44475a #44475a #44475a #44475a
|
||||
#client.unfocused #4c566a #4c566a #4c566a #4c566a #4c566a
|
||||
|
||||
|
||||
###############STARTUP Utilites##################
|
||||
exec /home/horhik/scripts/Startup/wifi.sh #WIFI
|
||||
###---touchpad--##
|
||||
exec --no-startup-id /home/horhik/Scripts/startup/touchpad.sh #WIFI
|
||||
exec --ho-startup-id sh ssh-agent bash ; ssh-add ~/.ssh/arch
|
||||
|
||||
#---Audio---#
|
||||
exec_always --no-startup-id pacmd set-card-profile 1 output:analog-stereo
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
#exec pulseaudio
|
||||
#---/Audio---#
|
||||
exec_always --no-startup-id xrandr --output HDMI-1 --above eDP-1
|
||||
###############STARTUP Apps##################
|
||||
#wallpapers
|
||||
#transparetncy:
|
||||
exec_always --no-startup-id compton --config ~/.config/compton/compton.conf
|
||||
#microphone
|
||||
exec 'pactl set-card-profile alsa_card.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00 output:iec958-stereo+input:analog-stereo'
|
||||
#---GAPS---#
|
||||
exec --no-startup-id i3-msg gaps inner all set 10
|
||||
exec_always --no-startup-id i3-msg smart_borders on
|
||||
|
||||
set $mode_gaps Gaps: (h) plus, (j) enable, (k) reset, (l) minus
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym j gaps inner current plus 5
|
||||
bindsym h gaps inner current set 10
|
||||
bindsym l gaps inner current set 0
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
set $mode_apps Apps:(n)otion,(f)irefox,(t)ick-tick,(m)ail,(p)rotonmail
|
||||
bindsym $mod+Shift+a mode "$mode_apps"
|
||||
|
||||
set $firefox firefox-developer-edition
|
||||
mode "$mode_apps" {
|
||||
bindsym f exec $firefox
|
||||
bindsym n exec $firefox --ssb https://notion.so & i3-msg mode 'default'
|
||||
bindsym Shift+s exec $firefox --ssb https://music.yandex.com & i3-msg mode 'default'
|
||||
bindsym t exec $firefox --ssb https://ticktick.com & i3-msg mode 'default'
|
||||
bindsym m exec $firefox --ssb https://tutanota.io & i3-msg mode 'default'
|
||||
bindsym p exec $firefox --ssb https://protonmail.com & i3-msg mode 'default'
|
||||
bindsym q exec qdirstat
|
||||
bindsym s exec flatpak run com.valvesoftware.Steam
|
||||
#evince book reader
|
||||
bindsym b exec evince
|
||||
bindsym s exec $firefox https://soundcloud.com
|
||||
#watch Toggl Timer
|
||||
bindsym w exec surf https://toggl.com/app/timer
|
||||
bindsym y exec $firefox music.yandex.ru/
|
||||
bindsym d exec surf https://www.collinsdictionary.com/
|
||||
#bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
#---shortcuts---#
|
||||
bindsym $mod+Shift+s exec flameshot gui
|
||||
|
||||
#---Language---#
|
||||
exec_always setxkbmap -layout us,ru
|
||||
exec_always xkb-switch -s us,ru
|
||||
|
||||
bindsym $mod+space exec xkb-switch -n
|
||||
|
||||
#--Floating togglable windows--#
|
||||
|
||||
# Terminal
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] resize set 825 600
|
||||
for_window [title="dropdown"] move scratchpad
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] border pixel 3
|
||||
exec --no-startup-id alacritty -t dropdown -e tmux
|
||||
bindsym $mod+u [title="dropdown"] scratchpad show; [title="dropdown"] move position center
|
||||
|
||||
# Toggl timer
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] resize set 800 70
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] move scratchpad
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] border pixel 3
|
||||
bindsym $mod+Shift+t [title="@cgDISVMFxT:T | Toggl"] scratchpad show; [title="@cgDISVMFxT:T | Toggl"] move position center
|
||||
exec --no-startup-id surf https://toggl.com/app/timer
|
||||
|
||||
#Emoji
|
||||
bindsym $mod+period exec rofimoji
|
||||
# Usage
|
||||
# Hit enter to insert the emoji directly
|
||||
# Hit alt+c to copy it to the clipboard
|
||||
# alt+t or alt+p can be used to select a specific input method
|
||||
# alt+1 inserts the most recently used character (alt+2 for the second most recently one etc.)
|
||||
|
||||
|
||||
|
||||
|
||||
exec variety
|
||||
exec_always --no-startup-id variety --next
|
||||
|
||||
exec "workspace 6;exec append_layout ~/Scripts/bin/freelances2.json; exec ~/Scripts/bin/freelances"
|
||||
|
2
.config/i3/dotfiles/i3/log.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
2
.config/i3/log.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
58
.config/nvim/autoload/lighline/colorscheme/onedark.vim
Normal file
|
@ -0,0 +1,58 @@
|
|||
" [onedark.vim](https://github.com/joshdick/onedark.vim/)
|
||||
|
||||
" This is a [lightline.vim](https://github.com/itchyny/lightline.vim) colorscheme for use with
|
||||
" the [onedark.vim](https://github.com/joshdick/onedark.vim) colorscheme.
|
||||
|
||||
let s:colors = onedark#GetColors()
|
||||
|
||||
if get(g:, 'onedark_termcolors', 256) == 16
|
||||
let s:term_red = s:colors.red.cterm16
|
||||
let s:term_green = s:colors.green.cterm16
|
||||
let s:term_yellow = s:colors.yellow.cterm16
|
||||
let s:term_blue = s:colors.blue.cterm16
|
||||
let s:term_purple = s:colors.purple.cterm16
|
||||
let s:term_white = s:colors.white.cterm16
|
||||
let s:term_black = s:colors.black.cterm16
|
||||
let s:term_grey = s:colors.cursor_grey.cterm16
|
||||
else
|
||||
let s:term_red = s:colors.red.cterm
|
||||
let s:term_green = s:colors.green.cterm
|
||||
let s:term_yellow = s:colors.yellow.cterm
|
||||
let s:term_blue = s:colors.blue.cterm
|
||||
let s:term_purple = s:colors.purple.cterm
|
||||
let s:term_white = s:colors.white.cterm
|
||||
let s:term_black = s:colors.black.cterm
|
||||
let s:term_grey = s:colors.cursor_grey.cterm
|
||||
endif
|
||||
|
||||
let s:red = [ s:colors.red.gui, s:term_red ]
|
||||
let s:green = [ s:colors.green.gui, s:term_green ]
|
||||
let s:yellow = [ s:colors.yellow.gui, s:term_yellow ]
|
||||
let s:blue = [ s:colors.blue.gui, s:term_blue ]
|
||||
let s:purple = [ s:colors.purple.gui, s:term_purple ]
|
||||
let s:white = [ s:colors.white.gui, s:term_white ]
|
||||
let s:black = [ s:colors.black.gui, s:term_black ]
|
||||
let s:grey = [ s:colors.visual_grey.gui, s:term_grey ]
|
||||
|
||||
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
|
||||
let s:p.normal.left = [ [ s:black, s:green ], [ s:white, s:grey ] ]
|
||||
let s:p.normal.right = [ [ s:black, s:green ], [ s:white, s:grey ] ]
|
||||
let s:p.inactive.left = [ [ s:white, s:grey ], [ s:white, s:grey ] ]
|
||||
let s:p.inactive.right = [ [ s:black, s:white ], [ s:black, s:white ] ]
|
||||
let s:p.insert.left = [ [ s:black, s:blue ], [ s:white, s:grey ] ]
|
||||
let s:p.insert.right = [ [ s:black, s:blue ], [ s:white, s:grey ] ]
|
||||
let s:p.replace.left = [ [ s:black, s:red ], [ s:white, s:grey ] ]
|
||||
let s:p.replace.right = [ [ s:black, s:red ], [ s:white, s:grey ] ]
|
||||
let s:p.visual.left = [ [ s:black, s:purple ], [ s:white, s:grey ] ]
|
||||
let s:p.visual.right = [ [ s:black, s:purple ], [ s:white, s:grey ] ]
|
||||
let s:p.normal.middle = [ [ s:white, s:black ] ]
|
||||
let s:p.inactive.middle = [ [ s:white, s:grey ] ]
|
||||
let s:p.tabline.left = [ [ s:white, s:grey ] ]
|
||||
let s:p.tabline.tabsel = [ [ s:black, s:white ] ]
|
||||
let s:p.tabline.middle = [ [ s:white, s:black ] ]
|
||||
let s:p.tabline.right = [ [ s:white, s:grey ] ]
|
||||
let s:p.normal.error = [ [ s:black, s:red ] ]
|
||||
let s:p.normal.warning = [ [ s:black, s:yellow ] ]
|
||||
|
||||
let g:lightline#colorscheme#onedark#palette = lightline#colorscheme#flatten(s:p)
|
||||
|
118
.config/nvim/init.vim
Normal file
|
@ -0,0 +1,118 @@
|
|||
"
|
||||
"░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█▀▄░█▀▀░█░█
|
||||
"░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░█░█░█▀▀░▀▄▀
|
||||
"░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀▀░░▀▀▀░░▀░
|
||||
"
|
||||
"
|
||||
syntax enable
|
||||
syntax on
|
||||
set nocompatible
|
||||
set relativenumber
|
||||
set nu rnu
|
||||
set wildmenu
|
||||
set mouse=a
|
||||
set noshowmode
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
set expandtab
|
||||
set guifont="Fira Mono for Powerline"\ 14
|
||||
set encoding=UTF-8
|
||||
set path+=**
|
||||
|
||||
|
||||
"---Plugins---"
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'fatih/vim-go', { 'tag': '*' }
|
||||
Plug 'mboughaba/i3config.vim'
|
||||
Plug 'neovimhaskell/haskell-vim'
|
||||
Plug 'gchrisdone/hindent'
|
||||
Plug 'gjaspervdj/stylish-haskell'
|
||||
Plug 'jaspervdj/stylish-haskell'
|
||||
Plug 'chrisdone/hindent'
|
||||
Plug 'dense-analysis/ale'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'phanviet/vim-monokai-pro'
|
||||
Plug 'sonph/onehalf', {'rtp': 'vim/'}
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'ayu-theme/ayu-vim' " or other package manager
|
||||
Plug 'sickill/vim-monokai'
|
||||
Plug 'yarisgutierrez/ayu-lightline'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
||||
Plug 'arcticicestudio/nord-vim'
|
||||
Plug 'autozimu/LanguageClient-neovim'
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'ap/vim-css-color'
|
||||
Plug 'joshdick/onedark.vim'
|
||||
Plug 'dracula/vim'
|
||||
call plug#end()
|
||||
|
||||
aug i3config_ft_detection
|
||||
au!
|
||||
au BufNewFile,BufRead ~/.config/i3/config set filetype=i3config
|
||||
aug end
|
||||
|
||||
if !has('gui_running')
|
||||
set t_Co=256
|
||||
endif
|
||||
let g:molokai_original = 1
|
||||
" ---AirLine--- "
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline#extensions#tabline#left_sep = ' '
|
||||
let g:airline#extensions#tabline#left_alt_sep = '|'
|
||||
|
||||
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
|
||||
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
|
||||
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
|
||||
if (empty($TMUX))
|
||||
if (has("nvim"))
|
||||
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
|
||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
endif
|
||||
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
|
||||
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
|
||||
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
|
||||
if (has("termguicolors"))
|
||||
set termguicolors
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
|
||||
set termguicolors " enable true colors support
|
||||
"let ayucolor="mirage" " for mirage version of theme
|
||||
let ayucolor="dark" " for dark version of theme
|
||||
" colorscheme onedark
|
||||
colorscheme dracula
|
||||
let g:airline_theme='onedark'
|
||||
let g:onedark_terminal_italics = 1
|
||||
|
||||
|
||||
"keybuildings"
|
||||
map <C-o> :NERDTreeToggle<CR>
|
||||
|
||||
|
||||
let g:prettier#config#print_width = 'auto'
|
||||
let g:prettier#config#tab_width = 'auto'
|
||||
let g:prettier#config#use_tabs = 'auto'
|
||||
let g:prettier#config#parser = ''
|
||||
let g:prettier#config#config_precedence = 'file-override'
|
||||
let g:prettier#config#prose_wrap = 'preserve'
|
||||
let g:prettier#config#html_whitespace_sensitivity = 'css'
|
||||
let g:prettier#config#require_pragma = 'false'
|
||||
|
||||
" Prettier
|
||||
let g:prettier#autoformat = 1
|
||||
let g:prettier#exec_cmd_path = "/usr/bin/prettier"
|
||||
let g:prettier#config#trailing_comma = 'none'
|
||||
|
||||
|
||||
"--Ale--"
|
||||
let g:ale_fix_on_save = 1
|
||||
let b:ale_fixers = ['prettier', 'eslint']
|
18
.config/omf/bundle
Normal file
|
@ -0,0 +1,18 @@
|
|||
package archlinux
|
||||
package colored-man-pages
|
||||
package colorman
|
||||
package fuck
|
||||
package vcs
|
||||
theme agnoster
|
||||
theme ays
|
||||
theme batman
|
||||
theme cbjohnson
|
||||
theme chain
|
||||
theme cyan
|
||||
theme default
|
||||
theme krisleech
|
||||
theme lambda
|
||||
theme neolambda
|
||||
theme one
|
||||
theme perryh
|
||||
theme sashimi
|
1
.config/omf/channel
Normal file
|
@ -0,0 +1 @@
|
|||
dev
|
14
.config/omf/functions/__ssh_agent_is_started.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function __ssh_agent_is_started -d "check if ssh agent is already started"
|
||||
if begin; test -f $SSH_ENV; and test -z "$SSH_AGENT_PID"; end
|
||||
source $SSH_ENV > /dev/null
|
||||
end
|
||||
|
||||
if test -z "$SSH_AGENT_PID"
|
||||
return 1
|
||||
end
|
||||
|
||||
ssh-add -l > /dev/null 2>&1
|
||||
if test $status -eq 2
|
||||
return 1
|
||||
end
|
||||
end
|
5
.config/omf/functions/__ssh_agent_start.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
function __ssh_agent_start -d "start a new ssh agent"
|
||||
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
|
||||
chmod 600 $SSH_ENV
|
||||
source $SSH_ENV > /dev/null
|
||||
end
|
106
.config/omf/init.fish
Normal file
|
@ -0,0 +1,106 @@
|
|||
|
||||
function fish_user_key_bindings
|
||||
fish_vi_key_bindings
|
||||
end
|
||||
|
||||
#---startup---#
|
||||
neofetch
|
||||
ssh-add ~/.ssh/arch I
|
||||
|
||||
|
||||
function __ssh_agent_start -d "start a new ssh agent"
|
||||
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
|
||||
chmod 600 $SSH_ENV
|
||||
source $SSH_ENV > /dev/null
|
||||
end
|
||||
|
||||
function __ssh_agent_is_started -d "check if ssh agent is already started"
|
||||
if begin; test -f $SSH_ENV; and test -z "$SSH_AGENT_PID"; end
|
||||
source $SSH_ENV > /dev/null
|
||||
end
|
||||
|
||||
if test -z "$SSH_AGENT_PID"
|
||||
return 1
|
||||
end
|
||||
|
||||
ssh-add -l > /dev/null 2>&1
|
||||
if test $status -eq 2
|
||||
return 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if test -z "$SSH_ENV"
|
||||
set -xg SSH_ENV $HOME/.ssh/environment
|
||||
end
|
||||
|
||||
if not __ssh_agent_is_started
|
||||
__ssh_agent_start
|
||||
end
|
||||
|
||||
# exec ssh-add ~/.ssh/arch
|
||||
|
||||
#---vim---#
|
||||
alias vim nvim
|
||||
alias vi "/bin/vim"
|
||||
|
||||
#---configs---#
|
||||
alias i3cfg "vim ~/.config/i3/config"
|
||||
alias pbcfg "vim ~/.config/polybar/config.ini"
|
||||
alias compfg "vim ~/.config/compton/compton.conf"
|
||||
alias alacfg "vim ~/.config/alacritty/alacritty.yml"
|
||||
alias fishcfg "vim ~/.config/omf/init.fish"
|
||||
alias fishf "vim ~/.config/omf/init.fish"
|
||||
alias vicfg "vim ~/.config/nvim/init.vim"
|
||||
alias zshcfg "vim ~/.zshrc"
|
||||
alias dev-ankilan "tmux at -t ankilan"
|
||||
alias firefox firefox-developer-edition
|
||||
alias vim1 "alacritty -e nvim"
|
||||
alias gc "git clone"
|
||||
alias gp "ssh-add ~/.ssh/arch; git push"
|
||||
alias clj "clojure"
|
||||
|
||||
set TERMINAL st
|
||||
|
||||
|
||||
set -U fish_cursor_normal block
|
||||
set -U fish_cursor_insert line
|
||||
set -U fish_cursor_replace_one underscore
|
||||
|
||||
function fish_user_key_bindings
|
||||
# Execute this once per mode that emacs bindings should be used in
|
||||
fish_default_key_bindings -M insert
|
||||
# Without an argument, fish_vi_key_bindings will default to
|
||||
# resetting all bindings.
|
||||
# The argument specifies the initial mode (insert, "default" or visual).
|
||||
fish_vi_key_bindings insert
|
||||
end
|
||||
|
||||
|
||||
|
||||
function fish_mode_prompt
|
||||
end
|
||||
|
||||
function fish_right_prompt -d "Write out the right prompt"
|
||||
switch $fish_bind_mode
|
||||
case default
|
||||
set_color --bold red
|
||||
echo 'N'
|
||||
case insert
|
||||
set_color --bold green
|
||||
echo 'I'
|
||||
case replace_one
|
||||
set_color --bold yellow
|
||||
echo 'R'
|
||||
case visual
|
||||
set_color --bold brmagenta
|
||||
echo 'V'
|
||||
case '*'
|
||||
set_color --bold red
|
||||
echo '?'
|
||||
end
|
||||
set_color normal
|
||||
end
|
||||
|
||||
|
||||
|
1
.config/omf/theme
Normal file
|
@ -0,0 +1 @@
|
|||
agnoster
|
481
.config/picom/picom.conf
Normal file
|
@ -0,0 +1,481 @@
|
|||
#################################
|
||||
# Shadows #
|
||||
#################################
|
||||
|
||||
|
||||
# Enabled client-side shadows on windows. Note desktop windows
|
||||
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
|
||||
# unless explicitly requested using the wintypes option.
|
||||
#
|
||||
# shadow = false
|
||||
shadow = true;
|
||||
|
||||
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||
# shadow-radius = 12
|
||||
shadow-radius = 14;
|
||||
|
||||
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||
shadow-opacity = 0.75
|
||||
|
||||
# The left offset for shadows, in pixels. (defaults to -15)
|
||||
# shadow-offset-x = -15
|
||||
shadow-offset-x = -15;
|
||||
|
||||
# The top offset for shadows, in pixels. (defaults to -15)
|
||||
# shadow-offset-y = -15
|
||||
shadow-offset-y = -10;
|
||||
|
||||
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
|
||||
# you should use the *wintypes* option in your config file instead.
|
||||
#
|
||||
# no-dock-shadow = false
|
||||
|
||||
# Don't draw shadows on drag-and-drop windows. This option is deprecated,
|
||||
# you should use the *wintypes* option in your config file instead.
|
||||
#
|
||||
# no-dnd-shadow = false
|
||||
|
||||
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-red = 0
|
||||
|
||||
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-green = 0
|
||||
|
||||
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||
# shadow-blue = 0
|
||||
|
||||
# Do not paint shadows on shaped windows. Note shaped windows
|
||||
# here means windows setting its shape through X Shape extension.
|
||||
# Those using ARGB background is beyond our control.
|
||||
# Deprecated, use
|
||||
# shadow-exclude = 'bounding_shaped'
|
||||
# or
|
||||
# shadow-exclude = 'bounding_shaped && !rounded_corners'
|
||||
# instead.
|
||||
#
|
||||
# shadow-ignore-shaped = ''
|
||||
|
||||
# Specify a list of conditions of windows that should have no shadow.
|
||||
#
|
||||
# examples:
|
||||
# shadow-exclude = "n:e:Notification";
|
||||
#
|
||||
# shadow-exclude = []
|
||||
shadow-exclude = [
|
||||
#"name = 'Notification'",
|
||||
"name = 'Polybar tray window'",
|
||||
"name = 'xmobar'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
# Specify a X geometry that describes the region in which shadow should not
|
||||
# be painted in, such as a dock window region. Use
|
||||
# shadow-exclude-reg = "x10+0+0"
|
||||
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
|
||||
#
|
||||
# shadow-exclude-reg = ""
|
||||
|
||||
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
|
||||
# xinerama-shadow-crop = false
|
||||
|
||||
|
||||
#################################
|
||||
# Fading #
|
||||
#################################
|
||||
|
||||
|
||||
# Fade windows in/out when opening/closing and when opacity changes,
|
||||
# unless no-fading-openclose is used.
|
||||
# fading = false
|
||||
fading = false
|
||||
|
||||
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
||||
# fade-in-step = 0.028
|
||||
fade-in-step = 0.03;
|
||||
|
||||
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
||||
# fade-out-step = 0.03
|
||||
fade-out-step = 0.03;
|
||||
|
||||
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
||||
# fade-delta = 10
|
||||
|
||||
# Specify a list of conditions of windows that should not be faded.
|
||||
# fade-exclude = []
|
||||
|
||||
# Do not fade on window open/close.
|
||||
# no-fading-openclose = false
|
||||
|
||||
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
|
||||
# no-fading-destroyed-argb = false
|
||||
|
||||
|
||||
#################################
|
||||
# Transparency / Opacity #
|
||||
#################################
|
||||
|
||||
|
||||
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
|
||||
# inactive-opacity = 1
|
||||
inactive-opacity = 1;
|
||||
|
||||
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||
# frame-opacity = 1.0
|
||||
frame-opacity = 1;
|
||||
|
||||
# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0)
|
||||
# menu-opacity = 1.0
|
||||
|
||||
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
|
||||
# inactive-opacity-override = true
|
||||
inactive-opacity-override = false;
|
||||
|
||||
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
|
||||
# active-opacity = 1.0
|
||||
|
||||
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
|
||||
inactive-dim = 0
|
||||
|
||||
# Specify a list of conditions of windows that should always be considered focused.
|
||||
# focus-exclude = []
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||
|
||||
# Use fixed inactive dim value, instead of adjusting according to window opacity.
|
||||
# inactive-dim-fixed = 1.0
|
||||
|
||||
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
||||
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
||||
# Note we don't make any guarantee about possible conflicts with other
|
||||
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
||||
# example:
|
||||
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||
#
|
||||
opacity-rule = [
|
||||
"95:class_g = 'Alacritty'",
|
||||
"95:class_g = 'Emacs'",
|
||||
"95:class_g *= 'alacritty'",
|
||||
"90:class_g *= 'emacs'",
|
||||
"95:name *= 'alacritty'",
|
||||
"90:name *= 'emacs'",
|
||||
"85:name *= 'xmobar'"
|
||||
]
|
||||
|
||||
|
||||
#################################
|
||||
# Background-Blurring #
|
||||
#################################
|
||||
blur:
|
||||
{
|
||||
method = "dual_kawase";
|
||||
size = 10;
|
||||
deviation = 2.0;
|
||||
};
|
||||
|
||||
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||
#blur-method = dual_kawase
|
||||
#blur-size = 12
|
||||
#
|
||||
#blur-deviation = true
|
||||
|
||||
# Blur background of semi-transparent / ARGB windows.
|
||||
# Bad in performance, with driver-dependent behavior.
|
||||
# The name of the switch may change without prior notifications.
|
||||
#
|
||||
# blur-background = false
|
||||
|
||||
# Blur background of windows when the window frame is not opaque.
|
||||
# Implies:
|
||||
# blur-background
|
||||
# Bad in performance, with driver-dependent behavior. The name may change.
|
||||
#
|
||||
# blur-background-frame = false
|
||||
|
||||
|
||||
# Use fixed blur strength rather than adjusting according to window opacity.
|
||||
# blur-background-fixed = false
|
||||
|
||||
|
||||
# Specify the blur convolution kernel, with the following format:
|
||||
# example:
|
||||
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||
#
|
||||
# blur-kern = ''
|
||||
blur-kern = "3x3box";
|
||||
|
||||
|
||||
# Exclude conditions for background blur.
|
||||
# blur-background-exclude = []
|
||||
blur-background-exclude = [
|
||||
# "window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
#################################
|
||||
# General Settings #
|
||||
#################################
|
||||
|
||||
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||
# daemon = false
|
||||
|
||||
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
|
||||
# `xrender` is the default one.
|
||||
#
|
||||
# backend = 'glx'
|
||||
backend = "glx";
|
||||
|
||||
# Enable/disable VSync.
|
||||
# vsync = false
|
||||
vsync = false
|
||||
|
||||
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||
# dbus = false
|
||||
|
||||
# Try to detect WM windows (a non-override-redirect window with no
|
||||
# child that has 'WM_STATE') and mark them as active.
|
||||
#
|
||||
# mark-wmwin-focused = false
|
||||
mark-wmwin-focused = true;
|
||||
|
||||
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||
# mark-ovredir-focused = false
|
||||
mark-ovredir-focused = true;
|
||||
|
||||
# Try to detect windows with rounded corners and don't consider them
|
||||
# shaped windows. The accuracy is not very high, unfortunately.
|
||||
#
|
||||
# detect-rounded-corners = false
|
||||
detect-rounded-corners = true;
|
||||
corner-radius = 5
|
||||
|
||||
rounded-corners-exclude = [
|
||||
"name = 'xmobar'",
|
||||
]
|
||||
|
||||
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
||||
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
||||
#
|
||||
# detect-client-opacity = false
|
||||
detect-client-opacity = true;
|
||||
|
||||
# Specify refresh rate of the screen. If not specified or 0, picom will
|
||||
# try detecting this with X RandR extension.
|
||||
#
|
||||
# refresh-rate = 60
|
||||
refresh-rate = 0
|
||||
|
||||
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||
# boost performance. This should not be used with
|
||||
# vsync drm/opengl/opengl-oml
|
||||
# as they essentially does sw-opti's job already,
|
||||
# unless you wish to specify a lower refresh rate than the actual value.
|
||||
#
|
||||
# sw-opti =
|
||||
|
||||
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||
# provided that the WM supports it.
|
||||
#
|
||||
# use-ewmh-active-win = false
|
||||
|
||||
# Unredirect all windows if a full-screen opaque window is detected,
|
||||
# to maximize performance for full-screen windows. Known to cause flickering
|
||||
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
|
||||
#
|
||||
unredir-if-possible = false
|
||||
|
||||
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||
# unredir-if-possible-delay = 0
|
||||
|
||||
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||
# unredir-if-possible-exclude = []
|
||||
|
||||
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||
# in the same group focused at the same time.
|
||||
#
|
||||
# detect-transient = false
|
||||
detect-transient = true
|
||||
|
||||
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||
# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
|
||||
# detect-transient is enabled, too.
|
||||
#
|
||||
# detect-client-leader = false
|
||||
detect-client-leader = true
|
||||
|
||||
# Resize damaged region by a specific number of pixels.
|
||||
# A positive value enlarges it while a negative one shrinks it.
|
||||
# If the value is positive, those additional pixels will not be actually painted
|
||||
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||
# Primarily used to fix the line corruption issues of blur,
|
||||
# in which case you should use the blur radius value here
|
||||
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||
#
|
||||
# resize-damage = 1
|
||||
|
||||
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||
# Resource-hogging, and is not well tested.
|
||||
#
|
||||
# invert-color-include = []
|
||||
|
||||
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||
# Might cause incorrect opacity when rendering transparent content (but never
|
||||
# practically happened) and may not work with blur-background.
|
||||
# My tests show a 15% performance boost. Recommended.
|
||||
#
|
||||
# glx-no-stencil = false
|
||||
|
||||
# GLX backend: Avoid rebinding pixmap on window damage.
|
||||
# Probably could improve performance on rapid window content changes,
|
||||
# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
|
||||
# Recommended if it works.
|
||||
#
|
||||
# glx-no-rebind-pixmap = false
|
||||
|
||||
# Disable the use of damage information.
|
||||
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
|
||||
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||
# The opposing option is use-damage
|
||||
#
|
||||
# no-use-damage = false
|
||||
use-damage = true
|
||||
|
||||
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||
# with GLX backend for some users.
|
||||
#
|
||||
# xrender-sync-fence = false
|
||||
|
||||
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
|
||||
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
|
||||
# in the source tree for examples.
|
||||
#
|
||||
# glx-fshader-win = ''
|
||||
|
||||
# Force all windows to be painted with blending. Useful if you
|
||||
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||
#
|
||||
# force-win-blend = false
|
||||
|
||||
# Do not use EWMH to detect fullscreen windows.
|
||||
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||
#
|
||||
# no-ewmh-fullscreen = false
|
||||
|
||||
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||
# so this could comes with a performance hit.
|
||||
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||
#
|
||||
# max-brightness = 1.0
|
||||
|
||||
# Make transparent windows clip other windows like non-transparent windows do,
|
||||
# instead of blending on top of them.
|
||||
#
|
||||
# transparent-clipping = false
|
||||
|
||||
# Set the log level. Possible values are:
|
||||
# "trace", "debug", "info", "warn", "error"
|
||||
# in increasing level of importance. Case doesn't matter.
|
||||
# If using the "TRACE" log level, it's better to log into a file
|
||||
# using *--log-file*, since it can generate a huge stream of logs.
|
||||
#
|
||||
# log-level = "debug"
|
||||
log-level = "warn";
|
||||
|
||||
# Set the log file.
|
||||
# If *--log-file* is never specified, logs will be written to stderr.
|
||||
# Otherwise, logs will to written to the given file, though some of the early
|
||||
# logs might still be written to the stderr.
|
||||
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||
#
|
||||
#log-file = '/path/to/your/log/file'
|
||||
|
||||
# Show all X errors (for debugging)
|
||||
# show-all-xerrors = false
|
||||
|
||||
# Write process ID to a file.
|
||||
# write-pid-path = '/path/to/your/log/file'
|
||||
|
||||
# Window type settings
|
||||
#
|
||||
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||
# "tooltip", "notification", "combo", and "dnd".
|
||||
#
|
||||
# Following per window-type options are available: ::
|
||||
#
|
||||
# fade, shadow:::
|
||||
# Controls window-type-specific shadow and fade settings.
|
||||
#
|
||||
# opacity:::
|
||||
# Controls default opacity of the window type.
|
||||
#
|
||||
# focus:::
|
||||
# Controls whether the window of this type is to be always considered focused.
|
||||
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||
#
|
||||
# full-shadow:::
|
||||
# Controls whether shadow is drawn under the parts of the window that you
|
||||
# normally won't be able to see. Useful when the window has parts of it
|
||||
# transparent, and you want shadows in those areas.
|
||||
#
|
||||
# redir-ignore:::
|
||||
# Controls whether this type of windows should cause screen to become
|
||||
# redirected again after been unredirected. If you have unredir-if-possible
|
||||
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||
# you can set this to `true`.
|
||||
#
|
||||
|
||||
wintypes:
|
||||
{
|
||||
tooltip = {
|
||||
# fade: Fade the particular type of windows.
|
||||
fade = false;
|
||||
# shadow: Give those windows shadow
|
||||
shadow = true;
|
||||
# opacity: Default opacity for the type of windows.
|
||||
opacity = 0.85;
|
||||
# focus: Whether to always consider windows of this type focused.
|
||||
focus = true;
|
||||
};
|
||||
|
||||
dock = {
|
||||
full-shadow = true;
|
||||
opacity = 0.85;
|
||||
}
|
||||
|
||||
dnd = {
|
||||
shadow = false;
|
||||
}
|
||||
|
||||
popup_menu = {
|
||||
full-shaodw = false;
|
||||
opacity = 0.5;
|
||||
}
|
||||
|
||||
dropdown_menu = {
|
||||
full-shaodw = false;
|
||||
opacity = 0.3;
|
||||
}
|
||||
|
||||
notification = {
|
||||
# fade: Fade the particular type of windows.
|
||||
fade = true;
|
||||
# shadow: Give those windows shadow
|
||||
shadow = true;
|
||||
# opacity: Default opacity for the type of windows.
|
||||
opacity = 0.8;
|
||||
# focus: Whether to always consider windows of this type focused.
|
||||
focus = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
117
.config/picom/picom.conf_
Normal file
|
@ -0,0 +1,117 @@
|
|||
# Shadow
|
||||
shadow = true;
|
||||
# no-dnd-shadow = true;
|
||||
no-dock-shadow = true;
|
||||
clear-shadow = true;
|
||||
detect-rounded-corners = true;
|
||||
shadow-radius = 5;
|
||||
shadow-offset-x = 1;
|
||||
shadow-offset-y = 1;
|
||||
shadow-opacity = .3;
|
||||
shadow-ignore-shaped = false;
|
||||
shadow-exclude = [
|
||||
"name = 'Notification'",
|
||||
# workaround for conky until it provides window properties:
|
||||
"override_redirect = 1 && !WM_CLASS@:s",
|
||||
"class_g ?= 'Dmenu'",
|
||||
# "class_g ?= 'Dunst'",
|
||||
# disable shadows for hidden windows:
|
||||
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
# disables shadows on sticky windows:
|
||||
# "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
|
||||
# disables shadows on i3 frames
|
||||
"class_g ?= 'i3-frame'"
|
||||
];
|
||||
|
||||
# shadow-exclude-reg = "x10+0+0";
|
||||
# xinerama-shadow-crop = true;
|
||||
|
||||
#menu-opacity = 0.95;
|
||||
#inactive-opacity = 0.93;
|
||||
#active-opacity = 1;
|
||||
#alpha-step = 0.01;
|
||||
#inactive-dim = 0.0;
|
||||
#blur-background = false;
|
||||
#blur-kern = "3x3box";
|
||||
|
||||
fading = false;
|
||||
fade-delta = 1;
|
||||
fade-in-step = 0.5;
|
||||
fade-out-step = 0.5;
|
||||
fade-exclude = [ ];
|
||||
|
||||
backend = "glx";
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
detect-client-opacity = true;
|
||||
unredir-if-possible = true;
|
||||
refresh-rate = 0;
|
||||
vsync = "opengl";
|
||||
dbe = false;
|
||||
paint-on-overlay = true;
|
||||
# focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
invert-color-include = [ ];
|
||||
glx-copy-from-front = false;
|
||||
glx-swap-method = "undefined";
|
||||
|
||||
opacity-rule = [
|
||||
#"99:name *?= 'Call'",
|
||||
#"99:class_g = 'Chromium'",
|
||||
#"99:name *?= 'Conky'",
|
||||
#"99:class_g = 'Darktable'",
|
||||
#"50:class_g = 'Dmenu'",
|
||||
#"99:name *?= 'Event'",
|
||||
#"99:class_g = 'Firefox'",
|
||||
#"99:class_g = 'GIMP'",
|
||||
#"99:name *?= 'Image'",
|
||||
#"99:class_g = 'Lazpaint'",
|
||||
#"99:class_g = 'Midori'",
|
||||
#"99:name *?= 'Minitube'",
|
||||
#"99:class_g = 'Mousepad'",
|
||||
#"99:name *?= 'MuseScore'",
|
||||
#"90:name *?= 'Page Info'",
|
||||
#"99:name *?= 'Pale Moon'",
|
||||
#"90:name *?= 'Panel'",
|
||||
#"99:class_g = 'Pinta'",
|
||||
#"90:name *?= 'Restart'",
|
||||
#"99:name *?= 'sudo'",
|
||||
#"99:name *?= 'Screenshot'",
|
||||
#"99:class_g = 'Viewnior'",
|
||||
#"99:class_g = 'VirtualBox'",
|
||||
#"99:name *?= 'VLC'",
|
||||
#"99:name *?= 'Write'",
|
||||
#"93:class_g = 'URxvt' && !_NET_WM_STATE@:32a",
|
||||
"80:class_g = 'termite'",
|
||||
"80:name *?= 'Simplenote'",
|
||||
#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
|
||||
#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
|
||||
];
|
||||
|
||||
blur: {
|
||||
method = "kawase";
|
||||
strength = 5;
|
||||
background = false;
|
||||
background-frame = false;
|
||||
background-fixed = false;
|
||||
}
|
||||
|
||||
wintypes :
|
||||
{
|
||||
tooltip :
|
||||
{
|
||||
fade = false;
|
||||
shadow = false;
|
||||
opacity = 0.7;
|
||||
focus = true;
|
||||
};
|
||||
fullscreen :
|
||||
{
|
||||
fade = false;
|
||||
shadow = false;
|
||||
opacity = 0.7;
|
||||
focus = true;
|
||||
};
|
||||
};
|
431
.config/polybar/bars.ini
Normal file
|
@ -0,0 +1,431 @@
|
|||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;;
|
||||
;; ____
|
||||
;; / __ )____ ___________
|
||||
;; / __ / __ `/ ___/ ___/
|
||||
;; / /_/ / /_/ / / (__ )
|
||||
;; /_____/\__,_/_/ /____/
|
||||
;;
|
||||
;; Created By Aditya Shakya @adi1090x
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/volume]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <bar-volume>
|
||||
format-volume-background = ${color.mf}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
format-muted = <label-muted>
|
||||
format-muted-background = ${color.mf}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = "Muted"
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-gradient = false
|
||||
|
||||
bar-volume-indicator =
|
||||
bar-volume-indicator-foreground = ${color.fg}
|
||||
bar-volume-indicator-font = 2
|
||||
|
||||
bar-volume-fill = ━
|
||||
bar-volume-foreground-0 = ${color.bn}
|
||||
bar-volume-foreground-1 = ${color.bn}
|
||||
bar-volume-foreground-2 = ${color.bn}
|
||||
bar-volume-foreground-3 = ${color.bn}
|
||||
bar-volume-foreground-4 = ${color.bm}
|
||||
bar-volume-foreground-5 = ${color.bm}
|
||||
bar-volume-foreground-6 = ${color.bm}
|
||||
bar-volume-foreground-7 = ${color.bd}
|
||||
bar-volume-foreground-8 = ${color.bd}
|
||||
bar-volume-fill-font = 2
|
||||
|
||||
bar-volume-empty = ┉
|
||||
bar-volume-empty-foreground = ${color.fg}
|
||||
bar-volume-empty-font = 2
|
||||
|
||||
[module/volume_i]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <ramp-volume>
|
||||
format-volume-background = ${color.blue}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
format-muted-background = ${color.blue}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
label-muted = ""
|
||||
label-muted-foreground = ${color.fg}
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
ramp-volume-4 =
|
||||
ramp-headphones-0 =
|
||||
ramp-headphones-1 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/brightness]
|
||||
type = internal/xbacklight
|
||||
|
||||
card = intel_backlight
|
||||
|
||||
format = <bar>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
bar-width = 10
|
||||
bar-gradient = false
|
||||
|
||||
bar-indicator =
|
||||
bar-indicator-foreground = ${color.mf}
|
||||
bar-indicator-font = 2
|
||||
|
||||
bar-fill = ━
|
||||
bar-foreground-0 = ${color.bn}
|
||||
bar-foreground-1 = ${color.bn}
|
||||
bar-foreground-2 = ${color.bn}
|
||||
bar-foreground-3 = ${color.bm}
|
||||
bar-foreground-4 = ${color.bm}
|
||||
bar-foreground-5 = ${color.bd}
|
||||
bar-foreground-6 = ${color.bd}
|
||||
bar-foreground-7 = ${color.bd}
|
||||
bar-foreground-8 = ${color.bd}
|
||||
bar-fill-font = 2
|
||||
|
||||
bar-empty = ┉
|
||||
bar-empty-foreground = ${color.fg}
|
||||
bar-empty-font = 2
|
||||
|
||||
[module/brightness_i]
|
||||
type = internal/xbacklight
|
||||
|
||||
card = intel_backlight
|
||||
|
||||
format = <ramp>
|
||||
format-background = ${color.lime}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-3 =
|
||||
ramp-4 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/battery_bar]
|
||||
type = internal/battery
|
||||
|
||||
full-at = 99
|
||||
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
|
||||
poll-interval = 2
|
||||
time-format = %H:%M
|
||||
|
||||
format-charging = <bar-capacity>
|
||||
format-charging-background = ${color.mf}
|
||||
format-charging-foreground = ${color.fg}
|
||||
format-charging-padding = 1
|
||||
|
||||
format-discharging = <bar-capacity>
|
||||
format-discharging-background = ${color.mf}
|
||||
format-discharging-foreground = ${color.fg}
|
||||
format-discharging-padding = 1
|
||||
|
||||
label-full = Fully Charged
|
||||
label-full-foreground = ${color.fg}
|
||||
label-full-background = ${color.mf}
|
||||
label-full-padding = 1
|
||||
|
||||
bar-capacity-width = 10
|
||||
bar-capacity-gradient = false
|
||||
|
||||
bar-capacity-indicator =
|
||||
bar-capacity-indicator-foreground = ${color.fg}
|
||||
bar-capacity-indicator-font = 2
|
||||
|
||||
bar-capacity-fill = ━
|
||||
bar-capacity-foreground-0 = ${color.bd}
|
||||
bar-capacity-foreground-1 = ${color.bd}
|
||||
bar-capacity-foreground-2 = ${color.bd}
|
||||
bar-capacity-foreground-3 = ${color.bm}
|
||||
bar-capacity-foreground-4 = ${color.bm}
|
||||
bar-capacity-foreground-5 = ${color.bm}
|
||||
bar-capacity-foreground-6 = ${color.bm}
|
||||
bar-capacity-foreground-7 = ${color.bn}
|
||||
bar-capacity-foreground-8 = ${color.bn}
|
||||
bar-capacity-fill-font = 2
|
||||
|
||||
bar-capacity-empty = ┉
|
||||
bar-capacity-empty-foreground = ${color.fg}
|
||||
bar-capacity-empty-font = 2
|
||||
|
||||
[module/battery_bar_i]
|
||||
type = internal/battery
|
||||
|
||||
full-at = 99
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
|
||||
poll-interval = 2
|
||||
|
||||
time-format = %H:%M
|
||||
|
||||
format-charging = <animation-charging>
|
||||
format-charging-background = ${color.green}
|
||||
format-charging-foreground = ${color.fg}
|
||||
format-charging-padding = 1
|
||||
|
||||
format-discharging = <ramp-capacity>
|
||||
format-discharging-background = ${color.pink}
|
||||
format-discharging-foreground = ${color.fg}
|
||||
format-discharging-padding = 1
|
||||
|
||||
label-charging = %percentage%%
|
||||
label-discharging = %percentage%%
|
||||
|
||||
label-full =
|
||||
label-full-background = ${color.green}
|
||||
label-full-foreground = ${color.fg}
|
||||
label-full-padding = 1
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
|
||||
animation-charging-framerate = 750
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/cpu_bar]
|
||||
type = internal/cpu
|
||||
|
||||
interval = 0.5
|
||||
|
||||
format = <bar-load> <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = "%percentage%%"
|
||||
|
||||
bar-load-width = 10
|
||||
bar-load-gradient = false
|
||||
|
||||
bar-load-indicator =
|
||||
bar-load-indicator-foreground = ${color.fg}
|
||||
bar-load-indicator-font = 2
|
||||
|
||||
bar-load-fill = ━
|
||||
bar-load-foreground-0 = ${color.bn}
|
||||
bar-load-foreground-1 = ${color.bn}
|
||||
bar-load-foreground-2 = ${color.bn}
|
||||
bar-load-foreground-3 = ${color.bm}
|
||||
bar-load-foreground-4 = ${color.bm}
|
||||
bar-load-foreground-5 = ${color.bm}
|
||||
bar-load-foreground-6 = ${color.bd}
|
||||
bar-load-foreground-7 = ${color.bd}
|
||||
bar-load-foreground-8 = ${color.bd}
|
||||
bar-load-fill-font = 2
|
||||
|
||||
bar-load-empty = ┉
|
||||
bar-load-empty-foreground = ${color.fg}
|
||||
bar-load-empty-font = 2
|
||||
|
||||
[module/cpu_bar_i]
|
||||
type = internal/cpu
|
||||
|
||||
interval = 0.5
|
||||
|
||||
format =
|
||||
format-background = ${color.teal}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/filesystem_bar]
|
||||
type = internal/fs
|
||||
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = false
|
||||
|
||||
format-mounted = <bar-used> <label-mounted>
|
||||
format-mounted-background = ${color.mf}
|
||||
format-mounted-foreground = ${color.fg}
|
||||
format-mounted-padding = 1
|
||||
label-mounted = %used%/%total%
|
||||
|
||||
bar-used-width = 10
|
||||
bar-used-gradient = false
|
||||
|
||||
bar-used-indicator =
|
||||
bar-used-indicator-foreground = ${color.fg}
|
||||
bar-used-indicator-font = 2
|
||||
|
||||
bar-used-fill = ━
|
||||
bar-used-foreground-0 = ${color.bn}
|
||||
bar-used-foreground-1 = ${color.bn}
|
||||
bar-used-foreground-2 = ${color.bn}
|
||||
bar-used-foreground-3 = ${color.bn}
|
||||
bar-used-foreground-4 = ${color.bn}
|
||||
bar-used-foreground-5 = ${color.bm}
|
||||
bar-used-foreground-6 = ${color.bm}
|
||||
bar-used-foreground-7 = ${color.bd}
|
||||
bar-used-foreground-8 = ${color.bd}
|
||||
bar-used-fill-font = 2
|
||||
|
||||
bar-used-empty = ┉
|
||||
bar-used-empty-foreground = ${color.fg}
|
||||
bar-used-empty-font = 2
|
||||
|
||||
[module/filesystem_bar_i]
|
||||
type = internal/fs
|
||||
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = true
|
||||
|
||||
format-mounted =
|
||||
format-mounted-background = ${color.green}
|
||||
format-mounted-foreground = ${color.fg}
|
||||
format-mounted-padding = 1
|
||||
|
||||
format-unmounted =
|
||||
format-unmounted-background = ${color.red}
|
||||
format-unmounted-foreground = ${color.fg}
|
||||
format-unmounted-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/memory_bar]
|
||||
type = internal/memory
|
||||
|
||||
interval = 2
|
||||
|
||||
format = <bar-used> <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = "%mb_used%"
|
||||
|
||||
bar-used-width = 10
|
||||
bar-used-gradient = false
|
||||
|
||||
bar-used-indicator =
|
||||
bar-used-indicator-foreground = ${color.fg}
|
||||
bar-used-indicator-font = 2
|
||||
|
||||
bar-used-fill = ━
|
||||
bar-used-foreground-0 = ${color.bn}
|
||||
bar-used-foreground-1 = ${color.bn}
|
||||
bar-used-foreground-2 = ${color.bn}
|
||||
bar-used-foreground-3 = ${color.bm}
|
||||
bar-used-foreground-4 = ${color.bm}
|
||||
bar-used-foreground-5 = ${color.bm}
|
||||
bar-used-foreground-6 = ${color.bd}
|
||||
bar-used-foreground-7 = ${color.bd}
|
||||
bar-used-foreground-8 = ${color.bd}
|
||||
bar-used-fill-font = 2
|
||||
|
||||
bar-used-empty = ┉
|
||||
bar-used-empty-foreground = ${color.fg}
|
||||
bar-used-empty-font = 2
|
||||
|
||||
[module/memory_bar_i]
|
||||
type = internal/memory
|
||||
|
||||
interval = 3
|
||||
|
||||
format =
|
||||
format-background = ${color.brown}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/mpd_bar]
|
||||
type = internal/mpd
|
||||
|
||||
interval = 1
|
||||
|
||||
format-online = <label-song> <bar-progress> <label-time>
|
||||
format-online-background = ${color.mf}
|
||||
format-online-padding = 1
|
||||
|
||||
label-song = "%title%"
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
label-offline = "mpd is offline"
|
||||
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-stop =
|
||||
icon-prev =
|
||||
icon-next =
|
||||
|
||||
bar-progress-width = 10
|
||||
bar-progress-gradient = true
|
||||
|
||||
bar-progress-indicator =
|
||||
bar-progress-indicator-foreground = ${color.fg}
|
||||
bar-progress-indicator-font = 2
|
||||
|
||||
bar-progress-fill = ━
|
||||
bar-progress-foreground-0 = ${color.bn}
|
||||
bar-progress-foreground-1 = ${color.bn}
|
||||
bar-progress-foreground-2 = ${color.bn}
|
||||
bar-progress-foreground-3 = ${color.bm}
|
||||
bar-progress-foreground-4 = ${color.bm}
|
||||
bar-progress-foreground-5 = ${color.bm}
|
||||
bar-progress-foreground-6 = ${color.bd}
|
||||
bar-progress-foreground-7 = ${color.bd}
|
||||
bar-progress-foreground-8 = ${color.bd}
|
||||
bar-progress-fill-font = 2
|
||||
|
||||
bar-progress-empty = ┉
|
||||
bar-progress-empty-foreground = ${color.fg}
|
||||
bar-progress-empty-font = 2
|
||||
|
||||
[module/mpd_bar_i]
|
||||
type = internal/mpd
|
||||
interval = 2
|
||||
|
||||
format-online = <toggle>
|
||||
format-online-background = ${color.red}
|
||||
format-online-padding = 1
|
||||
icon-play =
|
||||
icon-pause =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;; __________ ______
|
||||
;; / ____/ __ \/ ____/
|
||||
;; / __/ / / / / /_
|
||||
;; / /___/ /_/ / __/
|
||||
;; /_____/\____/_/
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
75
.config/polybar/colors.ini
Normal file
|
@ -0,0 +1,75 @@
|
|||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;;
|
||||
;; ______ __
|
||||
;; / ____/___ / /___ __________
|
||||
;; / / / __ \/ / __ \/ ___/ ___/
|
||||
;; / /___/ /_/ / / /_/ / / (__ )
|
||||
;; \____/\____/_/\____/_/ /____/
|
||||
;;
|
||||
;; Created By Aditya Shakya @adi1090x
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[color]
|
||||
|
||||
;; Active Colors
|
||||
bg = #f0282a36
|
||||
fg = #d8dee9
|
||||
fg-alt = #d8dee9
|
||||
#mf = #4c566a
|
||||
mf = #f0282a36
|
||||
# mf = #3b4252
|
||||
ac = #3b4252
|
||||
|
||||
;; Bars
|
||||
bn = #a3be8c
|
||||
bm = #d08770
|
||||
bd = #bf616a
|
||||
|
||||
trans = #00000000
|
||||
white = #FFFFFF
|
||||
black = #000000
|
||||
|
||||
;; Colors
|
||||
|
||||
# red = #ff5555
|
||||
# pink = #ff79c6
|
||||
# purple =#bd93f9
|
||||
# blue = #6272a4
|
||||
# cyan = #8be9fd
|
||||
# teal = #81a1c1k
|
||||
# green = #50fa7b
|
||||
# lime = #a3be8c
|
||||
# yellow = #f1fa8c
|
||||
# amber = #d08779
|
||||
# orange = #ffb86c
|
||||
# brown = #AC8476
|
||||
# grey = #8C8C8C
|
||||
# indigo = #6C77BB
|
||||
# blue-gray = #6D8895
|
||||
|
||||
|
||||
red = #ff5555
|
||||
pink = #44475a
|
||||
purple =#44475a
|
||||
blue = #44475a
|
||||
cyan = #ff5555
|
||||
teal = #44475a
|
||||
green = #44475a
|
||||
lime = #44475a
|
||||
yellow = #44475a
|
||||
amber = #44475a
|
||||
orange = #44475a
|
||||
brown = #44475a
|
||||
grey = #44475a
|
||||
indigo = #44475a
|
||||
blue-gray = #44475a
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;; __________ ______
|
||||
;; / ____/ __ \/ ____/
|
||||
;; / __/ / / / / /_
|
||||
;; / /___/ /_/ / __/
|
||||
;; /_____/\____/_/
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
460
.config/polybar/config.ini
Normal file
|
@ -0,0 +1,460 @@
|
|||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;;
|
||||
;; ____ __ __
|
||||
;; / __ \____ / /_ __/ /_ ____ ______
|
||||
;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
|
||||
;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
|
||||
;; /_/ \____/_/\__, /_.___/\__,_/_/
|
||||
;; /____/
|
||||
;;
|
||||
;; Created By Aditya Shakya @adi1090x
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;; Global WM Settings
|
||||
|
||||
[global/wm]
|
||||
; Adjust the _NET_WM_STRUT_PARTIAL top value
|
||||
; Used for top aligned bars
|
||||
margin-bottom = 0
|
||||
|
||||
; Adjust the _NET_WM_STRUT_PARTIAL bottom value
|
||||
; Used for bottom aligned bars
|
||||
margin-top = 0
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;; File Inclusion
|
||||
; include an external file, like module file, etc.
|
||||
|
||||
include-file = ~/.config/polybar/colors.ini
|
||||
include-file = ~/.config/polybar/modules.ini
|
||||
include-file = ~/.config/polybar/user_modules.ini
|
||||
include-file = ~/.config/polybar/bars.ini
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;; Bar Settings
|
||||
|
||||
[bar/main]
|
||||
; Use either of the following command to list available outputs:
|
||||
; If unspecified, the application will pick the first one it finds.
|
||||
; $ polybar -m | cut -d ':' -f 1
|
||||
; $ xrandr -q | grep " connected" | cut -d ' ' -f1
|
||||
monitor = eDP-1
|
||||
|
||||
; Use the specified monitor as a fallback if the main one is not found.
|
||||
monitor-fallback =
|
||||
|
||||
; Require the monitor to be in connected state
|
||||
; XRandR sometimes reports my monitor as being disconnected (when in use)
|
||||
width = 100%
|
||||
height = 20
|
||||
offset-x = 5%
|
||||
offset-y = 2%
|
||||
top = true
|
||||
fixed-center = false
|
||||
line-size = 2
|
||||
cursor-click = pointer
|
||||
|
||||
#background = ${color.bg}
|
||||
background = ${color.bg}
|
||||
foreground = ${color.fg}
|
||||
|
||||
border-right = 0
|
||||
border-left= 0
|
||||
border-top=0
|
||||
border-bottom = 0
|
||||
border-color = transparent
|
||||
radius = 0
|
||||
; fonts are defined using <font-name>;<vertical-offset>
|
||||
; font names are specified using a fontconfig pattern.
|
||||
; font-0 = notosans-regular:size=8;2
|
||||
; font-1 = materialicons:size=10
|
||||
; font-2 = termsynu:size=8;-1
|
||||
; font-3 = fontawesome:size=10
|
||||
; see the fonts wiki page for more details
|
||||
|
||||
font-0 = "FantasqueSansMono Nerd Font:size=10;2"
|
||||
font-1 = "typicons:size=12;2"
|
||||
font-2 = "xos4 Terminus:size=12;2"
|
||||
font-3 = :FontAwesome:style=Regular:pixelsize=12"
|
||||
font-4 = "JetBrainsMono Nerd Font:size:12"
|
||||
font-5 = "Font Awesome 5 Free:size:12"
|
||||
|
||||
|
||||
; modules-left = cpu ram
|
||||
; modules-center = xwindow xbacklight
|
||||
; modules-right = ipc clock
|
||||
|
||||
;; Available modules
|
||||
;;
|
||||
;alsa backlight battery
|
||||
;bspwm cpu date
|
||||
;filesystem github i3
|
||||
;memory mpd wired-network
|
||||
;network pulseaudio temperature
|
||||
;keyboard title workspaces
|
||||
;;
|
||||
;; User modules
|
||||
;checknetwork updates window_switch launcher powermenu sysmenu menu style
|
||||
;;
|
||||
;; Bars
|
||||
;cpu_bar memory_bar filesystem_bar mpd_bar
|
||||
;volume brightness battery_bar
|
||||
|
||||
modules-left = launcher_i i3
|
||||
modules-center = title tray
|
||||
modules-right = updates_i updates redshift_i redshift battery_i battery memory_i memory pulseaudio_i pulseaudio network_i network keyboard_i keyboard date_i date sysmenu_i sysmenu
|
||||
|
||||
|
||||
; The separator will be inserted between the output of each module
|
||||
separator =
|
||||
|
||||
; This value is used to add extra spacing between elements
|
||||
; @deprecated: This parameter will be removed in an upcoming version
|
||||
spacing = 0
|
||||
|
||||
; Opacity value between 0.0 and 1.0 used on fade in/out
|
||||
dim-value = 1.0
|
||||
|
||||
; Value to be used to set the WM_NAME atom
|
||||
; If the value is empty or undefined, the atom value
|
||||
; will be created from the following template: polybar-[BAR]_[MONITOR]
|
||||
; NOTE: The placeholders are not available for custom values
|
||||
wm-name = i3
|
||||
|
||||
; Locale used to localize various module data (e.g. date)
|
||||
; Expects a valid libc locale, for example: sv_SE.UTF-8
|
||||
locale =
|
||||
|
||||
; Position of the system tray window
|
||||
; If empty or undefined, tray support will be disabled
|
||||
; NOTE: A center aligned tray will cover center aligned modules
|
||||
;
|
||||
; Available positions:
|
||||
; left
|
||||
; center
|
||||
; right
|
||||
; none
|
||||
tray-position = right
|
||||
|
||||
; If true, the bar will not shift its
|
||||
; contents when the tray changes
|
||||
tray-detached = false
|
||||
|
||||
; Tray icon max size
|
||||
tray-maxsize = 16
|
||||
|
||||
; DEPRECATED! Since 3.3.0 the tray always uses pseudo-transparency
|
||||
; Enable pseudo transparency
|
||||
; Will automatically be enabled if a fully transparent
|
||||
; background color is defined using `tray-background`
|
||||
tray-transparent = false
|
||||
|
||||
; Background color for the tray container
|
||||
; ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
||||
; By default the tray container will use the bar
|
||||
; background color.
|
||||
tray-background = ${color.bg}
|
||||
|
||||
; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
|
||||
tray-offset-x = -97
|
||||
tray-offset-y = -22
|
||||
|
||||
; Pad the sides of each tray icon
|
||||
tray-padding = 0
|
||||
|
||||
; Scale factor for tray clients
|
||||
tray-scale = 1.0
|
||||
|
||||
; Restack the bar window and put it above the
|
||||
; selected window manager's root
|
||||
;
|
||||
; Fixes the issue where the bar is being drawn
|
||||
; on top of fullscreen window's
|
||||
;
|
||||
; Currently supported WM's:
|
||||
; bspwm
|
||||
; i3 (requires: `override-redirect = true`)
|
||||
wm-restack =
|
||||
|
||||
; Set a DPI values used when rendering text
|
||||
; This only affects scalable fonts
|
||||
; dpi =
|
||||
|
||||
; Enable support for inter-process messaging
|
||||
; See the Messaging wiki page for more details.
|
||||
enable-ipc = true
|
||||
|
||||
; Fallback click handlers that will be called if
|
||||
; there's no matching module handler found.
|
||||
click-left =
|
||||
click-middle =
|
||||
click-right =
|
||||
scroll-up =
|
||||
scroll-down =
|
||||
double-click-left =
|
||||
double-click-middle =
|
||||
double-click-right =
|
||||
|
||||
; Requires polybar to be built with xcursor support (xcb-util-cursor)
|
||||
; Possible values are:
|
||||
; - default : The default pointer as before, can also be an empty string (default)
|
||||
; - pointer : Typically in the form of a hand
|
||||
; - ns-resize : Up and down arrows, can be used to indicate scrolling
|
||||
cursor-scroll =
|
||||
|
||||
;; WM Workspace Specific
|
||||
|
||||
; bspwm
|
||||
;;scroll-up = bspwm-desknext
|
||||
;;scroll-down = bspwm-deskprev
|
||||
;;scroll-up = bspc desktop -f prev.local
|
||||
;;scroll-down = bspc desktop -f next.local
|
||||
|
||||
;i3
|
||||
;;scroll-up = i3wm-wsnext
|
||||
;;scroll-down = i3wm-wsprev
|
||||
;;scroll-up = i3-msg workspace next_on_output
|
||||
;;scroll-down = i3-msg workspace prev_on_output
|
||||
|
||||
;openbox
|
||||
;awesome
|
||||
;etc
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;; Application Settings
|
||||
|
||||
|
||||
|
||||
[bar/second]
|
||||
; Use either of the following command to list available outputs:
|
||||
; If unspecified, the application will pick the first one it finds.
|
||||
; $ polybar -m | cut -d ':' -f 1
|
||||
; $ xrandr -q | grep " connected" | cut -d ' ' -f1
|
||||
monitor = HDMI-1
|
||||
|
||||
; Use the specified monitor as a fallback if the main one is not found.
|
||||
width = 100%
|
||||
height = 20
|
||||
offset-x = 5%
|
||||
offset-y = 2%
|
||||
top = true
|
||||
fixed-center = false
|
||||
line-size = 2
|
||||
cursor-click = pointer
|
||||
|
||||
background = ${color.bg}
|
||||
foreground = ${color.fg}
|
||||
|
||||
border-right = 0
|
||||
border-left= 0
|
||||
border-top=0
|
||||
border-bottom = 0
|
||||
border-color = transparent
|
||||
radius = 0
|
||||
|
||||
|
||||
font-0 = "FantasqueSansMono Nerd Font:size=10;2"
|
||||
font-1 = "typicons:size=12;2"
|
||||
font-2 = "xos4 Terminus:size=12;2"
|
||||
font-3 = "FontAwesome:style=Regular:pixelsize=12"
|
||||
font-4 = "JetBrainsMono Nerd Font:size:12"
|
||||
font-5 = "Font Awesome 5 Free:size:12"
|
||||
|
||||
; Modules are added to one of the available blocks
|
||||
; modules-left = cpu ram
|
||||
; modules-center = xwindow xbacklight
|
||||
; modules-right = ipc clock
|
||||
|
||||
;; Available modules
|
||||
;;
|
||||
;alsa backlight battery
|
||||
;bspwm cpu date
|
||||
;filesystem github i3
|
||||
;memory mpd wired-network
|
||||
;network pulseaudio temperature
|
||||
;keyboard title workspaces
|
||||
;;
|
||||
;; User modules
|
||||
;checknetwork updates window_switch launcher powermenu sysmenu menu style
|
||||
;;
|
||||
;; Bars
|
||||
;cpu_bar memory_bar filesystem_bar mpd_bar
|
||||
;volume brightness battery_bar
|
||||
|
||||
modules-left = i3
|
||||
modules-center = title
|
||||
modules-right = cpu_i cpu filesystem_i filesystem pulseaudio_i pulseaudio keyboard_i keyboard
|
||||
; The separator will be inserted between the output of each module
|
||||
separator =
|
||||
|
||||
; This value is used to add extra spacing between elements
|
||||
; @deprecated: This parameter will be removed in an upcoming version
|
||||
spacing = 0
|
||||
|
||||
; Opacity value between 0.0 and 1.0 used on fade in/out
|
||||
dim-value = 1.0
|
||||
|
||||
; Value to be used to set the WM_NAME atom
|
||||
; If the value is empty or undefined, the atom value
|
||||
; will be created from the following template: polybar-[BAR]_[MONITOR]
|
||||
; NOTE: The placeholders are not available for custom values
|
||||
wm-name = i3
|
||||
|
||||
; Locale used to localize various module data (e.g. date)
|
||||
; Expects a valid libc locale, for example: sv_SE.UTF-8
|
||||
locale =
|
||||
|
||||
; Position of the system tray window
|
||||
; If empty or undefined, tray support will be disabled
|
||||
; NOTE: A center aligned tray will cover center aligned modules
|
||||
;
|
||||
; Available positions:
|
||||
; left
|
||||
; center
|
||||
; right
|
||||
; none
|
||||
tray-position = none
|
||||
|
||||
; If true, the bar will not shift its
|
||||
; contents when the tray changes
|
||||
tray-detached = true
|
||||
|
||||
; Tray icon max size
|
||||
tray-maxsize = 16
|
||||
|
||||
; DEPRECATED! Since 3.3.0 the tray always uses pseudo-transparency
|
||||
; Enable pseudo transparency
|
||||
; Will automatically be enabled if a fully transparent
|
||||
; background color is defined using `tray-background`
|
||||
tray-transparent = false
|
||||
|
||||
; Background color for the tray container
|
||||
; ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
||||
; By default the tray container will use the bar
|
||||
; background color.
|
||||
tray-background = ${color.bg}
|
||||
|
||||
; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
|
||||
tray-offset-x = 0
|
||||
tray-offset-y = 0
|
||||
|
||||
; Pad the sides of each tray icon
|
||||
tray-padding = 0
|
||||
|
||||
; Scale factor for tray clients
|
||||
tray-scale = 1.0
|
||||
|
||||
; Restack the bar window and put it above the
|
||||
; selected window manager's root
|
||||
;
|
||||
; Fixes the issue where the bar is being drawn
|
||||
; on top of fullscreen window's
|
||||
;
|
||||
; Currently supported WM's:
|
||||
; bspwm
|
||||
; i3 (requires: `override-redirect = true`)
|
||||
wm-restack =
|
||||
;override-redirect = true
|
||||
; Set a DPI values used when rendering text
|
||||
; This only affects scalable fonts
|
||||
; dpi =
|
||||
|
||||
; Enable support for inter-process messaging
|
||||
; See the Messaging wiki page for more details.
|
||||
enable-ipc = true
|
||||
|
||||
; Fallback click handlers that will be called if
|
||||
; there's no matching module handler found.
|
||||
click-left =
|
||||
click-middle =
|
||||
click-right =
|
||||
scroll-up =
|
||||
scroll-down =
|
||||
double-click-left =
|
||||
double-click-middle =
|
||||
double-click-right =
|
||||
|
||||
; Requires polybar to be built with xcursor support (xcb-util-cursor)
|
||||
; Possible values are:
|
||||
; - default : The default pointer as before, can also be an empty string (default)
|
||||
; - pointer : Typically in the form of a hand
|
||||
; - ns-resize : Up and down arrows, can be used to indicate scrolling
|
||||
cursor-scroll =
|
||||
|
||||
;; WM Workspace Specific
|
||||
|
||||
; bspwm
|
||||
;;scroll-up = bspwm-desknext
|
||||
;;scroll-down = bspwm-deskprev
|
||||
;;scroll-up = bspc desktop -f prev.local
|
||||
;;scroll-down = bspc desktop -f next.local
|
||||
|
||||
;i3
|
||||
;;scroll-up = i3wm-wsnext
|
||||
;;scroll-down = i3wm-wsprev
|
||||
;;scroll-up = i3-msg workspace next_on_output
|
||||
;;scroll-down = i3-msg workspace prev_on_output
|
||||
|
||||
;openbox
|
||||
;awesome
|
||||
;etc
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;; Application Settings
|
||||
|
||||
|
||||
|
||||
[settings]
|
||||
; The throttle settings lets the eventloop swallow up til X events
|
||||
; if they happen within Y millisecond after first event was received.
|
||||
; This is done to prevent flood of update event.
|
||||
;
|
||||
; For example if 5 modules emit an update event at the same time, we really
|
||||
; just care about the last one. But if we wait too long for events to swallow
|
||||
; the bar would appear sluggish so we continue if timeout
|
||||
; expires or limit is reached.
|
||||
throttle-output = 5
|
||||
throttle-output-for = 10
|
||||
|
||||
; Time in milliseconds that the input handler will wait between processing events
|
||||
throttle-input-for = 30
|
||||
|
||||
; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
|
||||
screenchange-reload = false
|
||||
|
||||
; Compositing operators
|
||||
; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
|
||||
compositing-background = source
|
||||
compositing-foreground = over
|
||||
compositing-overline = over
|
||||
compositing-underline = over
|
||||
compositing-border = over
|
||||
|
||||
; Define fallback values used by all module formats
|
||||
format-foreground =
|
||||
format-background =
|
||||
format-underline =
|
||||
format-overline =
|
||||
format-spacing =
|
||||
format-padding =
|
||||
format-margin =
|
||||
format-offset =
|
||||
|
||||
; Enables pseudo-transparency for the bar
|
||||
; If set to true the bar can be transparent without a compositor.
|
||||
pseudo-transparency = false
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;; __________ ______
|
||||
;; / ____/ __ \/ ____/
|
||||
;; / __/ / / / / /_
|
||||
;; / /___/ /_/ / __/
|
||||
;; /_____/\____/_/
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
319
.config/polybar/dotfiles/i3/config
Normal file
|
@ -0,0 +1,319 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
|
||||
|
||||
#Look at existing keybindings names
|
||||
# ```xmodmap -pke | grep %key%```
|
||||
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:Roboto Mono 10, FontAwesome 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
# Redshift Night Mode
|
||||
# exec_always --no-startup-id redshift -P -O 4000
|
||||
|
||||
set $TERMINAL alacritty
|
||||
exec_always export TERMINAL=alacritty
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
#Screen brightnes
|
||||
bindsym XF86MonBrightnessUp exec lux -a 5
|
||||
bindsym XF86MonBrightnessDown exec lux -s 5
|
||||
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
|
||||
#bindsym $mod+d exec "rofi -modi run,drun -show drun -line-padding 4 -columns 2 -width 40 -padding 30 -hide-scrollbar -show-icons -drun-icon-theme Papirus"
|
||||
set $TERMINAL alacritty
|
||||
set $dmenu dmenu-terminal $TERMINAL
|
||||
bindsym $mod+t exec $dmenu
|
||||
bindsym $mod+d exec dmenu_run
|
||||
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
# alternatively, you can use the cursor 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
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+semicolon split h
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+Shift+alt focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
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 or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#---BAR POLYBAR---#
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
|
||||
###############Stylizing##################
|
||||
for_window [class="^.*"] border pixel 3
|
||||
# border_radius 3
|
||||
border_radius 0
|
||||
|
||||
|
||||
#client.focused #488444 #488444 #488444 #488444 #488444
|
||||
client.focused_inactive #282a36 #282a36 #282a36 #282a36 #282a36
|
||||
#client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused #44475a #44475a #44475a #44475a #44475a
|
||||
#client.unfocused #4c566a #4c566a #4c566a #4c566a #4c566a
|
||||
|
||||
|
||||
###############STARTUP Utilites##################
|
||||
exec /home/horhik/scripts/Startup/wifi.sh #WIFI
|
||||
###---touchpad--##
|
||||
exec --no-startup-id /home/horhik/Scripts/startup/touchpad.sh #WIFI
|
||||
exec --ho-startup-id sh ssh-agent bash ; ssh-add ~/.ssh/arch
|
||||
|
||||
#---Audio---#
|
||||
exec_always --no-startup-id pacmd set-card-profile 1 output:analog-stereo
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
exec_always --no-startup-id asoundconf set-default-card CODEC
|
||||
#exec pulseaudio
|
||||
#---/Audio---#
|
||||
exec_always --no-startup-id xrandr --output HDMI-1 --above eDP-1
|
||||
###############STARTUP Apps##################
|
||||
#wallpapers
|
||||
#transparetncy:
|
||||
exec_always --no-startup-id compton --config ~/.config/compton/compton.conf
|
||||
#microphone
|
||||
exec 'pactl set-card-profile alsa_card.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00 output:iec958-stereo+input:analog-stereo'
|
||||
#---GAPS---#
|
||||
exec --no-startup-id i3-msg gaps inner all set 10
|
||||
exec_always --no-startup-id i3-msg smart_borders on
|
||||
|
||||
set $mode_gaps Gaps: (h) plus, (j) enable, (k) reset, (l) minus
|
||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
||||
|
||||
mode "$mode_gaps" {
|
||||
bindsym j gaps inner current plus 5
|
||||
bindsym h gaps inner current set 10
|
||||
bindsym l gaps inner current set 0
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym k gaps inner current minus 5
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
set $mode_apps Apps:(n)otion,(f)irefox,(t)ick-tick,(m)ail,(p)rotonmail
|
||||
bindsym $mod+Shift+a mode "$mode_apps"
|
||||
|
||||
set $firefox firefox-developer-edition
|
||||
mode "$mode_apps" {
|
||||
bindsym f exec $firefox
|
||||
bindsym n exec $firefox --ssb https://notion.so & i3-msg mode 'default'
|
||||
bindsym Shift+s exec $firefox --ssb https://music.yandex.com & i3-msg mode 'default'
|
||||
bindsym t exec $firefox --ssb https://ticktick.com & i3-msg mode 'default'
|
||||
bindsym m exec $firefox --ssb https://tutanota.io & i3-msg mode 'default'
|
||||
bindsym p exec $firefox --ssb https://protonmail.com & i3-msg mode 'default'
|
||||
bindsym q exec qdirstat
|
||||
bindsym s exec flatpak run com.valvesoftware.Steam
|
||||
#evince book reader
|
||||
bindsym b exec evince
|
||||
bindsym s exec $firefox https://soundcloud.com
|
||||
#watch Toggl Timer
|
||||
bindsym w exec surf https://toggl.com/app/timer
|
||||
bindsym y exec $firefox music.yandex.ru/
|
||||
bindsym d exec surf https://www.collinsdictionary.com/
|
||||
#bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
#---shortcuts---#
|
||||
bindsym $mod+Shift+s exec flameshot gui
|
||||
|
||||
#---Language---#
|
||||
exec_always setxkbmap -layout us,ru
|
||||
exec_always xkb-switch -s us,ru
|
||||
|
||||
bindsym $mod+space exec xkb-switch -n
|
||||
|
||||
#--Floating togglable windows--#
|
||||
|
||||
# Terminal
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] resize set 825 600
|
||||
for_window [title="dropdown"] move scratchpad
|
||||
for_window [title="dropdown"] floating enable
|
||||
for_window [title="dropdown"] border pixel 3
|
||||
exec --no-startup-id alacritty -t dropdown -e tmux
|
||||
bindsym $mod+u [title="dropdown"] scratchpad show; [title="dropdown"] move position center
|
||||
|
||||
# Toggl timer
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] resize set 800 70
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] move scratchpad
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] floating enable
|
||||
for_window [title="@cgDISVMFxT:T | Toggl"] border pixel 3
|
||||
bindsym $mod+Shift+t [title="@cgDISVMFxT:T | Toggl"] scratchpad show; [title="@cgDISVMFxT:T | Toggl"] move position center
|
||||
exec --no-startup-id surf https://toggl.com/app/timer
|
||||
|
||||
#Emoji
|
||||
bindsym $mod+period exec rofimoji
|
||||
# Usage
|
||||
# Hit enter to insert the emoji directly
|
||||
# Hit alt+c to copy it to the clipboard
|
||||
# alt+t or alt+p can be used to select a specific input method
|
||||
# alt+1 inserts the most recently used character (alt+2 for the second most recently one etc.)
|
||||
|
||||
|
||||
|
||||
|
||||
exec variety
|
||||
exec_always --no-startup-id variety --next
|
||||
|
||||
exec "workspace 6;exec append_layout ~/Scripts/bin/freelances2.json; exec ~/Scripts/bin/freelances"
|
||||
|
2
.config/polybar/dotfiles/i3/log.log
Normal file
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
13
.config/polybar/launch.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
## Add this to your wm startup file.
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config.ini main &
|
||||
polybar -c ~/.config/polybar/config.ini second &
|
783
.config/polybar/modules.ini
Normal file
|
@ -0,0 +1,783 @@
|
|||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;;
|
||||
;; __ ___ __ __
|
||||
;; / |/ /___ ____/ /_ __/ /__ _____
|
||||
;; / /|_/ / __ \/ __ / / / / / _ \/ ___/
|
||||
;; / / / / /_/ / /_/ / /_/ / / __(__ )
|
||||
;; /_/ /_/\____/\__,_/\__,_/_/\___/____/
|
||||
;;
|
||||
;; Created By Aditya Shakya @adi1090x
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume>
|
||||
format-volume-background = ${color.mf}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
format-muted-background = ${color.mf}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
label-muted = "Muted"
|
||||
label-muted-foreground = ${color.red}
|
||||
|
||||
[module/alsa_i]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <ramp-volume>
|
||||
format-volume-background = ${color.blue}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
format-muted-background = ${color.blue}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
label-muted = ""
|
||||
label-muted-foreground = ${color.fg}
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
ramp-volume-4 =
|
||||
ramp-headphones-0 =
|
||||
ramp-headphones-1 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/backlight]
|
||||
type = internal/xbacklight
|
||||
|
||||
card = intel_backlight
|
||||
|
||||
format = <ramp>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = %percentage%%
|
||||
|
||||
; Available tags:
|
||||
; <label> (default)
|
||||
; <ramp>
|
||||
; <bar>
|
||||
|
||||
; Available tokens:
|
||||
; %percentage% (default)
|
||||
|
||||
; Only applies if <ramp> is used
|
||||
ramp-0 = 🌕
|
||||
ramp-1 = 🌔
|
||||
ramp-2 = 🌓
|
||||
ramp-3 = 🌒
|
||||
ramp-4 = 🌑
|
||||
|
||||
; Only applies if <bar> is used
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-fill = ─
|
||||
bar-empty = ─
|
||||
|
||||
[module/backlight_i]
|
||||
type = internal/xbacklight
|
||||
|
||||
card = intel_backlight
|
||||
|
||||
format = <ramp>
|
||||
format-background = ${color.lime}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-3 =
|
||||
ramp-4 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
|
||||
full-at = 99
|
||||
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
|
||||
poll-interval = 2
|
||||
time-format = %H:%M
|
||||
|
||||
format-charging = <label-charging>
|
||||
format-charging-background = ${color.mf}
|
||||
format-charging-foreground = ${color.fg}
|
||||
format-charging-padding = 1
|
||||
|
||||
format-discharging = <label-discharging>
|
||||
format-discharging-background = ${color.mf}
|
||||
format-discharging-foreground = ${color.fg}
|
||||
format-discharging-padding = 1
|
||||
|
||||
label-charging = %percentage%%
|
||||
label-discharging = %percentage%%
|
||||
|
||||
label-full = Fully!
|
||||
label-full-foreground = ${color.fg}
|
||||
label-full-background = ${color.mf}
|
||||
label-full-padding = 1
|
||||
|
||||
[module/battery_i]
|
||||
type = internal/battery
|
||||
|
||||
full-at = 99
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
|
||||
poll-interval = 2
|
||||
time-format = %H:%M
|
||||
|
||||
format-charging = <animation-charging>
|
||||
format-charging-background = ${color.green}
|
||||
format-charging-foreground = ${color.fg}
|
||||
format-charging-padding = 1
|
||||
|
||||
format-discharging = <ramp-capacity>
|
||||
format-discharging-background = ${color.pink}
|
||||
format-discharging-foreground = ${color.fg}
|
||||
format-discharging-padding = 1
|
||||
|
||||
label-charging = %percentage%%
|
||||
label-discharging = %percentage%%
|
||||
|
||||
label-full =
|
||||
label-full-background = ${color.green}
|
||||
label-full-foreground = ${color.fg}
|
||||
label-full-padding = 1
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
|
||||
animation-charging-framerate = 750
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;;[module/bspwm]
|
||||
;;type = internal/bspwm
|
||||
|
||||
; Only show workspaces defined on the same output as the bar
|
||||
; NOTE: The bspwm and XRandR monitor names must match, which they do by default.
|
||||
; Default: true
|
||||
;;pin-workspaces = true
|
||||
|
||||
; Output mode flags after focused state label
|
||||
; Default: false
|
||||
;;inline-mode = false
|
||||
|
||||
; Create click handler used to focus workspace
|
||||
; Default: true
|
||||
;;enable-click = false
|
||||
|
||||
; Create scroll handlers used to cycle workspaces
|
||||
; Default: true
|
||||
;;enable-scroll = false
|
||||
|
||||
; Set the scroll cycle direction
|
||||
; Default: true
|
||||
;;reverse-scroll = false
|
||||
|
||||
; Use fuzzy (partial) matching on labels when assigning
|
||||
; icons to workspaces
|
||||
; Example: code;♚ will apply the icon to all workspaces
|
||||
; containing 'code' in the label
|
||||
; Default: false
|
||||
;;fuzzy-match = true
|
||||
|
||||
; ws-icon-[0-9]+ = label;icon
|
||||
; Note that the label needs to correspond with the bspwm workspace name
|
||||
;;ws-icon-0 = code;♚
|
||||
;;ws-icon-1 = office;♛
|
||||
;;ws-icon-2 = graphics;♜
|
||||
;;ws-icon-3 = mail;♝
|
||||
;;ws-icon-4 = web;♞
|
||||
;;ws-icon-default = ♟
|
||||
|
||||
; Available tags:
|
||||
; <label-monitor>
|
||||
; <label-state> - gets replaced with <label-(focused|urgent|occupied|empty)>
|
||||
; <label-mode> - gets replaced with <label-(monocle|tiled|fullscreen|floating|locked|sticky|private)>
|
||||
; Default: <label-state>
|
||||
;;format = <label-state> <label-mode>
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
; Default: %name%
|
||||
;;label-monitor = %name%
|
||||
|
||||
; If any values for label-dimmed-N are defined, the workspace/mode
|
||||
; colors will get overridden with those values if the monitor is out of focus
|
||||
; To only override workspaces in a specific state, use:
|
||||
; label-dimmed-focused
|
||||
; label-dimmed-occupied
|
||||
; label-dimmed-urgent
|
||||
; label-dimmed-empty
|
||||
;;label-dimmed-foreground = #555
|
||||
;;label-dimmed-underline = ${bar/top.background}
|
||||
;;label-dimmed-focused-background = #f00
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
; %icon%
|
||||
; %index%
|
||||
; Default: %icon% %name%
|
||||
;;label-focused = %icon%
|
||||
;;label-focused-foreground = #ffffff
|
||||
;;label-focused-background = #3f3f3f
|
||||
;;label-focused-underline = #fba922
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
; %icon%
|
||||
; %index%
|
||||
; Default: %icon% %name%
|
||||
;;label-occupied = %icon%
|
||||
;;label-occupied-underline = #555555
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
; %icon%
|
||||
; %index%
|
||||
; Default: %icon% %name%
|
||||
;;label-urgent = %icon%
|
||||
;;label-urgent-foreground = #000000
|
||||
;;label-urgent-background = #bd2c40
|
||||
;;label-urgent-underline = #9b0a20
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
; %icon%
|
||||
; %index%
|
||||
; Default: %icon% %name%
|
||||
;;label-empty = %icon%
|
||||
;;label-empty-foreground = #55
|
||||
|
||||
; The following labels will be used to indicate the layout/mode
|
||||
; for the focused workspace. Requires <label-mode>
|
||||
;
|
||||
; Available tokens:
|
||||
; None
|
||||
;label-monocle =
|
||||
;label-tiled =
|
||||
;label-fullscreen =
|
||||
;label-floating =
|
||||
;label-pseudotiled = P
|
||||
;label-locked =
|
||||
;label-locked-foreground = #bd2c40
|
||||
;label-sticky =
|
||||
;label-sticky-foreground = #fba922
|
||||
;label-private =
|
||||
;label-private-foreground = #bd2c40
|
||||
|
||||
; Separator in between workspaces
|
||||
;;label-separator = |
|
||||
;;label-separator-padding = 1
|
||||
;;label-separator-foreground = #ffb52a
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
|
||||
interval = 0.5
|
||||
|
||||
format = <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = "%percentage%%"
|
||||
|
||||
[module/cpu_i]
|
||||
type = internal/cpu
|
||||
|
||||
interval = 0.5
|
||||
|
||||
format =
|
||||
format-background = ${color.teal}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
|
||||
interval = 1.0
|
||||
|
||||
time = %I:%M %p
|
||||
time-alt = %Y-%m-%d%
|
||||
|
||||
format = <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = %time%
|
||||
|
||||
[module/date_i]
|
||||
type = internal/date
|
||||
|
||||
interval = 1.0
|
||||
|
||||
time =
|
||||
time-alt =
|
||||
|
||||
format = <label>
|
||||
format-background = ${color.amber}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = %time%
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = true
|
||||
|
||||
format-mounted = <label-mounted>
|
||||
format-mounted-background = ${color.mf}
|
||||
format-mounted-foreground = ${color.fg}
|
||||
format-mounted-padding = 1
|
||||
|
||||
format-unmounted = <label-unmounted>
|
||||
format-unmounted-background = ${color.mf}
|
||||
format-unmounted-foreground = ${color.fg}
|
||||
format-unmounted-padding = 1
|
||||
|
||||
label-mounted = "%free%"
|
||||
label-unmounted = %mountpoint%: not mounted
|
||||
|
||||
[module/filesystem_i]
|
||||
type = internal/fs
|
||||
|
||||
mount-0 = /
|
||||
interval = 10
|
||||
fixed-values = true
|
||||
|
||||
format-mounted =
|
||||
format-mounted-background = ${color.green}
|
||||
format-mounted-foreground = ${color.fg}
|
||||
format-mounted-padding = 1
|
||||
|
||||
format-unmounted =
|
||||
format-unmounted-background = ${color.red}
|
||||
format-unmounted-foreground = ${color.fg}
|
||||
format-unmounted-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
;;[module/github]
|
||||
;;type = internal/github
|
||||
|
||||
; Accessing an access token stored in file
|
||||
;;token = ${file:/path/to/file/containing/github/access.token}
|
||||
|
||||
; Accessing an access token stored in an environment variable
|
||||
;;token = ${env:GITHUB_ACCESS_TOKEN}
|
||||
|
||||
; Whether empty notifications should be displayed or not
|
||||
;;empty-notifications = false
|
||||
|
||||
; Number of seconds in between requests
|
||||
;;interval = 10
|
||||
|
||||
; Available tags:
|
||||
; <label> (default)
|
||||
;;format = <label>
|
||||
|
||||
; Available tokens:
|
||||
; %notifications% (default)
|
||||
; Default: Notifications: %notifications%
|
||||
;;label = %notifications%
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = false
|
||||
index-sort = true
|
||||
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
|
||||
wrapping-scroll = false
|
||||
reverse-scroll = false
|
||||
|
||||
;①②③④⑤⑥⑦⑧⑨⑩
|
||||
;
|
||||
ws-icon-0 = "2;"
|
||||
ws-icon-1 = "3;"
|
||||
ws-icon-2 = "4;"
|
||||
ws-icon-3 = "5;"
|
||||
ws-icon-4 = "6;"
|
||||
ws-icon-5 = "7;"
|
||||
ws-icon-6 = "8;"
|
||||
ws-icon-7 = "9;"
|
||||
ws-icon-8 = "10;"
|
||||
ws-icon-9 = "1;"
|
||||
ws-icon-default = "null"
|
||||
|
||||
format = <label-state> <label-mode>
|
||||
label-focused = %icon% %name%
|
||||
label-focused-foreground = ${color.fg}
|
||||
label-focused-background = ${color.ac}
|
||||
label-focused-underline = ${color.ac}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-unfocused = %icon% %name%
|
||||
label-unfocused-foreground = ${color.fg}
|
||||
label-unfocused-background = ${color.mf}
|
||||
label-unfocused-underline = ${color.mf}
|
||||
label-unfocused-padding = 1
|
||||
|
||||
label-visible = %icon% %name%
|
||||
label-visible-underline = ${color.ac}
|
||||
label-visible-padding = 1
|
||||
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 2
|
||||
label-mode-background = ${color.ac}
|
||||
|
||||
label-urgent = %icon% %name%
|
||||
label-urgent-foreground = ${color.fg}
|
||||
label-urgent-background = ${color.red}
|
||||
label-urgent-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
|
||||
interval = 3
|
||||
|
||||
format = <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label = "%mb_used%"
|
||||
|
||||
[module/memory_i]
|
||||
type = internal/memory
|
||||
|
||||
interval = 3
|
||||
|
||||
format =
|
||||
format-background = ${color.brown}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
|
||||
interval = 2
|
||||
|
||||
format-online = <label-song> <icon-next>
|
||||
format-online-background = ${color.mf}
|
||||
format-online-padding = 1
|
||||
|
||||
label-song = "%artist% - %title%"
|
||||
label-song-maxlen = 20
|
||||
label-song-ellipsis = true
|
||||
|
||||
label-offline = "MPD is offline"
|
||||
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-stop =
|
||||
icon-prev =
|
||||
icon-next =
|
||||
|
||||
[module/mpd_i]
|
||||
type = internal/mpd
|
||||
interval = 2
|
||||
|
||||
format-online = <toggle>
|
||||
format-online-background = ${color.red}
|
||||
format-online-padding = 1
|
||||
icon-play =
|
||||
icon-pause =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/network]
|
||||
type = internal/network
|
||||
|
||||
interface = wlp3s0
|
||||
interval = 1.0
|
||||
|
||||
accumulate-stats = true
|
||||
unknown-as-up = true
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-background = ${color.mf}
|
||||
format-connected-foreground = ${color.fg}
|
||||
format-connected-padding = 1
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-background = ${color.mf}
|
||||
format-disconnected-foreground = ${color.fg}
|
||||
format-disconnected-padding = 1
|
||||
|
||||
label-connected = "%essid%"
|
||||
label-disconnected = "Disconnected"
|
||||
|
||||
[module/network_i]
|
||||
type = internal/network
|
||||
interface = wlp3s0
|
||||
|
||||
interval = 1.0
|
||||
accumulate-stats = true
|
||||
unknown-as-up = true
|
||||
|
||||
format-connected = <ramp-signal>
|
||||
format-connected-background = ${color.purple}
|
||||
format-connected-foreground = ${color.fg}
|
||||
format-connected-padding = 1
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-background = ${color.purple}
|
||||
format-disconnected-foreground = ${color.fg}
|
||||
format-disconnected-padding = 1
|
||||
|
||||
label-disconnected =
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
sink = alsa_output.pci-0000_12_00.3.analog-stereo
|
||||
use-ui-max = true
|
||||
|
||||
interval = 5
|
||||
|
||||
format-volume = <label-volume>
|
||||
format-volume-background = ${color.mf}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
label-muted = Muted
|
||||
format-muted-background = ${color.mf}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
[module/pulseaudio_i]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <ramp-volume>
|
||||
format-volume-background = ${color.blue}
|
||||
format-volume-foreground = ${color.fg}
|
||||
format-volume-padding = 1
|
||||
|
||||
format-muted-background = ${color.blue}
|
||||
format-muted-foreground = ${color.red}
|
||||
format-muted-padding = 1
|
||||
|
||||
label-muted = ""
|
||||
label-muted-foreground = ${color.fg}
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
ramp-volume-4 =
|
||||
ramp-headphones-0 =
|
||||
ramp-headphones-1 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
|
||||
interval = 0.5
|
||||
thermal-zone = 0
|
||||
|
||||
warn-temperature = 60
|
||||
units = true
|
||||
|
||||
format = <label>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
format-warn = <label-warn>
|
||||
format-warn-background = ${color.mf}
|
||||
format-warn-foreground = ${color.red}
|
||||
format-warn-padding = 1
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = "%temperature-c%"
|
||||
|
||||
[module/temperature_i]
|
||||
type = internal/temperature
|
||||
|
||||
interval = 0.5
|
||||
thermal-zone = 0
|
||||
|
||||
warn-temperature = 60
|
||||
units = true
|
||||
|
||||
format = <ramp>
|
||||
format-background = ${color.cyan}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
format-warn = <ramp>
|
||||
format-warn-background = ${color.cyan}
|
||||
format-warn-foreground = ${color.fg}
|
||||
format-warn-padding = 1
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-3 =
|
||||
ramp-4 =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/keyboard]
|
||||
type = internal/xkeyboard
|
||||
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
|
||||
format = <label-layout> <label-indicator>
|
||||
format-background = ${color.mf}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
label-layout = %layout%
|
||||
label-indicator = %name%
|
||||
label-indicator-foreground = ${color.fg}
|
||||
|
||||
[module/keyboard_i]
|
||||
type = internal/xkeyboard
|
||||
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
|
||||
format =
|
||||
format-background = ${color.blue-gray}
|
||||
format-foreground = ${color.fg}
|
||||
format-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/title]
|
||||
type = internal/xwindow
|
||||
|
||||
format = <label>
|
||||
format-foreground = ${color.fg-alt}
|
||||
|
||||
label = %title%
|
||||
label-maxlen = 40
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/workspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = false
|
||||
index-sort = true
|
||||
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
;
|
||||
;icon-0 = 1;1
|
||||
;icon-1 = 2;2
|
||||
;icon-2 = 3;3
|
||||
;icon-3 = 4;4
|
||||
;icon-4 = 5;5
|
||||
;icon-5 = 6;6
|
||||
;icon-6 = 7;7
|
||||
;icon-7 = 8;8
|
||||
;icon-8 = 9;9
|
||||
;icon-9 = 10;0
|
||||
;icon-default =
|
||||
;
|
||||
icon-0 = 1;www
|
||||
icon-1 = 2;prog
|
||||
icon-2 = 3;debug
|
||||
icon-3 = 4;chat
|
||||
icon-4 = 5;λ
|
||||
icon-6 = 6;</>
|
||||
icon-7 = 7;study
|
||||
icon-8 = 8;music
|
||||
icon-9 = 9;youtube
|
||||
icon-default = null
|
||||
|
||||
|
||||
|
||||
format = <label-state>
|
||||
format-padding = 0
|
||||
|
||||
label-monitor = %name%
|
||||
|
||||
label-active = %icon%
|
||||
label-active-foreground = ${color.fg}
|
||||
label-active-background = ${color.ac}
|
||||
|
||||
label-occupied = %icon%
|
||||
label-occupied-foreground = ${color.fg}
|
||||
label-occupied-background = ${color.bg}
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-foreground = ${color.fg}
|
||||
label-urgent-background = ${color.red}
|
||||
|
||||
label-empty = %icon%
|
||||
label-empty-foreground = ${color.fg}
|
||||
label-empty-background = ${color.mf}
|
||||
|
||||
label-active-padding = 1
|
||||
label-urgent-padding = 1
|
||||
label-occupied-padding = 1
|
||||
label-empty-padding = 1
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;; __________ ______
|
||||
;; / ____/ __ \/ ____/
|
||||
;; / __/ / / / / /_
|
||||
;; / /___/ /_/ / __/
|
||||
;; /_____/\____/_/
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
@ -0,0 +1,15 @@
|
|||
# Script: battery-combined-shell
|
||||
|
||||
A shell script that shows the battery status.
|
||||
|
||||
It supports two rechargeable batteries and changing icons. It works even if only one battery is used.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-shell]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-shell.sh
|
||||
interval = 10
|
||||
```
|
|
@ -0,0 +1,61 @@
|
|||
#!/bin/sh
|
||||
|
||||
PATH_AC="/sys/class/power_supply/AC"
|
||||
PATH_BATTERY_0="/sys/class/power_supply/BAT0"
|
||||
PATH_BATTERY_1="/sys/class/power_supply/BAT1"
|
||||
|
||||
ac=0
|
||||
battery_level_0=0
|
||||
battery_level_1=0
|
||||
battery_max_0=0
|
||||
battery_max_1=0
|
||||
|
||||
if [ -f "$PATH_AC/online" ]; then
|
||||
ac=$(cat "$PATH_AC/online")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_0/energy_now" ]; then
|
||||
battery_level_0=$(cat "$PATH_BATTERY_0/energy_now")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_0/energy_full" ]; then
|
||||
battery_max_0=$(cat "$PATH_BATTERY_0/energy_full")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_1/energy_now" ]; then
|
||||
battery_level_1=$(cat "$PATH_BATTERY_1/energy_now")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_1/energy_full" ]; then
|
||||
battery_max_1=$(cat "$PATH_BATTERY_1/energy_full")
|
||||
fi
|
||||
|
||||
battery_level=$(("$battery_level_0 + $battery_level_1"))
|
||||
battery_max=$(("$battery_max_0 + $battery_max_1"))
|
||||
|
||||
battery_percent=$(("$battery_level * 100"))
|
||||
battery_percent=$(("$battery_percent / $battery_max"))
|
||||
|
||||
if [ "$ac" -eq 1 ]; then
|
||||
icon="#1"
|
||||
|
||||
if [ "$battery_percent" -gt 97 ]; then
|
||||
echo "$icon"
|
||||
else
|
||||
echo "$icon $battery_percent %"
|
||||
fi
|
||||
else
|
||||
if [ "$battery_percent" -gt 85 ]; then
|
||||
icon="#21"
|
||||
elif [ "$battery_percent" -gt 60 ]; then
|
||||
icon="#22"
|
||||
elif [ "$battery_percent" -gt 35 ]; then
|
||||
icon="#23"
|
||||
elif [ "$battery_percent" -gt 10 ]; then
|
||||
icon="#24"
|
||||
else
|
||||
icon="#25"
|
||||
fi
|
||||
|
||||
echo "$icon $battery_percent %"
|
||||
fi
|
|
@ -0,0 +1,31 @@
|
|||
# Script: battery-combined-tlp
|
||||
|
||||
A shell script that shows the battery status.
|
||||
|
||||
It uses TLP and requires root privileges. Note that the icon doesn't change.
|
||||
|
||||
![battery-combined-tlp](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `tlp`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You have to add the `tlp-stat` command to the `/etc/sudoers` NOPASSWD of your user:
|
||||
|
||||
```ini
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/tlp-stat
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-tlp]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-tlp.sh
|
||||
interval = 10
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
battery=$(sudo tlp-stat -b | grep "Charge total" | tr -d -c "[:digit:],.")
|
||||
|
||||
echo "# $battery %"
|
After Width: | Height: | Size: 841 B |
|
@ -0,0 +1,4 @@
|
|||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", \
|
||||
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"
|
||||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", \
|
||||
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"
|
|
@ -0,0 +1,22 @@
|
|||
# Script: battery-combined-udev
|
||||
|
||||
A shell script that shows the battery status. This is an extended version of [battery-combined-shell](../battery-combined-shell).
|
||||
|
||||
It supports two rechargeable batteries and changing icons. It works even if only one battery is used.
|
||||
|
||||
This script is able to display power supply changes in real time. For this udev is being used.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Copy `95-battery.rules` to `/etc/udev/rules.d/95-battery.rules`. Make sure that the paths in the file have been modified properly.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-udev]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-udev.sh
|
||||
tail = true
|
||||
```
|
|
@ -0,0 +1,88 @@
|
|||
#!/bin/sh
|
||||
|
||||
battery_print() {
|
||||
PATH_AC="/sys/class/power_supply/AC"
|
||||
PATH_BATTERY_0="/sys/class/power_supply/BAT0"
|
||||
PATH_BATTERY_1="/sys/class/power_supply/BAT1"
|
||||
|
||||
ac=0
|
||||
battery_level_0=0
|
||||
battery_level_1=0
|
||||
battery_max_0=0
|
||||
battery_max_1=0
|
||||
|
||||
if [ -f "$PATH_AC/online" ]; then
|
||||
ac=$(cat "$PATH_AC/online")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_0/energy_now" ]; then
|
||||
battery_level_0=$(cat "$PATH_BATTERY_0/energy_now")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_0/energy_full" ]; then
|
||||
battery_max_0=$(cat "$PATH_BATTERY_0/energy_full")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_1/energy_now" ]; then
|
||||
battery_level_1=$(cat "$PATH_BATTERY_1/energy_now")
|
||||
fi
|
||||
|
||||
if [ -f "$PATH_BATTERY_1/energy_full" ]; then
|
||||
battery_max_1=$(cat "$PATH_BATTERY_1/energy_full")
|
||||
fi
|
||||
|
||||
battery_level=$(("$battery_level_0 + $battery_level_1"))
|
||||
battery_max=$(("$battery_max_0 + $battery_max_1"))
|
||||
|
||||
battery_percent=$(("$battery_level * 100"))
|
||||
battery_percent=$(("$battery_percent / $battery_max"))
|
||||
|
||||
if [ "$ac" -eq 1 ]; then
|
||||
icon="#1"
|
||||
|
||||
if [ "$battery_percent" -gt 97 ]; then
|
||||
echo "$icon"
|
||||
else
|
||||
echo "$icon $battery_percent %"
|
||||
fi
|
||||
else
|
||||
if [ "$battery_percent" -gt 85 ]; then
|
||||
icon="#21"
|
||||
elif [ "$battery_percent" -gt 60 ]; then
|
||||
icon="#22"
|
||||
elif [ "$battery_percent" -gt 35 ]; then
|
||||
icon="#23"
|
||||
elif [ "$battery_percent" -gt 10 ]; then
|
||||
icon="#24"
|
||||
else
|
||||
icon="#25"
|
||||
fi
|
||||
|
||||
echo "$icon $battery_percent %"
|
||||
fi
|
||||
}
|
||||
|
||||
path_pid="/tmp/polybar-battery-combined-udev.pid"
|
||||
|
||||
case "$1" in
|
||||
--update)
|
||||
pid=$(cat $path_pid)
|
||||
|
||||
if [ "$pid" != "" ]; then
|
||||
kill -10 "$pid"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo $$ > $path_pid
|
||||
|
||||
trap exit INT
|
||||
trap "echo" USR1
|
||||
|
||||
while true; do
|
||||
battery_print
|
||||
|
||||
sleep 30 &
|
||||
wait
|
||||
done
|
||||
;;
|
||||
esac
|
29
.config/polybar/polybar-scripts/battery-cyberpower/README.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Script: battery-cyberpower
|
||||
|
||||
A shell script that shows the battery status for CyberPower UPS devices.
|
||||
|
||||
This script is able to display power supply changes in real time.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `pwrstat` from CyberPower's website
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You have to add the `pwrstat` command to the `/etc/sudoers` NOPASSWD of your user:
|
||||
|
||||
```ini
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/pwrstat
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-cyberpower]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-cyberpower.sh
|
||||
tail = true
|
||||
```
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/sh
|
||||
|
||||
ICON_AC="#1"
|
||||
ICON_BATTERY_FULL="#21"
|
||||
ICON_BATTERY_GOOD="#22"
|
||||
ICON_BATTERY_LOW="#23"
|
||||
ICON_BATTERY_CAUTION="#24"
|
||||
ICON_BATTERY_EMPTY="#25"
|
||||
|
||||
SHOW_ESTIMATION=1
|
||||
|
||||
battery_print() {
|
||||
battery_info="$(sudo pwrstat -status)"
|
||||
battery_capacity="$(echo "$battery_info" | awk '/Capacity/{print $3}')"
|
||||
battery_ac="$(echo "$battery_info" | awk '/Power Supply by/{print $4,$5}')"
|
||||
battery_load="$(echo "$battery_info" | grep "Load" | cut -d \( -f 2 | tr -d ' %)')"
|
||||
battery_remaining="$(echo "$battery_info" | awk '/Remaining Runtime/{print $3}')"
|
||||
|
||||
output=""
|
||||
|
||||
if [ "$battery_ac" = "Utility Power" ]; then
|
||||
if [ "$battery_capacity" -gt 97 ]; then
|
||||
output="$ICON_AC"
|
||||
else
|
||||
output="$ICON_AC $battery_capacity %"
|
||||
fi
|
||||
else
|
||||
if [ "$battery_capacity" -gt 85 ]; then
|
||||
output="$ICON_BATTERY_FULL $battery_capacity %"
|
||||
elif [ "$battery_capacity" -gt 60 ]; then
|
||||
output="$ICON_BATTERY_GOOD $battery_capacity %"
|
||||
elif [ "$battery_capacity" -gt 35 ]; then
|
||||
output="$ICON_BATTERY_LOW $battery_capacity %"
|
||||
elif [ "$battery_capacity" -gt 10 ]; then
|
||||
output="$ICON_BATTERY_CAUTION $battery_capacity %"
|
||||
else
|
||||
output="$ICON_BATTERY_EMPTY $battery_capacity %"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$SHOW_ESTIMATION" -eq 1 ]; then
|
||||
output="$output ($battery_load % / $battery_remaining min)"
|
||||
fi
|
||||
|
||||
echo "$output"
|
||||
}
|
||||
|
||||
trap exit INT
|
||||
trap "echo" USR1
|
||||
|
||||
while true; do
|
||||
battery_print "$@"
|
||||
|
||||
sleep 30 &
|
||||
wait
|
||||
done
|
44
.config/polybar/polybar-scripts/easteregg-pornhub/README.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Script: easteregg-pornhub
|
||||
|
||||
A script that shows a button and opens a random video at a large porn website.
|
||||
|
||||
![easteregg-pornhub](screenshots/1.png)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Set your browser at the `click-left` option in your module.
|
||||
|
||||
You should also enable the overline and underline option in your polybar.
|
||||
|
||||
```ini
|
||||
[bar/barname]
|
||||
|
||||
overline-size = 5
|
||||
underline-size = 4
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/easteregg-pornhub]
|
||||
type = custom/script
|
||||
exec = echo " hub "
|
||||
interval = 3600
|
||||
click-left = "firefox --private-window https://pornhub.com/random" &
|
||||
|
||||
format = <label>
|
||||
format-prefix = " Porn "
|
||||
format-prefix-foreground = #ffffff
|
||||
format-prefix-background = #000000
|
||||
|
||||
format-overline = #000000
|
||||
format-underline = #000000
|
||||
format-foreground = #000000
|
||||
format-background = #ffa500
|
||||
|
||||
format-suffix = " "
|
||||
format-suffix-background = #000000
|
||||
format-suffix-foreground = #000000
|
||||
```
|
After Width: | Height: | Size: 1.4 KiB |
|
@ -0,0 +1,29 @@
|
|||
# Script: inbox-imap-pythongpg
|
||||
|
||||
A script that shows if there are unread mails in your IMAPs inbox. Passwords are encrypted with gpg.
|
||||
|
||||
![inbox-imap-pythongpg](screenshots/1.png)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You must have a gpg key to secure your password in configuration files. Encrypt your password using your gpg key like this.
|
||||
|
||||
```ini
|
||||
echo 'your password' > /tmp/imappass
|
||||
gpg -er 'your gpg keyid' /tmp/imappass
|
||||
mv /tmp/imappass.gpg ~/.imappass.gpg
|
||||
shred /tmp/imappass && rm /tmp/imappass
|
||||
```
|
||||
|
||||
For Gmail, you must allow [less secure apps](https://myaccount.google.com/security#connectedapps).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-imap-pythongpg]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-imap-pythongpg.py
|
||||
interval = 60
|
||||
```
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import imaplib
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
completed_process = subprocess.run(['gpg', '-dq', os.path.join(os.getenv('HOME'), '.imappass.gpg')], check=True, stdout=subprocess.PIPE, encoding="utf-8");
|
||||
password = completed_process.stdout[:-1]
|
||||
obj = imaplib.IMAP4_SSL('imap.mail.net', 993)
|
||||
# Only put your email address below.
|
||||
obj.login('your email address', password)
|
||||
obj.select()
|
||||
|
||||
print(len(obj.search(None, 'unseen')[1][0].split()))
|
After Width: | Height: | Size: 542 B |
|
@ -0,0 +1,3 @@
|
|||
machine mail.server.tld
|
||||
login username
|
||||
password supersecretpw
|
|
@ -0,0 +1,27 @@
|
|||
# Script: inbox-imap-shellnetrc
|
||||
|
||||
A script that shows if there are unread mails in your IMAP inbox.
|
||||
|
||||
This script actually use IMAPs. `curl` can also handle unencrypted IMAP. You only need to change the protocol in the command.
|
||||
|
||||
The login data is stored in a `.netrc`. This is more secure because the password is not visible in the process list.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
For Gmail, you must allow [less secure apps](https://myaccount.google.com/security#connectedapps).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-imap-shellnetrc]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-imap-shellnetrc.sh
|
||||
interval = 60
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
SERVER=""
|
||||
NETRC=".netrc"
|
||||
|
||||
inbox=$(curl -sf --netrc-file "$NETRC" -X "STATUS INBOX (UNSEEN)" imaps://"$SERVER"/INBOX | tr -d -c "[:digit:]")
|
||||
|
||||
if [ "$inbox" ] && [ "$inbox" -gt 0 ]; then
|
||||
echo "# $inbox"
|
||||
else
|
||||
echo ""
|
||||
fi
|
|
@ -0,0 +1,3 @@
|
|||
machine mail.server.tld
|
||||
login username
|
||||
password supersecretpw
|
|
@ -0,0 +1,22 @@
|
|||
# Script: inbox-pop3-shellnetrc
|
||||
|
||||
A script that shows if there are unread mails in your POP3 inbox.
|
||||
|
||||
This script actually use POP3s. `curl` can also handle unencrypted POP3. You only need to change the protocol in the command.
|
||||
|
||||
The login data is stored in a `.netrc`. This is more secure because the password is not visible in the process list.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-pop3-shellnetrc]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-pop3-shellnetrc.sh
|
||||
interval = 60
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
SERVER=""
|
||||
NETRC=".netrc"
|
||||
|
||||
inbox=$(curl -sf --netrc-file "$NETRC" pop3s://"$SERVER" | wc -l)
|
||||
|
||||
if [ "$inbox" -gt 0 ]; then
|
||||
echo "# $inbox"
|
||||
else
|
||||
echo ""
|
||||
fi
|
|
@ -0,0 +1,30 @@
|
|||
# Script: info-airqualityindex
|
||||
|
||||
A script that shows the local World Air Quality Index. It's an indicator for the air pollution.
|
||||
|
||||
![info-airqualityindex](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
* `jq`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You need an API token. [Request one](https://aqicn.org/data-platform/token/).
|
||||
|
||||
Choose a city and make sure that the result is what you expect. `berlin` is a valid `CITY` here: http://aqicn.org/city/berlin/. Or use the [map](https://aqicn.org/map/) to find a monitoring station near you. `germany/berlin/friedrichshain-frankfurter-allee` works also as `CITY`.
|
||||
|
||||
If `CITY` is left empty, the location is retrieved via the Mozilla Location API.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-airqualityindex]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-airqualityindex.sh
|
||||
interval = 600
|
||||
```
|
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
TOKEN=""
|
||||
CITY=""
|
||||
|
||||
API="https://api.waqi.info/feed"
|
||||
|
||||
if [ -n "$CITY" ]; then
|
||||
aqi=$(curl -sf "$API/$CITY/?token=$TOKEN")
|
||||
else
|
||||
location=$(curl -sf https://location.services.mozilla.com/v1/geolocate?key=geoclue)
|
||||
|
||||
if [ -n "$location" ]; then
|
||||
location_lat="$(echo "$location" | jq '.location.lat')"
|
||||
location_lon="$(echo "$location" | jq '.location.lng')"
|
||||
|
||||
aqi=$(curl -sf "$API/geo:$location_lat;$location_lon/?token=$TOKEN")
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$aqi" ]; then
|
||||
if [ "$(echo "$aqi" | jq -r '.status')" = "ok" ]; then
|
||||
aqi=$(echo "$aqi" | jq '.data.aqi')
|
||||
|
||||
if [ "$aqi" -lt 50 ]; then
|
||||
echo "%{F#009966}#%{F-} $aqi"
|
||||
elif [ "$aqi" -lt 100 ]; then
|
||||
echo "%{F#ffde33}#%{F-} $aqi"
|
||||
elif [ "$aqi" -lt 150 ]; then
|
||||
echo "%{F#ff9933}#%{F-} $aqi"
|
||||
elif [ "$aqi" -lt 200 ]; then
|
||||
echo "%{F#cc0033}#%{F-} $aqi"
|
||||
elif [ "$aqi" -lt 300 ]; then
|
||||
echo "%{F#660099}#%{F-} $aqi"
|
||||
else
|
||||
echo "%{F#7e0023}#%{F-} $aqi"
|
||||
fi
|
||||
else
|
||||
echo "$aqi" | jq -r '.data'
|
||||
fi
|
||||
fi
|
After Width: | Height: | Size: 1.2 KiB |
20
.config/polybar/polybar-scripts/info-dualshock4/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Script: info-dualshock4
|
||||
|
||||
A shell script that shows the battery level of a DualShock 4 Controller.
|
||||
|
||||
![info-dualshock4](screenshots/1.png)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The Icon is from [Font Awesome 5](https://fontawesome.com/icons/playstation?style=brands).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-dualshock4]
|
||||
type= custom/script
|
||||
exec = ~/polybar-scripts/info-dualshock4.sh
|
||||
interval = 10
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
for i in /sys/class/power_supply/sony_controller_battery_*/capacity; do
|
||||
echo "# $(cat /sys/class/power_supply/sony_controller_battery_"$i"/capacity)%"
|
||||
done
|
After Width: | Height: | Size: 4 KiB |
18
.config/polybar/polybar-scripts/info-ethermine/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Script: info-ethermine
|
||||
|
||||
This script reports the current hashrate (in MH/s) for your ethermine account.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `python-requests`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-ethermine]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-ethermine.sh
|
||||
interval = 60
|
||||
```
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
|
||||
miner = ""
|
||||
|
||||
data = requests.get(f"https://api.ethermine.org/miner/{miner}/dashboard").json()['data']['statistics']
|
||||
data = data[-1]
|
||||
current_hash_rate = data["currentHashrate"]
|
||||
currentMHs = round(current_hash_rate/1e6, 1)
|
||||
|
||||
print(f"{currentMHs}MH/s")
|
15
.config/polybar/polybar-scripts/info-eyestrain/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Script: info-eyestrain
|
||||
|
||||
A script for avoiding digital eye strain.
|
||||
|
||||
It follows the 20-20-20 rule. The timer displays how long it is until the next break. You can add this to send a notification and play a sound when the time is up.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-eyestrain]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-eyestrain.sh
|
||||
interval = 60
|
||||
```
|
10
.config/polybar/polybar-scripts/info-eyestrain/info-eyestrain.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
time=$((20 - $(date '+%-M') % 20))
|
||||
|
||||
#if [ $time -eq 20 ]; then
|
||||
# notify-send 'Break' &
|
||||
# ogg123 beep.ogg &> /dev/null &
|
||||
#fi
|
||||
|
||||
echo "$time"
|
33
.config/polybar/polybar-scripts/info-hackspeed/README.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Script: info-hackspeed
|
||||
|
||||
A small script that shows your typing speed. Happy Hacking!
|
||||
|
||||
![info-hackspeed](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `xorg-xinput`
|
||||
* `awk`
|
||||
* coreutils (`rm`, `stdbuf`, `mktemp`, `stat`, you probably have this)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
* `KEYBOARD_ID`: name of your keyboard. See Setup above. Default: `AT Translated Set 2 keyboard`
|
||||
* `METRIC`: either `cpm` (characters per minute) of `wpm` ([words per minute, 1 word = 5 characters](https://en.wikipedia.org/wiki/Words_per_minute)). Default: `cpm`
|
||||
* `FORMAT`: format string according to which the metric will be output. Default: `# %d $METRIC`
|
||||
* `INTERVAL`: amount of seconds to gather data. Default: 20
|
||||
* `LAYOUT`: keyboard layout, to be able to only count letters and numbers. Currently supported are `qwerty` and `azerty`. If you have a different layout, please contribute a condition for it! See the script's source code. Use the special value `dontcare` to count all keys, not just letters and numbers. Default: `qwerty`
|
||||
|
||||
If after 20 seconds the value stays at 0 even though you're typing, you may have to configure the name of your keyboard. Change the setting `KEYBOARD_ID` (see Configuration below) in the script. You can find your keyboard description with `xinput list --short`.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hackspeed]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hackspeed.sh
|
||||
tail = true
|
||||
```
|
|
@ -0,0 +1,63 @@
|
|||
#!/bin/sh
|
||||
# shellcheck disable=SC2016,SC2059
|
||||
|
||||
KEYBOARD_ID="AT Translated Set 2 keyboard"
|
||||
|
||||
# cpm: characters per minute
|
||||
# wpm: words per minute (1 word = 5 characters)
|
||||
METRIC=cpm
|
||||
FORMAT="# %d $METRIC"
|
||||
|
||||
INTERVAL=20
|
||||
|
||||
# If you have a keyboard layout that is not listed here yet, create a condition
|
||||
# yourself. $3 is the key index. Use `xinput test "AT Translated Set 2 keyboard"`
|
||||
# to see key codes in real time. Be sure to open a pull request for your
|
||||
# layout's condition!
|
||||
LAYOUT=qwerty
|
||||
|
||||
case "$LAYOUT" in
|
||||
qwerty) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 24 && $3 <= 33) || ($3 >= 37 && $3 <= 53) || ($3 >= 52 && $3 <= 58)'; ;;
|
||||
azerty) CONDITION='($3 >= 10 && $3 <= 19) || ($3 >= 24 && $3 <= 33) || ($3 >= 37 && $3 <= 54) || ($3 >= 52 && $3 <= 57)'; ;;
|
||||
qwertz) CONDITION='($3 >= 10 && $3 <= 20) || ($3 >= 24 && $3 <= 34) || ($3 == 36) || ($3 >= 38 && $3 <= 48) || ($3 >= 52 && $3 <= 58)'; ;;
|
||||
dontcare) CONDITION='1'; ;; # Just register all key presses, not only letters and numbers
|
||||
*) echo "Unsupported layout \"$LAYOUT\""; exit 1; ;;
|
||||
esac
|
||||
|
||||
# We have to account for the fact we're not listening a whole minute
|
||||
multiply_by=60
|
||||
divide_by=$INTERVAL
|
||||
|
||||
case "$METRIC" in
|
||||
wpm) divide_by=$((divide_by * 5)); ;;
|
||||
cpm) ;;
|
||||
*) echo "Unsupported metric \"$METRIC\""; exit 1; ;;
|
||||
esac
|
||||
|
||||
hackspeed_cache="$(mktemp -p '' hackspeed_cache.XXXXX)"
|
||||
trap 'rm "$hackspeed_cache"' EXIT
|
||||
|
||||
# Write a dot to our cache for each key press
|
||||
printf '' > "$hackspeed_cache"
|
||||
xinput test "$KEYBOARD_ID" | \
|
||||
stdbuf -o0 awk '$1 == "key" && $2 == "press" && ('"$CONDITION"') {printf "."}' >> "$hackspeed_cache" &
|
||||
|
||||
while true; do
|
||||
# Ask the kernel how big the file is with the command `stat`. The number we
|
||||
# get is the file size in bytes, which equals the amount of dots the file
|
||||
# contains, and hence how much keys were pressed since the file was last
|
||||
# cleared.
|
||||
lines=$(stat --format %s "$hackspeed_cache")
|
||||
|
||||
# Truncate the cache file so that in the next iteration, we count only new
|
||||
# keypresses
|
||||
printf '' > "$hackspeed_cache"
|
||||
|
||||
# The shell only does integer operations, so make sure to first multiply and
|
||||
# then divide
|
||||
value=$((lines * multiply_by / divide_by))
|
||||
|
||||
printf "$FORMAT\\n" "$value"
|
||||
|
||||
sleep $INTERVAL
|
||||
done
|
BIN
.config/polybar/polybar-scripts/info-hackspeed/screenshots/1.png
Normal file
After Width: | Height: | Size: 539 B |
15
.config/polybar/polybar-scripts/info-hexdate/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Script: info-hexdate
|
||||
|
||||
Print the current date in a hex format.
|
||||
|
||||
![info-hexdate](screenshots/1.png)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hexdate]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hexdate.sh
|
||||
interval = 60
|
||||
```
|
11
.config/polybar/polybar-scripts/info-hexdate/info-hexdate.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
day=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f3)
|
||||
month=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f2)
|
||||
year=$(timedatectl | grep "Local" | cut -d ":" -f2 | cut -d " " -f3 | cut -d "-" -f1)
|
||||
|
||||
day=$(echo "obase=16; $day" | bc)
|
||||
month=$(echo "obase=16; $month" | bc)
|
||||
year=$(echo "obase=16; $year" | bc)
|
||||
|
||||
echo "$day-$month-$year"
|
BIN
.config/polybar/polybar-scripts/info-hexdate/screenshots/1.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,27 @@
|
|||
# Script: info-hlwm-workspaces
|
||||
|
||||
Displays all herbstluftwm workspaces with support for all workspace states (`focused`, `visible`, `occupied`, `empty`, `urgent`).
|
||||
|
||||
![info-hlwm-workspaces](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `herbstluftwm` running as your WM
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
On its own the script is pretty plain as there are no colors. There are a bunch of <kbd>TODO</kbd> comments where you can `echo` [Formatting Tags](https://github.com/jaagr/polybar/wiki/Formatting#format-tags) for certain workspace state to make it more colorful and help you actually distinguish the different states.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hlwm-workspaces]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hlwm-workspaces.sh
|
||||
tail = true
|
||||
scroll-up = herbstclient use_index -1 --skip-visible &
|
||||
scroll-down = herbstclient use_index +1 --skip-visible &
|
||||
```
|
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
herbstclient --idle "tag_*" 2>/dev/null | {
|
||||
|
||||
while true; do
|
||||
# Read tags into $tags as array
|
||||
IFS=$'\t' read -ra tags <<< "$(herbstclient tag_status)"
|
||||
{
|
||||
for i in "${tags[@]}" ; do
|
||||
# Read the prefix from each tag and render them according to that prefix
|
||||
case ${i:0:1} in
|
||||
'#')
|
||||
# the tag is viewed on the focused monitor
|
||||
# TODO Add your formatting tags for focused workspaces
|
||||
;;
|
||||
':')
|
||||
# : the tag is not empty
|
||||
# TODO Add your formatting tags for occupied workspaces
|
||||
;;
|
||||
'!')
|
||||
# ! the tag contains an urgent window
|
||||
# TODO Add your formatting tags for workspaces with the urgent hint
|
||||
;;
|
||||
'-')
|
||||
# - the tag is viewed on a monitor that is not focused
|
||||
# TODO Add your formatting tags for visible but not focused workspaces
|
||||
;;
|
||||
*)
|
||||
# . the tag is empty
|
||||
# There are also other possible prefixes but they won't appear here
|
||||
echo "%{F-}%{B-}" # Add your formatting tags for empty workspaces
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "%{A1:herbstclient use ${i:1}:} ${i:1} %{A -u -o F- B-}"
|
||||
done
|
||||
|
||||
echo "%{F-}%{B-}"
|
||||
} | tr -d "\n"
|
||||
|
||||
echo
|
||||
|
||||
# wait for next event from herbstclient --idle
|
||||
read -r || break
|
||||
done
|
||||
} 2>/dev/null
|
After Width: | Height: | Size: 2.1 KiB |
13
.config/polybar/polybar-scripts/info-kernel/README.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Script: info-kernel
|
||||
|
||||
A script that shows the running kernel version.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-kernel]
|
||||
type = custom/script
|
||||
exec = uname -r
|
||||
interval = 1024
|
||||
```
|
17
.config/polybar/polybar-scripts/info-pingrtt/README.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Script: info-pingrtt
|
||||
|
||||
A script that displays a ping result. It also shows a colored icon.
|
||||
|
||||
![info-pingrtt](screenshots/1.png)
|
||||
![info-pingrtt](screenshots/2.png)
|
||||
![info-pingrtt](screenshots/3.png)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-pingrtt]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-pingrtt.sh
|
||||
interval = 10
|
||||
```
|
19
.config/polybar/polybar-scripts/info-pingrtt/info-pingrtt.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
HOST=127.43.12.64
|
||||
|
||||
if ! ping=$(ping -n -c 1 -W 1 $HOST); then
|
||||
echo "# ping failed"
|
||||
else
|
||||
rtt=$(echo "$ping" | sed -rn 's/.*time=([0-9]{1,})\.?[0-9]{0,} ms.*/\1/p')
|
||||
|
||||
if [ "$rtt" -lt 50 ]; then
|
||||
icon="%{F#3cb703}#%{F-}"
|
||||
elif [ "$rtt" -lt 150 ]; then
|
||||
icon="%{F#f9dd04}#%{F-}"
|
||||
else
|
||||
icon="%{F#d60606}#%{F-}"
|
||||
fi
|
||||
|
||||
echo "$icon $rtt ms"
|
||||
fi
|
BIN
.config/polybar/polybar-scripts/info-pingrtt/screenshots/1.png
Normal file
After Width: | Height: | Size: 794 B |
BIN
.config/polybar/polybar-scripts/info-pingrtt/screenshots/2.png
Normal file
After Width: | Height: | Size: 878 B |
BIN
.config/polybar/polybar-scripts/info-pingrtt/screenshots/3.png
Normal file
After Width: | Height: | Size: 989 B |
|
@ -0,0 +1,15 @@
|
|||
# Script: info-projecthamster
|
||||
|
||||
This script displays Hamster Time Tracker information.
|
||||
|
||||
![info-projecthamster](screenshots/1.png)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-projecthamster]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-projecthamster.sh
|
||||
interval = 5
|
||||
```
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
activity=$(hamster current 2> /dev/null | cut -d " " -f 3- | sed 's/@.* / - /')
|
||||
|
||||
if [ -n "$activity" ]; then
|
||||
echo "$activity"
|
||||
else
|
||||
echo "No Activity"
|
||||
fi
|
After Width: | Height: | Size: 2.9 KiB |
20
.config/polybar/polybar-scripts/info-publicip/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Script: info-publicip
|
||||
|
||||
This script shows the public IP of the current connection.
|
||||
|
||||
![info-publicip](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-publicip]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-publicip.sh
|
||||
interval = 60
|
||||
```
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -sf ifconfig.co
|
BIN
.config/polybar/polybar-scripts/info-publicip/screenshots/1.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
15
.config/polybar/polybar-scripts/info-redshift-temp/README.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Script: info-redshift-temp
|
||||
|
||||
This script displays the current color temperature.
|
||||
|
||||
![info-redshift](screenshots/1.png)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-redshift-temp]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-redshift-temp.sh
|
||||
interval = 5
|
||||
```
|
15
.config/polybar/polybar-scripts/info-redshift-temp/info-redshift-temp.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(pgrep -x redshift)" ]; then
|
||||
temp=$(redshift -p 2> /dev/null | grep temp | cut -d ":" -f 2 | tr -dc "[:digit:]")
|
||||
|
||||
if [ -z "$temp" ]; then
|
||||
echo "%{F#65737E} #"
|
||||
elif [ "$temp" -ge 5000 ]; then
|
||||
echo "%{F#8FA1B3} #"
|
||||
elif [ "$temp" -ge 4000 ]; then
|
||||
echo "%{F#EBCB8B} #"
|
||||
else
|
||||
echo "%{F#D08770} #"
|
||||
fi
|
||||
fi
|
After Width: | Height: | Size: 589 B |
|
@ -0,0 +1,25 @@
|
|||
# Script: info-softwarecounter
|
||||
|
||||
A script that counts the number of specified running software including GUIs and processes.
|
||||
|
||||
Options to only monitor GUI applications or only processes exist. Users can add their own applications or processes they wish to watch simply by updating the existing dictionaries at the start of the script.
|
||||
|
||||
Arbitrary program counts can be combined, for example, the vim/nvim or chrome/chromium counts can be added together and the total displayed.
|
||||
|
||||
![info-softwarecounter](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `wmctrl`
|
||||
* `pgrep`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```
|
||||
[module/info-softwarecounter]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-softwarecounter.py
|
||||
interval = 10
|
||||
```
|
|
@ -0,0 +1,145 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
from collections import Counter, OrderedDict
|
||||
|
||||
|
||||
# update GUIs
|
||||
GUI = True
|
||||
|
||||
# update processes
|
||||
PROCESS = True
|
||||
|
||||
|
||||
# program/process names and corresponding gylphs
|
||||
guis = OrderedDict({
|
||||
'terminals': '#',
|
||||
'chromes': '#',
|
||||
'firefox': '#',
|
||||
'skypeforlinux': '#',
|
||||
'filemanager': '#',
|
||||
'remote-desktop': '#',
|
||||
'pdfviewer': '#',
|
||||
'image': '#',
|
||||
})
|
||||
|
||||
processes = OrderedDict({
|
||||
'vims': '#',
|
||||
'ssh': '#',
|
||||
'updater': '#',
|
||||
})
|
||||
|
||||
# combine counts of program/process names in the tuple
|
||||
# the resulting glpyh used will be that of the corresponding key
|
||||
combine_guis = {
|
||||
'terminals': ('termite', 'terminator', 'urxvt'),
|
||||
'chromes': ('chromium', 'chrome'),
|
||||
'filemanger': ('nemo', 'thunar', 'dolphin', 'nautilus', 'pcmanfm'),
|
||||
'remote-desktop': ('TeamViewer', ),
|
||||
'pdfviewer': ('evince', 'okular', 'zathura'),
|
||||
'image': ('gthumb', 'shotwell', 'deepin-image-vi'),
|
||||
}
|
||||
|
||||
combine_proccesses = {
|
||||
'vims': ('nvim', 'vim'),
|
||||
'updater': ('pacman', 'yay', 'trizen', 'yaourt'),
|
||||
}
|
||||
|
||||
|
||||
gui_output = ''
|
||||
process_output = ''
|
||||
|
||||
if GUI:
|
||||
|
||||
def get_running_guis():
|
||||
try:
|
||||
listed = sys.argv[1]
|
||||
except IndexError:
|
||||
listed = []
|
||||
|
||||
get = lambda cmd: subprocess.check_output(cmd).decode("utf-8").strip()
|
||||
|
||||
def check_wtype(w_id):
|
||||
# check the type of window, only list "NORMAL" windows
|
||||
return "_NET_WM_WINDOW_TYPE_NORMAL" in get(["xprop", "-id", w_id])
|
||||
|
||||
def get_process(w_id):
|
||||
# get the name of the process, owning the window
|
||||
proc = get(["ps", "-p", w_id, "-o", "comm="])
|
||||
return proc
|
||||
|
||||
wlist = [l.split() for l in subprocess.check_output(["wmctrl", "-lp"])\
|
||||
.decode("utf-8").splitlines()]
|
||||
validprocs = [
|
||||
get_process(w[2]) for w in wlist if check_wtype(w[0]) == True
|
||||
]
|
||||
|
||||
return validprocs
|
||||
|
||||
# get list of running GUI programs
|
||||
gui_counts = Counter(get_running_guis())
|
||||
|
||||
# combine programs in program combine list
|
||||
for k, lst in combine_guis.items():
|
||||
count = 0
|
||||
for i in lst:
|
||||
try:
|
||||
count += gui_counts.pop(i)
|
||||
except KeyError:
|
||||
pass
|
||||
if count:
|
||||
gui_counts[k] += count
|
||||
|
||||
# generate program output
|
||||
for k, v in guis.items():
|
||||
try:
|
||||
c = gui_counts[k]
|
||||
if c:
|
||||
gui_output += '%s %i ' % (v, c)
|
||||
except:
|
||||
pass
|
||||
|
||||
if PROCESS:
|
||||
|
||||
def get_running_proc(process_name_list):
|
||||
counts = [None] * len(process_name_list)
|
||||
|
||||
for i, p in enumerate(process_name_list):
|
||||
try:
|
||||
count = int(
|
||||
subprocess.check_output(['pgrep', '-c', '-x',
|
||||
p]).decode('utf-8'))
|
||||
except subprocess.CalledProcessError:
|
||||
count = 0
|
||||
counts[i] = (p, count)
|
||||
|
||||
return dict(counts)
|
||||
|
||||
# count running proccesses
|
||||
process_counts = get_running_proc(processes.keys())
|
||||
combine_counts = get_running_proc(
|
||||
list(sum(combine_proccesses.values(), ())))
|
||||
process_counts.update(combine_counts)
|
||||
|
||||
# combine processes in process combine list
|
||||
for k, lst in combine_proccesses.items():
|
||||
count = 0
|
||||
for i in lst:
|
||||
try:
|
||||
count += process_counts.pop(i)
|
||||
except KeyError:
|
||||
pass
|
||||
if count:
|
||||
process_counts[k] += count
|
||||
|
||||
# generate process output
|
||||
for k, v in processes.items():
|
||||
try:
|
||||
c = process_counts[k]
|
||||
if c:
|
||||
process_output += '%s %i ' % (v, c)
|
||||
except:
|
||||
pass
|
||||
|
||||
print(gui_output + process_output)
|
After Width: | Height: | Size: 8.3 KiB |
20
.config/polybar/polybar-scripts/info-ssh-sessions/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Script: info-ssh-sessions
|
||||
|
||||
A script that displays the count of current ssh sessions as well as the public IP address of the fist session.
|
||||
|
||||
![info-ssh-sessions](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `lsof`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-ssh-sessions]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-ssh-sessions.sh
|
||||
interval = 5
|
||||
```
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
sessions="$(lsof -Pi | grep ":22")"
|
||||
|
||||
if [ -n "$sessions" ]; then
|
||||
count=$(echo "$sessions" | wc -l)
|
||||
echo "# ($count): $(echo "$sessions" | cut -d ">" -f 2 | cut -d " " -f 1 | cut -d ":" -f 1 | tail -n 1)"
|
||||
else
|
||||
echo "# (0)"
|
||||
fi
|
After Width: | Height: | Size: 3 KiB |
28
.config/polybar/polybar-scripts/info-taskspooler/README.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Script: info-taskspooler
|
||||
|
||||
A small script that displays the number of queues/runtimes for one or more task spooler servers.
|
||||
|
||||
![info-taskspooler](screenshots/1.png)
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `task-spooler`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
By default the script will output the count of the default task-spooler server.
|
||||
|
||||
Arguments can be passed to show custom task-spooler servers by using the `TS_SOCKET variable`. These custom servers will need to use a socket filename format like /tmp/ts-socket.SOCK_NAME or the script will be unable to find the server. Arguments are passed as `name,sock_name` with sock_name being optional, e.g. `default yt,youtube p,podcast`.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-taskspooler]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-task-spooler/info-taskspooler.sh
|
||||
# exec = ~/polybar-scripts/info-taskspooler/info-taskspooler.sh default yt,youtube p,podcast
|
||||
interval = 5
|
||||
```
|
27
.config/polybar/polybar-scripts/info-taskspooler/info-taskspooler.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
# USAGE:
|
||||
# No arguments: prints the job running/queued job count of the default tsp server
|
||||
# Arguments: name,sock_name - one or more arguments, e.g. tsp yt,youtube p,podcasts
|
||||
# sock_name is optional, will default to default tsp socket
|
||||
# custom socket names will be generated as /tmp/ts-socket.SOCK_NAME, your TS_SOCKET will need to match
|
||||
|
||||
get_tsp_count() {
|
||||
sock=/tmp/socket-ts.${1:-$(id -u)}
|
||||
|
||||
tsp_count=$(TS_SOCKET=$sock tsp|grep -E -c 'running|queued')
|
||||
echo "${tsp_count:-0}"
|
||||
}
|
||||
|
||||
# without argument, just show count of default socket
|
||||
if [ $# -lt 1 ]; then
|
||||
get_tsp_count
|
||||
else
|
||||
for t in "$@"; do
|
||||
IFS=, read -r name sock_name <<- EOF
|
||||
${t}
|
||||
EOF
|
||||
|
||||
echo "${name} $(get_tsp_count "${sock_name}")"
|
||||
done|sed 'N;s/\n/ /'
|
||||
fi
|
After Width: | Height: | Size: 3.3 KiB |
16
.config/polybar/polybar-scripts/info-tmux-sessions/README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Script: info-tmux-sessions
|
||||
|
||||
A simple script to show tmux sessions.
|
||||
|
||||
![info-tmux-sessions](screenshots/1.png)
|
||||
![info-tmux-sessions](screenshots/2.png)
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-tmux-sessions]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-tmux-sessions.sh
|
||||
interval = 5
|
||||
```
|
|
@ -0,0 +1,21 @@
|
|||
#! /bin/sh
|
||||
|
||||
if sessionlist=$(tmux ls); then
|
||||
printf "# "
|
||||
|
||||
echo "$sessionlist" | while read -r line; do
|
||||
session=$(echo "$line" | cut -d ':' -f 1)
|
||||
|
||||
if echo "$line" | grep -q "(attached)"; then
|
||||
status="(a)"
|
||||
else
|
||||
status=""
|
||||
fi
|
||||
|
||||
printf "%s%s " "$session" "$status"
|
||||
done
|
||||
|
||||
printf "\n"
|
||||
else
|
||||
printf "# none\n"
|
||||
fi
|
After Width: | Height: | Size: 6.9 KiB |
After Width: | Height: | Size: 2.2 KiB |