Added class and os alternates

This commit is contained in:
h45h74x
2020-05-06 22:06:16 +02:00
parent 5a5286b38c
commit 80a58d4669
793 changed files with 63028 additions and 295 deletions
@@ -0,0 +1,70 @@
title: Terminal
background_opacity: 0.8
env:
TERM: xterm-256color
window:
dynamic_padding: true
padding:
x: 30
y: 30
cursor:
hide_when_typing: true
font:
normal:
family: Hack Nerd Font
style: Regular
bold:
family: Hack Nerd Font
style: Bold
italic:
family: Hack Nerd Font
style: Italic
bold_italic:
family: Hack Nerd Font
style: Bold Italic
size: 11.0
offset:
x: 0
y: -1
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance } # Spawn new instance in same directory
# Thinkpad Colors
colors:
# Default colors
primary:
background: '#171717'
foreground: '#eeeeee'
# Normal colors 205 grad hue
normal:
black: '#000000'
blue: '#2d6791'
magenta: '#256da1'
red: '#2988cc' # thinkpad red
green: '#127dc9'
cyan: '#177bc2'
yellow: '#0988e3'
white: '#777777'
# Bright colors
bright:
black: '#000000'
blue: '#3c8ec9'
magenta: '#2d8ccf'
red: '#2e9be8' # thinkpad red
green: '#158fe6'
cyan: '#1991e6'
yellow: '#0792f5'
white: '#777777'
@@ -30,7 +30,7 @@ font:
family: Hack Nerd Font
style: Bold Italic
size: 12.5
size: 11.0
offset:
x: 0
+48
View File
@@ -0,0 +1,48 @@
title: Terminal
background_opacity: 0.8
env:
TERM: xterm-256color
window:
dynamic_padding: true
padding:
x: 30
y: 30
cursor:
hide_when_typing: true
font:
normal:
family: Hack Nerd Font
style: Regular
bold:
family: Hack Nerd Font
style: Bold
italic:
family: Hack Nerd Font
style: Italic
bold_italic:
family: Hack Nerd Font
style: Bold Italic
size: 11.0
offset:
x: 0
y: -1
key_bindings:
- { key: Return, mods: Control|Shift, action: SpawnNewInstance } # Spawn new instance in same directory
# Thinkpad Colors
colors:
# Default colors
primary:
background: '#171717'
foreground: '#eeeeee'
+26
View File
@@ -0,0 +1,26 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=0
highlight_megabytes=1
highlight_threads=1
tree_view=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=6
delay=15
left_meters=CPU Blank LeftCPUs2 Blank Memory
left_meter_modes=1 2 1 2 1
right_meters=Uptime Blank RightCPUs2 Blank Swap
right_meter_modes=1 2 1 2 1
+385
View File
@@ -0,0 +1,385 @@
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Autostart w/ i3 #######################################################################
# General
exec_always --no-startup-id fix_xcursor
# display
exec --no-startup-id "nvidia-settings --load-config-only"
exec --no-startup-id "picom -b --blur-background"
exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
exec --no-startup-id "nitrogen --restore"
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
# audio
#exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/restart_pulseaudio.sh
exec --no-startup-id zsh -c "pactl unload-module module-role-cork"
# extra
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id "rfkill unblock bluetooth"
exec --no-startup-id blueberry-tray
#exec --no-startup-id onboard
exec --no-startup-id nm-applet
#exec --no-startup-id zsh ~/Userdata/Scripts/Launchers/launch_insync.sh
exec --no-startup-id "nextcloud"
################################################################################################
# General Hotkeys
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window none
new_float none
default_border none
# Hide borders
#hide_edge_borders none
# Change Borders
bindsym $mod+u border none
bindsym $mod+y border pixel 2
bindsym $mod+n border normal
# Font for window titles
font xft:Roboto Mono 11
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# Kill focused window
bindsym $mod+Shift+q kill
# Terminal
bindsym $mod+Return exec --no-startup-id alacritty
# System Monitor
bindsym Control+Shift+Escape exec --no-startup-id "alacritty -e sh -c 'htop'"
# Type Clipboad
bindsym $mod+Shift+v exec --no-startup-id sh ~/Userdata/Scripts/Misc/xclip_type.sh
################################################################################################
# Program Launchers
# rofi
bindsym $mod+d exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
bindsym $mod+Tab exec --no-startup-id "rofi -show window -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
# dmenu
#bindsym $mod+d exec --no-startup-id dmenu_recency
################################################################################################
# Music
bindsym $mod+slash exec --no-startup-id "playerctl play-pause"
bindsym $mod+period exec --no-startup-id "playerctl next"
bindsym $mod+comma exec --no-startup-id "playerctl previous"
exec --no-startup-id pulseaudio
#exec --no-startup-id pa-applet
bindsym $mod+Ctrl+m exec --no-startup-id pavucontrol
# Pulse Audio controls
# run amixer sset Master on
bindsym XF86AudioMute exec "amixer sset 'Master' toggle;"
bindsym XF86AudioLowerVolume exec "amixer sset 'Master' 5%-;"
bindsym XF86AudioRaiseVolume exec "amixer sset 'Master' 5%+;"
################################################################################################
# Screen
# Hide / Unhide statusbar
bindsym $mod+m exec --no-startup-id polybar-msg cmd toggle
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
################################################################################################
# Applications
# Screenshot [fullscreen, select area, select area with 3 second delay]
bindsym Print exec --no-startup-id "flameshot gui"
bindsym $mod+Print exec --no-startup-id "flameshot full"
#bindsym $mod+Shift+Print exec --no-startup-id deepin-screenshot -d 3 -s /home/sim/Pictures/Screenshots
# Firefox
bindsym $mod+F2 exec --no-startup-id firefox
bindsym $mod+Shift+F2 exec --no-startup-id "firefox google.com"
bindsym $mod+Shift+F4 exec --no-startup-id "firefox -new-window web.whatsapp.com"
# Nautilus
bindsym $mod+F3 exec --no-startup-id nautilus
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
# Telegram
bindsym $mod+F4 exec telegram-desktop
################################################################################################
# Window Management
focus_follows_mouse yes
# move focus arrow keys
bindsym $mod+Left focus left
bindsym $mod+Right focus right
bindsym $mod+Up focus up
bindsym $mod+Down focus down
# move focused window arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# split orientation
bindsym $mod+h split h;exec notify-send 'tile horizontally'
bindsym $mod+v split v;exec notify-send 'tile vertically'
bindsym $mod+q split toggle
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+i layout stacking
bindsym $mod+o layout tabbed
bindsym $mod+p layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# toggle sticky
bindsym $mod+Shift+s sticky toggle
#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
################################################################################################
# Workspaces
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
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
set $ws9 9:
set $ws10 10:
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# Move focused container to workspace
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8
bindsym $mod+Ctrl+9 move container to workspace $ws9
bindsym $mod+Ctrl+0 move container to workspace $ws10
# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
################################################################################################
# App / Window specific settings
# Open applications on specific workspaces
assign [class="(?i)virtualbox"] $ws10
# Open specific applications in floating mode
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="^.*"] none
for_window [title="Qalculate!"] floating enable border normal
for_window [title="Insync"] floating enable
for_window [title="Volume Control"] floating enable
for_window [title="xopp 2 pdf"] floating enable
for_window [title="Microsoft Teams Notification"] floating enable
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# reload the configuration file
#bindsym $mod+Shift+o reload
bindsym $mod+Shift+o exec --no-startup-id "sh ~/.config/i3/reload_w_polybar.sh"
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+i reload
################################################################################################
# Shutdown / Resize Menu
# Set shut down, restart and locking features
bindsym $mod+Escape mode "$mode_system"
set $mode_system | [s]hutdown , [r]eboot , [p]owersave , [h]ibernate , [l]ock , [e]xit
mode "$mode_system" {
bindsym s exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh shutdown, mode "default"
bindsym r exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh reboot, mode "default"
bindsym p exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh suspend, mode "default"
bindsym h exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh hibernate, mode "default"
bindsym l exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh lock, mode "default"
bindsym e exec --no-startup-id bash ~/Userdata/Scripts/Display/glitchlock/glitchlock.sh logout, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+Escape mode "default"
}
# Resize window (you can also use the mouse for that)
bindsym $mod+r mode "| Resize "
mode "| Resize " {
# These bindings trigger as soon as you enter the resize mode
# 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
bindsym Shift+Left resize shrink width 50 px or 50 ppt
bindsym Shift+Down resize grow height 50 px or 50 ppt
bindsym Shift+Up resize shrink height 50 px or 50 ppt
bindsym Shift+Right resize grow width 50 px or 50 ppt
# exit resize mode: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
################################################################################################
# Themes / Colors / Design / Look and Feel
# Colors
# class border backgr. text indic. child_border
client.focused #e60012 #e60012 #ffffff #e60012
client.focused_inactive #e60012 #691f1f #ffffff #691f1f
client.unfocused #e60012 #691f1f #ffffff #691f1f
client.urgent #f1a800 #f1a800 #ffffff #f1a800
client.placeholder #000000 #000000 #ffffff #000000
client.background #2B2C2B
################################################
# i3-gaps
# Set inner/outer gaps
gaps inner 25
gaps outer 5
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
# gaps inner all set 10
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
set $toggle_gaps Toggle gaps: (0) off / (1) on
bindsym $mod+g mode "$toggle_gaps"
mode "$toggle_gaps" {
bindsym 1 mode "default", gaps inner all set 25, gaps outer all set 5
bindsym 0 mode "default", gaps inner all set 0, gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
################################################
# i3-gaps-rounded
#border_radius 10
@@ -1,22 +1,34 @@
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Autostart w/ i3
#exec --no-startup-id onboard
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
# Autostart w/ i3 #######################################################################
# General
exec_always --no-startup-id fix_xcursor
# display
exec --no-startup-id "nvidia-settings --load-config-only"
exec --no-startup-id picom
exec --no-startup-id zsh ~/.screenlayout/layout_2mon.sh
exec --no-startup-id zsh ~/.config/polybar/launch_polybar.sh
exec --no-startup-id zsh ~/Userdata/Scripts/restart_pulseaudio.sh
exec --no-startup-id nm-applet
exec --no-startup-id "rfkill unblock bluetooth"
exec --no-startup-id blueberry-tray
exec --no-startup-id "nitrogen --restore"
exec --no-startup-id "fluxgui"
#exec --no-startup-id zsh ~/Userdata/Scripts/launch_insync.sh
exec --no-startup-id "unclutter --timeout 5 --jitter 5 --ignore-scrolling"
# audio
exec --no-startup-id zsh ~/Userdata/Scripts/restart_pulseaudio.sh
exec --no-startup-id zsh -c "pactl unload-module module-role-cork"
# Autostart applications
exec_always --no-startup-id fix_xcursor
# extra
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id "rfkill unblock bluetooth"
exec --no-startup-id blueberry-tray
#exec --no-startup-id onboard
#exec --no-startup-id nm-applet
#exec --no-startup-id zsh ~/Userdata/Scripts/launch_insync.sh
exec --no-startup-id "nextcloud"
################################################################################################
# General Hotkeys
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
@@ -25,82 +37,103 @@ set $mod Mod4
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window pixel 2
new_float normal
default_border pixel 2
for_window [class="^.*"] border pixel 2
new_window none
new_float none
default_border none
# Hide borders
#hide_edge_borders none
# Screenshot
bindsym Print exec --no-startup-id gnome-screenshot
bindsym $mod+Print exec --no-startup-id gnome-screenshot -a
bindsym $mod+Shift+Print exec --no-startup-id gnome-screenshot -i
# change borders
# Change Borders
bindsym $mod+u border none
bindsym $mod+y border pixel 2
bindsym $mod+n border normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# Font for window titles
font xft:Roboto Mono 11
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
# Kill focused window
bindsym $mod+Shift+q kill
# start program launcher
#bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym Control+Shift+Escape exec --no-startup-id "urxvt -e sh -c 'htop'"
bindsym Control+Mod1+Tab exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
bindsym $mod+d exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
bindsym $mod+Shift+d exec --no-startup-id "quicklaunch"
#bindsym Super_L exec --no-startup-id "quicklaunch"
# Terminal
bindsym $mod+Return exec --no-startup-id alacritty
# System Monitor
bindsym Control+Shift+Escape exec --no-startup-id "alacritty -e sh -c 'htop'"
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
# Program Launchers
# rofi
bindsym $mod+d exec --no-startup-id "rofi -show drun -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
bindsym $mod+Tab exec --no-startup-id "rofi -show window -show-icons -icon-theme Adwaita -drun-display-format {name} -sort -sort-method fzf"
# dmenu
#bindsym $mod+d exec --no-startup-id dmenu_recency
################################################################################################
# Music
bindsym $mod+slash exec --no-startup-id "playerctl play-pause"
bindsym $mod+period exec --no-startup-id "playerctl next"
bindsym $mod+comma exec --no-startup-id "playerctl previous"
exec --no-startup-id pulseaudio
#exec --no-startup-id pa-applet
bindsym $mod+Ctrl+m exec pavucontrol
################################################################################################
bindsym $mod+Ctrl+m exec --no-startup-id pavucontrol
# Pulse Audio controls
# run amixer sset Master on
# https://askubuntu.com/questions/823669/volume-sound-and-screen-brightness-controls-not-working
bindsym XF86AudioMute exec "amixer sset 'Master' toggle;"
bindsym XF86AudioLowerVolume exec "amixer sset 'Master' 5%-;"
bindsym XF86AudioRaiseVolume exec "amixer sset 'Master' 5%+;"
# Screen brightness controls
################################################################################################
# Screen
# Hide / Unhide statusbar
bindsym $mod+m exec --no-startup-id polybar-msg cmd toggle
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10"
# Start Applications
bindsym $mod+F2 exec firefox
bindsym $mod+Shift+F2 exec "firefox google.com"
bindsym $mod+F3 exec nautilus
################################################################################################
# Applications
# Screenshot [fullscreen, select area, select area with 3 second delay]
bindsym Print exec --no-startup-id "flameshot gui"
bindsym $mod+Print exec --no-startup-id "flameshot full"
#bindsym $mod+Shift+Print exec --no-startup-id deepin-screenshot -d 3 -s /home/sim/Pictures/Screenshots
# Firefox
bindsym $mod+F2 exec --no-startup-id firefox
bindsym $mod+Shift+F2 exec --no-startup-id "firefox google.com"
bindsym $mod+Shift+F4 exec --no-startup-id "firefox -new-window web.whatsapp.com"
# Nautilus
bindsym $mod+F3 exec --no-startup-id nautilus
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
bindsym $mod+F4 exec telegram-desktop
bindsym $mod+Shift+F4 exec "firefox -new-window web.whatsapp.com"
bindsym $mod+F5 exec "firefox -new-window borys.webuntis.com/WebUntis/?school=htl-salzburg#/basic/timetable"
# Telegram
bindsym $mod+F4 exec --no-startup-id telegram-desktop
################################################################################################
# Window Management
focus_follows_mouse yes
# move focus arrow keys
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Up focus up
bindsym $mod+Down focus down
# move focused window arrow keys
bindsym $mod+Shift+Left move left
@@ -139,6 +172,10 @@ bindsym $mod+Shift+s sticky toggle
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
################################################################################################
# Workspaces
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
@@ -151,7 +188,9 @@ set $ws5 5
set $ws6 6
set $ws7 7
set $ws8 8
set $ws9 9
#set $ws9 9
#set $ws10 10
set $ws9 9:
set $ws10 10:
# switch to workspace
@@ -190,26 +229,43 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10; workspace $ws10
################################################################################################
# App / Window specific settings
# Open applications on specific workspaces
assign [class="(?i)virtualbox"] $ws10
for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws9
assign [class="Virt-manager"] $ws10
assign [title="WhatsApp*"] $ws9
assign [title="Telegram*"] $ws9
assign [title="TeamSpeak*"] $ws9
# Open specific applications in floating mode
for_window [class="Lightdm-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [title="h45_Quicklaunch"] floating enable border normal
for_window [class="^.*"] none
for_window [title="Qalculate!"] floating enable border normal
for_window [title="Insync"] floating enable
for_window [title="Volume Control"] floating enable
for_window [title="xopp 2 pdf"] floating enable
for_window [title="Microsoft Teams Notification"] floating enable
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# reload the configuration file
bindsym $mod+Shift+o reload
#bindsym $mod+Shift+o reload
bindsym $mod+Shift+o exec --no-startup-id "sh ~/.config/i3/reload_i3_w_polybar.sh"
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+i restart
bindsym $mod+Shift+i reload
################################################################################################
# Shutdown / Resize Menu
# Set shut down, restart and locking features
bindsym $mod+Escape mode "$mode_system"
@@ -248,26 +304,26 @@ mode "| Resize " {
bindsym Escape mode "default"
}
# hide/unhide i3status bar
bindsym $mod+m exec --no-startup-id polybar-msg cmd toggle
# Theme colors
# class border backgr. text indic. child_border
client.focused #005c96 #005c96 #80FFF9 #FDF6E3
client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
client.placeholder #000000 #0c0c0c #ffffff #000000
################################################################################################
# Themes / Colors / Design / Look and Feel
# Colors
# class border backgr. text indic. child_border
client.focused #0086e6 #0086e6 #ffffff #0086e6
client.focused_inactive #0086e6 #1f4a69 #ffffff #1f4a69
client.unfocused #0086e6 #1f4a69 #ffffff #1f4a69
client.urgent #32cdf0 #32cdf0 #ffffff #32cdf0
client.placeholder #000000 #000000 #ffffff #000000
client.background #2B2C2B
#############################
### settings for i3-gaps: ###
#############################
################################################
# i3-gaps
# Set inner/outer gaps
gaps inner 5
gaps outer 0
gaps inner 25
gaps outer 5
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
@@ -287,6 +343,15 @@ set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
set $toggle_gaps Toggle gaps: (0) off / (1) on
bindsym $mod+g mode "$toggle_gaps"
mode "$toggle_gaps" {
bindsym 1 mode "default", gaps inner all set 25, gaps outer all set 5
bindsym 0 mode "default", gaps inner all set 0, gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
@@ -317,3 +382,8 @@ mode "$mode_gaps_outer" {
bindsym Return mode "default"
bindsym Escape mode "default"
}
################################################
# i3-gaps-rounded
#border_radius 10
+94 -9
View File
@@ -26,7 +26,7 @@ print_info() {
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
info "Font" font
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
@@ -37,6 +37,16 @@ print_info() {
info cols
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
@@ -291,7 +301,7 @@ refresh_rate="off"
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="on"
gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
@@ -335,6 +345,17 @@ public_ip_host="http://ident.me"
public_ip_timeout=2
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --de_version
de_version="off"
# Disk
@@ -360,7 +381,7 @@ disk_show=('/')
# What to append to the Disk subtitle.
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir'
# Values: 'mount', 'name', 'dir', 'none'
# Flag: --disk_subtitle
#
# Example:
@@ -374,8 +395,24 @@ disk_show=('/')
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# Song
@@ -403,12 +440,14 @@ disk_subtitle="mount"
# gmusicbrowser
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# pogo
# pragha
@@ -552,6 +591,19 @@ block_width=3
# Flag: --block_height
block_height=1
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# Progress Bars
@@ -653,13 +705,46 @@ image_source="auto"
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
#
# NOTE: Arch and Ubuntu have 'old' logo variants.
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, AOSC,
# Apricity, ArcoLinux, ArchBox, ARCHlabs, ArchStrike,
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Gentoo, Pentoo,
# gNewSense, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
# NuTyX, OBRevenge, OpenBSD, OpenIndiana, OpenMandriva,
# OpenWrt, osmc, Oracle, PacBSD, Parabola, Pardus, Parrot,
# Parsix, TrueOS, PCLinuxOS, Peppermint, popos, Porteus,
# PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata,
# Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
# SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus,
# Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
# Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu,
# Void, Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX
# have ascii logos
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
ascii_distro="auto"
# Ascii Colors
+228
View File
@@ -0,0 +1,228 @@
# Thank you code_nomad: http://9m.no/ꪯ鵞
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# 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).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
#glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.5;
# Set if you want different colour shadows
shadow-red = 0.1;
shadow-green = 0.1;
shadow-blue = 0.3;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
"! name~=''",
"name *= 'polybar'",
"name = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'compton'",
"name *= 'picom'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"class_g = 'Firefox' && argb",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"name = 'notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
#################################
#
# Opacity
#
#################################
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
# Dim inactive windows. (0.0 - 1.0)
inactive-dim = 0.1;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = true;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
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 = 0;
# Vertical synchronization: match the refresh rate of the monitor
vsync = false;
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# 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 = true;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
unredir-if-possible = false;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
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 = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
######################
#
# XSync
# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
#
######################
# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
xrender-sync-fence = true;
+228
View File
@@ -0,0 +1,228 @@
# Thank you code_nomad: http://9m.no/ꪯ鵞
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# 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).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
#glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.5;
# Set if you want different colour shadows
shadow-red = 0.3;
shadow-green = 0.1;
shadow-blue = 0.1;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
"! name~=''",
"name *= 'polybar'",
"name = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'compton'",
"name *= 'picom'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"class_g = 'Firefox' && argb",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"name = 'notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
#################################
#
# Opacity
#
#################################
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
# Dim inactive windows. (0.0 - 1.0)
inactive-dim = 0.1;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = true;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
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 = 0;
# Vertical synchronization: match the refresh rate of the monitor
vsync = false;
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# 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 = true;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
unredir-if-possible = false;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
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 = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
######################
#
# XSync
# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
#
######################
# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
xrender-sync-fence = true;
+228
View File
@@ -0,0 +1,228 @@
# Thank you code_nomad: http://9m.no/ꪯ鵞
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# 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).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
#glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 5;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.5;
# Set if you want different colour shadows
#shadow-red = 0.0;
#shadow-green = 0.0;
#shadow-blue = 0.0;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
"! name~=''",
"name *= 'polybar'",
"name = 'Notification'",
"name = 'Plank'",
"name = 'Docky'",
"name = 'Kupfer'",
"name = 'xfce4-notifyd'",
"name *= 'VLC'",
"name *= 'compton'",
"name *= 'picom'",
"name *= 'Chromium'",
"name *= 'Chrome'",
"class_g = 'Firefox' && argb",
"class_g = 'Conky'",
"class_g = 'Kupfer'",
"class_g = 'Synapse'",
"name = 'notify-osd'",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"_GTK_FRAME_EXTENTS@:c",
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
#################################
#
# Opacity
#
#################################
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
# Dim inactive windows. (0.0 - 1.0)
inactive-dim = 0.1;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
blur-background = true;
# Blur background of opaque windows with transparent frames as well.
# blur-background-frame = true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [ ];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
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 = 0;
# Vertical synchronization: match the refresh rate of the monitor
vsync = false;
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# 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 = true;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
unredir-if-possible = false;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
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 = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
######################
#
# XSync
# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
#
######################
# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
xrender-sync-fence = true;
+524
View File
@@ -0,0 +1,524 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = #af000000
foreground = #fff
foreground-alt = #555
[bar/main]
modules-left = disk update ovpn nvpn eth
modules-center = i3
modules-right = cpu nvgpu memory date
monitor = ${env:MONITOR:DP-0}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
tray-position = left
tray-padding = 9
tray-detached = false
tray-maxsize = 15
tray-background = ${root.background}
tray-scale = 1.0
enable-ipc = true
[bar/second]
modules-left =
modules-center = i3
modules-right = date
monitor = ${env:MONITOR:HDMI-0}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=9:antialias=true;0
enable-ipc = true
[bar/third]
modules-left =
modules-center = i3
modules-right = date
monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=9:antialias=true;0
enable-ipc = true
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = true
reverse-scroll = true
fuzzy-match = false
format = <label-state> <label-mode>
label-mode = %mode%
label-mode-padding = 1
label-mode-background = ${colors.background}
label-focused =%icon%%name%
label-focused-foreground = ${colors.foreground}
label-focused-background = ${colors.background}
label-focused-underline = #fff
label-focused-margin = 2
label-unfocused =%icon%%name%
label-unfocused-foreground = ${colors.foreground}
label-unfocused-background = ${colors.background}
label-unfocused-margin = 1
label-visible =%icon%%name%
label-visible-underline = #fff
label-visible-margin = 1
label-urgent =%icon%%name%!
label-urgent-foreground = ${colors.foreground-alt}
label-urgent-background = ${colors.background}
label-urgent-padding = 1
[module/menu-media]
type = custom/menu
expand-right = true
label-open = 
label-close = 
label-separator = " "
menu-0-0 = 
menu-0-0-exec = "playerctl previous"
menu-0-1 = 
menu-0-1-exec = "playerctl play-pause"
menu-0-2 = 
menu-0-2-exec = "playerctl next"
[module/ovpn]
type = custom/script
interval = 3
format = ovpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nmcli con show --active | grep vpn | cut -c1-12 | tr -d ' ')
[module/nvpn]
type = custom/script
interval = 3
format = nvpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nordvpn status | grep -oP '(?<=Current server: ).*' | cut -f1 -d'.')
[module/update]
type = custom/script
interval = 60
format = upd: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(yay -Qu 2>/dev/null | wc -l | awk '$1 ~ /^[[:digit:]]+$/')"
click-left = "setsid alacritty -e sh -c 'echo ---UPDATE LIST---; echo; yay -Syy; yay -Qu; echo ; read -p ---END---'"
click-right = "setsid alacritty -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
click-middle = "setsid alacritty -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
[module/quicklaunch]
type = custom/script
format = | <label>
interval = 999999999
exec = echo quick
label = quick
label-maxlen=5
label-ellipsis=false
click-left = "setsid quicklaunch"
[module/songname]
type = custom/script
interval = 3
format = <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(printf "%s: %s" "$(playerctl metadata artist 2>&1)" "$(playerctl metadata title 2>&1)" | sed -r 's/No players found//g;' | awk 'length > 2')
click-left = "playerctl play-pause"
click-right = "playerctl next"
click-middle = "playerctl previous"
[module/xbacklightbuttons]
type = custom/menu
expand-right = true
label-open = blght
label-close = x
label-separator = " "
menu-0-0 = -
menu-0-0-exec = "xbacklight -dec 10; notify-send 'brightness down'"
menu-0-1 = +
menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
[module/xbacklight]
type = internal/xbacklight
format = <label>
label = %percentage% 
[module/nvgpu]
type = custom/script
interval = 2
format = gpu: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(nvidia-settings -q GPUUtilization | awk -F'=' '{print $3}' | awk '{print $1}' | sed 's/\,/%/g')"
click-left = "setsid alacritty -e sh -c nvtop"
[module/cpu]
type = internal/cpu
interval = 2
label = cpu: %percentage%%
[module/memory]
type = internal/memory
interval = 2
label = ram: %percentage_used%%
[module/temperature]
type = internal/temperature
interval = 3
label = tmp: %temperature-c%
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %ifname%: %local_ip% [%essid%]
[module/wlanshort]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %essid%
[module/eth]
type = internal/network
interface = enp5s0
interval = 3
format-connected = <label-connected>
label-connected = eth: %local_ip%
[module/usbmodem1]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u1 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem2]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u6 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem3]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u3 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/date]
type = internal/date
interval = 1
date = tme:
date-alt = %d.%m.%Y,
time = %H:%M
time-alt = %H:%M:%S
label = %date% %time%
[module/volume]
type = internal/alsa
master-mixer = IEC958
format-volume = <label-volume>
label-volume =  %percentage%
label-volume-foreground = ${root.foreground}
format-muted-foreground = ${root.foreground}
label-muted =  x
[module/battery]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%% (+%consumption%W, %time%)
label-discharging = bat: %percentage%% (-%consumption%W, %time%)
[module/batteryshort]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%%
label-discharging = bat: %percentage%%
[module/disk]
type = internal/fs
mount-0 = /
interval = 10
fixed-values = true
spacing = 4
label-mounted = | dsk: %used% / %total%
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 5
[module/i3touchmenu]
type = custom/menu
expand-right = true
format-spacing = 1
;; Open the menu
label-open = "| touch"
label-open-foreground = #FFF
;; Close the menu
label-close = "| x"
label-separator = "'"
;; Launcher
menu-0-0 = 
menu-0-0-exec = menu-open-1
;; Move
menu-0-1 = 
menu-0-1-exec = menu-open-2
;; Layout
menu-0-2 = 
menu-0-2-exec = menu-open-3
;; Split
menu-0-3 = 
menu-0-3-exec = menu-open-4
;; Resize
menu-0-4 = 
menu-0-4-exec = menu-open-5
;; Move to workspace
menu-0-5 = 
menu-0-5-exec = menu-open-6
;; Kill
menu-0-6 = 
menu-0-6-exec = menu-open-7
;; Power
menu-0-7 =""
menu-0-7-exec = menu-open-8
;; Launcher: Back to main menu
menu-1-0 = 
menu-1-0-exec = menu-open-0
;; Launcher
menu-1-1="quick"
menu-1-1-exec= setsid quicklaunch
:: Launcher
menu-1-2="xournal"
menu-1-2-exec = "setsid xournalpp"
:: Launcher
menu-1-3="sync"
menu-1-3-exec = "setsid python Sync/o_school/5AHEL/Notebooks/pdfconvert.py"
:: Launcher
menu-1-4=""
menu-1-4-exec = urxvt &
;; Move: Back to main menu
menu-2-0 = 
menu-2-0-exec = menu-open-0
;; Move: Left
menu-2-1 = 
menu-2-1-exec = i3-msg 'move left'
;; Move: Right
menu-2-2 = 
menu-2-2-exec = i3-msg 'move right'
;; Move: Up
menu-2-3 = 
menu-2-3-exec = i3-msg 'move up'
;; Move: Down
menu-2-4 = ""
menu-2-4-exec = i3-msg 'move down'
;; Layout: Back to main menu
menu-3-0 = 
menu-3-0-exec = menu-open-0
;; Layout: Split
menu-3-1 = split
menu-3-1-exec = i3-msg 'layout toggle split'
;; Layout: Stacking
menu-3-2 = stack
menu-3-2-exec = i3-msg 'layout stacking'
;; Layout: Tabbed
menu-3-3 = tab
menu-3-3-exec = i3-msg 'layout tabbed'
;; Layout: Toggle floating
menu-3-4 = float
menu-3-4-exec = i3-msg 'floating toggle'
;; Split: Back to main menu
menu-4-0 = 
menu-4-0-exec = menu-open-0
;; Split: Vertical
menu-4-1 = vert
menu-4-1-exec = i3-msg 'split v'
;; Split: Horizontal
menu-4-2 = horz
menu-4-2-exec = i3-msg 'split h'
;; Resize: Back to main menu
menu-5-0 = 
menu-5-0-exec = menu-open-0
;; Resize: Grow height
menu-5-1 = h+
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
;; Resize: Shrink height
menu-5-2 = h-
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
;; Resize: Grow width
menu-5-3 = w+
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
;; Resize: Shrink width
menu-5-4 = w-
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
;; Move to workspace: Back to main menu
menu-6-0 = 
menu-6-0-exec = menu-open-0
;; Move to workspace: 1
menu-6-1 = 1
menu-6-1-exec = i3-msg 'move container to workspace 1'
;; Move to workspace: 2
menu-6-2 = 2
menu-6-2-exec = i3-msg 'move container to workspace 2'
;; Move to workspace: 3
menu-6-3 = 3
menu-6-3-exec = i3-msg 'move container to workspace 3'
;; Move to workspace: 4
menu-6-4 = 4
menu-6-4-exec = i3-msg 'move container to workspace 4'
;; Move to workspace: 5
menu-6-5 = 5
menu-6-5-exec = i3-msg 'move container to workspace 5'
;; Move to workspace: 6
menu-6-6 = 6
menu-6-6-exec = i3-msg 'move container to workspace 6'
;; Move to workspace: 7
menu-6-7 = 7
menu-6-7-exec = i3-msg 'move container to workspace 7'
;; Move to workspace: 8
menu-6-8 = 8
menu-6-8-exec = i3-msg 'move container to workspace 8'
;; Move to workspace: 9
menu-6-9 = 9
menu-6-9-exec = i3-msg 'move container to workspace 9'
;; Move to workspace: 10
menu-6-10 = "10"
menu-6-10-exec = i3-msg 'move container to workspace 10'
;; Kill: Back to main menu
menu-7-0 = 
menu-7-0-exec = menu-open-0
;; Kill: Kill
menu-7-1 = "confirm"
menu-7-1-exec = i3-msg 'kill'
;; Power: Back to main menu
menu-8-0 = 
menu-8-0-exec = menu-open-0
;; Power: Screen off
menu-8-1 = 
menu-8-1-exec = xset dpms force off
;; Power: Lock
menu-8-2 = 
menu-8-2-exec = i3lock
;; Power: Reboot
menu-8-3 = 
menu-8-3-exec = shutdown -r now
;; Power: Shutdown
menu-8-4 = ""
menu-8-4-exec = shutdown -h now
+524
View File
@@ -0,0 +1,524 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = #af000000
foreground = #fff
foreground-alt = #555
[bar/main]
modules-left = disk update ovpn nvpn eth
modules-center = i3
modules-right = cpu nvgpu memory date
monitor = ${env:MONITOR:DP-0}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
tray-position = left
tray-padding = 9
tray-detached = false
tray-maxsize = 15
tray-background = ${root.background}
tray-scale = 1.0
enable-ipc = true
[bar/second]
modules-left =
modules-center = i3
modules-right = date
monitor = ${env:MONITOR:HDMI-0}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=9:antialias=true;0
enable-ipc = true
[bar/third]
modules-left =
modules-center = i3
modules-right = date
monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 18
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=9:antialias=true;0
enable-ipc = true
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = true
reverse-scroll = true
fuzzy-match = false
format = <label-state> <label-mode>
label-mode = %mode%
label-mode-padding = 1
label-mode-background = ${colors.background}
label-focused =%icon%%name%
label-focused-foreground = ${colors.foreground}
label-focused-background = ${colors.background}
label-focused-underline = #fff
label-focused-margin = 2
label-unfocused =%icon%%name%
label-unfocused-foreground = ${colors.foreground}
label-unfocused-background = ${colors.background}
label-unfocused-margin = 1
label-visible =%icon%%name%
label-visible-underline = #fff
label-visible-margin = 1
label-urgent =%icon%%name%!
label-urgent-foreground = ${colors.foreground-alt}
label-urgent-background = ${colors.background}
label-urgent-padding = 1
[module/menu-media]
type = custom/menu
expand-right = true
label-open = 
label-close = 
label-separator = " "
menu-0-0 = 
menu-0-0-exec = "playerctl previous"
menu-0-1 = 
menu-0-1-exec = "playerctl play-pause"
menu-0-2 = 
menu-0-2-exec = "playerctl next"
[module/ovpn]
type = custom/script
interval = 3
format = ovpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nmcli con show --active | grep vpn | cut -c1-12 | tr -d ' ')
[module/nvpn]
type = custom/script
interval = 3
format = nvpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nordvpn status | grep -oP '(?<=Current server: ).*' | cut -f1 -d'.')
[module/update]
type = custom/script
interval = 60
format = upd: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(yay -Qu 2>/dev/null | wc -l | awk '$1 ~ /^[[:digit:]]+$/')"
click-left = "setsid alacritty -e sh -c 'echo ---UPDATE LIST---; echo; yay -Syy; yay -Qu; echo ; read -p ---END---'"
click-right = "setsid alacritty -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
click-middle = "setsid alacritty -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
[module/quicklaunch]
type = custom/script
format = | <label>
interval = 999999999
exec = echo quick
label = quick
label-maxlen=5
label-ellipsis=false
click-left = "setsid quicklaunch"
[module/songname]
type = custom/script
interval = 3
format = <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(printf "%s: %s" "$(playerctl metadata artist 2>&1)" "$(playerctl metadata title 2>&1)" | sed -r 's/No players found//g;' | awk 'length > 2')
click-left = "playerctl play-pause"
click-right = "playerctl next"
click-middle = "playerctl previous"
[module/xbacklightbuttons]
type = custom/menu
expand-right = true
label-open = blght
label-close = x
label-separator = " "
menu-0-0 = -
menu-0-0-exec = "xbacklight -dec 10; notify-send 'brightness down'"
menu-0-1 = +
menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
[module/xbacklight]
type = internal/xbacklight
format = <label>
label = %percentage% 
[module/nvgpu]
type = custom/script
interval = 2
format = gpu: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(nvidia-settings -q GPUUtilization | awk -F'=' '{print $3}' | awk '{print $1}' | sed 's/\,/%/g')"
click-left = "setsid alacritty -e sh -c nvtop"
[module/cpu]
type = internal/cpu
interval = 2
label = cpu: %percentage%%
[module/memory]
type = internal/memory
interval = 2
label = ram: %percentage_used%%
[module/temperature]
type = internal/temperature
interval = 3
label = tmp: %temperature-c%
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %ifname%: %local_ip% [%essid%]
[module/wlanshort]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %essid%
[module/eth]
type = internal/network
interface = enp5s0
interval = 3
format-connected = <label-connected>
label-connected = eth: %local_ip%
[module/usbmodem1]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u1 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem2]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u6 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem3]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u3 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/date]
type = internal/date
interval = 1
date = tme:
date-alt = %d.%m.%Y,
time = %H:%M
time-alt = %H:%M:%S
label = %date% %time%
[module/volume]
type = internal/alsa
master-mixer = IEC958
format-volume = <label-volume>
label-volume =  %percentage%
label-volume-foreground = ${root.foreground}
format-muted-foreground = ${root.foreground}
label-muted =  x
[module/battery]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%% (+%consumption%W, %time%)
label-discharging = bat: %percentage%% (-%consumption%W, %time%)
[module/batteryshort]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%%
label-discharging = bat: %percentage%%
[module/disk]
type = internal/fs
mount-0 = /
interval = 10
fixed-values = true
spacing = 4
label-mounted = | dsk: %used% / %total%
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 5
[module/i3touchmenu]
type = custom/menu
expand-right = true
format-spacing = 1
;; Open the menu
label-open = "| touch"
label-open-foreground = #FFF
;; Close the menu
label-close = "| x"
label-separator = "'"
;; Launcher
menu-0-0 = 
menu-0-0-exec = menu-open-1
;; Move
menu-0-1 = 
menu-0-1-exec = menu-open-2
;; Layout
menu-0-2 = 
menu-0-2-exec = menu-open-3
;; Split
menu-0-3 = 
menu-0-3-exec = menu-open-4
;; Resize
menu-0-4 = 
menu-0-4-exec = menu-open-5
;; Move to workspace
menu-0-5 = 
menu-0-5-exec = menu-open-6
;; Kill
menu-0-6 = 
menu-0-6-exec = menu-open-7
;; Power
menu-0-7 =""
menu-0-7-exec = menu-open-8
;; Launcher: Back to main menu
menu-1-0 = 
menu-1-0-exec = menu-open-0
;; Launcher
menu-1-1="quick"
menu-1-1-exec= setsid quicklaunch
:: Launcher
menu-1-2="xournal"
menu-1-2-exec = "setsid xournalpp"
:: Launcher
menu-1-3="sync"
menu-1-3-exec = "setsid python Sync/o_school/5AHEL/Notebooks/pdfconvert.py"
:: Launcher
menu-1-4=""
menu-1-4-exec = urxvt &
;; Move: Back to main menu
menu-2-0 = 
menu-2-0-exec = menu-open-0
;; Move: Left
menu-2-1 = 
menu-2-1-exec = i3-msg 'move left'
;; Move: Right
menu-2-2 = 
menu-2-2-exec = i3-msg 'move right'
;; Move: Up
menu-2-3 = 
menu-2-3-exec = i3-msg 'move up'
;; Move: Down
menu-2-4 = ""
menu-2-4-exec = i3-msg 'move down'
;; Layout: Back to main menu
menu-3-0 = 
menu-3-0-exec = menu-open-0
;; Layout: Split
menu-3-1 = split
menu-3-1-exec = i3-msg 'layout toggle split'
;; Layout: Stacking
menu-3-2 = stack
menu-3-2-exec = i3-msg 'layout stacking'
;; Layout: Tabbed
menu-3-3 = tab
menu-3-3-exec = i3-msg 'layout tabbed'
;; Layout: Toggle floating
menu-3-4 = float
menu-3-4-exec = i3-msg 'floating toggle'
;; Split: Back to main menu
menu-4-0 = 
menu-4-0-exec = menu-open-0
;; Split: Vertical
menu-4-1 = vert
menu-4-1-exec = i3-msg 'split v'
;; Split: Horizontal
menu-4-2 = horz
menu-4-2-exec = i3-msg 'split h'
;; Resize: Back to main menu
menu-5-0 = 
menu-5-0-exec = menu-open-0
;; Resize: Grow height
menu-5-1 = h+
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
;; Resize: Shrink height
menu-5-2 = h-
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
;; Resize: Grow width
menu-5-3 = w+
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
;; Resize: Shrink width
menu-5-4 = w-
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
;; Move to workspace: Back to main menu
menu-6-0 = 
menu-6-0-exec = menu-open-0
;; Move to workspace: 1
menu-6-1 = 1
menu-6-1-exec = i3-msg 'move container to workspace 1'
;; Move to workspace: 2
menu-6-2 = 2
menu-6-2-exec = i3-msg 'move container to workspace 2'
;; Move to workspace: 3
menu-6-3 = 3
menu-6-3-exec = i3-msg 'move container to workspace 3'
;; Move to workspace: 4
menu-6-4 = 4
menu-6-4-exec = i3-msg 'move container to workspace 4'
;; Move to workspace: 5
menu-6-5 = 5
menu-6-5-exec = i3-msg 'move container to workspace 5'
;; Move to workspace: 6
menu-6-6 = 6
menu-6-6-exec = i3-msg 'move container to workspace 6'
;; Move to workspace: 7
menu-6-7 = 7
menu-6-7-exec = i3-msg 'move container to workspace 7'
;; Move to workspace: 8
menu-6-8 = 8
menu-6-8-exec = i3-msg 'move container to workspace 8'
;; Move to workspace: 9
menu-6-9 = 9
menu-6-9-exec = i3-msg 'move container to workspace 9'
;; Move to workspace: 10
menu-6-10 = "10"
menu-6-10-exec = i3-msg 'move container to workspace 10'
;; Kill: Back to main menu
menu-7-0 = 
menu-7-0-exec = menu-open-0
;; Kill: Kill
menu-7-1 = "confirm"
menu-7-1-exec = i3-msg 'kill'
;; Power: Back to main menu
menu-8-0 = 
menu-8-0-exec = menu-open-0
;; Power: Screen off
menu-8-1 = 
menu-8-1-exec = xset dpms force off
;; Power: Lock
menu-8-2 = 
menu-8-2-exec = i3lock
;; Power: Reboot
menu-8-3 = 
menu-8-3-exec = shutdown -r now
;; Power: Shutdown
menu-8-4 = ""
menu-8-4-exec = shutdown -h now
+503
View File
@@ -0,0 +1,503 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = #000
foreground = #fff
foreground-alt = #555
[bar/landscape]
; not used: songname menu-media xbacklightbuttons
modules-left = i3touchmenu update ovpn nvpn usbmodem1 usbmodem2 usbmodem3 eth wlan
modules-center = xbacklight i3 volume
modules-right = cpu memory temperature disk battery date
monitor = ${env:MONITOR:eDP1}
width = 100%
height = 20
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
tray-position = left
tray-padding = 9
tray-detached = false
tray-maxsize = 15
tray-background = ${root.background}
tray-scale = 1.0
enable-ipc = true
[bar/portrait]
; not used: songname menu-media update disk eth
modules-left = i3touchmenu xbacklightbuttons ovpn nvpn usbmodem1 usbmodem2 usbmodem3 wlanshort
modules-center = xbacklight i3 volume
modules-right = cpu memory temperature batteryshort date
monitor = ${env:MONITOR:eDP1}
width = 100%
height = 20
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #000
separator =|
module-margin-left = 1
module-margin-right = 1
padding-right= 2
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
font-1 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
tray-position = left
tray-padding = 9
tray-detached = false
tray-maxsize = 15
tray-background = ${root.background}
tray-scale = 1.0
enable-ipc = true
[module/i3]
type = internal/i3
pin-workspaces = false
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = true
reverse-scroll = true
fuzzy-match = false
format = <label-state> <label-mode>
label-mode = %mode%
label-mode-padding = 1
label-mode-background = ${colors.background}
label-focused =%icon%%name%
label-focused-foreground = ${colors.foreground}
label-focused-background = ${colors.background}
label-focused-underline = #fff
label-focused-margin = 2
label-unfocused =%icon%%name%
label-unfocused-foreground = ${colors.foreground}
label-unfocused-background = ${colors.background}
label-unfocused-margin = 1
label-visible =%icon%%name%
label-visible-underline = #fff
label-visible-margin = 1
label-urgent =%icon%%name%!
label-urgent-foreground = ${colors.foreground-alt}
label-urgent-background = ${colors.background}
label-urgent-padding = 1
[module/menu-media]
type = custom/menu
expand-right = true
label-open = 
label-close = 
label-separator = " "
menu-0-0 = 
menu-0-0-exec = "playerctl previous"
menu-0-1 = 
menu-0-1-exec = "playerctl play-pause"
menu-0-2 = 
menu-0-2-exec = "playerctl next"
[module/ovpn]
type = custom/script
interval = 3
format = ovpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nmcli con show --active | grep vpn | cut -c1-12 | tr -d ' ')
[module/nvpn]
type = custom/script
interval = 3
format = nvpn: <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(nordvpn status | grep -oP '(?<=Current server: ).*' | cut -f1 -d'.')
[module/update]
type = custom/script
interval = 60
format = upd: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(yay -Qu 2>/dev/null | wc -l | awk '$1 ~ /^[[:digit:]]+$/')"
click-left = "setsid urxvt -e sh -c 'echo ---UPDATE LIST---; echo; yay -Qu; echo ; read -p ---END---'"
click-right = "setsid urxvt -e sh -c 'echo ---UPDATING---; echo ; yay -Syu --sudoloop; echo ; read -p ---END---'"
click-middle = "setsid urxvt -e sh -c 'echo ---UPDATING, NOCONFIRM---; echo ; yay -Syu --sudoloop --noconfirm; echo ; read -p ---END---'"
[module/quicklaunch]
type = custom/script
format = | <label>
interval = 999999999
exec = echo quick
label = quick
label-maxlen=5
label-ellipsis=false
click-left = "setsid quicklaunch"
[module/songname]
type = custom/script
interval = 3
format = <label>
label-maxlen=50
label-ellipsis=true
exec = echo $(printf "%s: %s" "$(playerctl metadata artist 2>&1)" "$(playerctl metadata title 2>&1)" | sed -r 's/No players found//g;' | awk 'length > 2')
click-left = "playerctl play-pause"
click-right = "playerctl next"
click-middle = "playerctl previous"
[module/xbacklightbuttons]
type = custom/menu
expand-right = true
label-open = blght
label-close = x
label-separator = " "
menu-0-0 = -
menu-0-0-exec = "xbacklight -dec 10; notify-send 'brightness down'"
menu-0-1 = +
menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
[module/xbacklight]
type = internal/xbacklight
format = <label>
label = %percentage% 
[module/cpu]
type = internal/cpu
interval = 2
label = cpu: %percentage%%
[module/memory]
type = internal/memory
interval = 2
label = ram: %percentage_used%%
[module/temperature]
type = internal/temperature
interval = 3
label = tmp: %temperature-c%
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %ifname%: %local_ip% [%essid%]
[module/wlanshort]
type = internal/network
interface = wlp2s0
interval = 3
format-connected = <label-connected>
label-connected = %essid%
[module/eth]
type = internal/network
interface = enp60s0u1u4
interval = 3
format-connected = <label-connected>
label-connected = %ifname%: %local_ip%
[module/usbmodem1]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u1 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem2]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u6 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/usbmodem3]
type = custom/script
format = usb: <label>
interval = 3
exec = echo $(ip -4 addr show enp0s20f0u3 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
[module/date]
type = internal/date
interval = 1
date = tme:
date-alt = %d.%m.%Y,
time = %H:%M
time-alt = %H:%M:%S
label = %date% %time%
[module/volume]
type = internal/alsa
format-volume = <label-volume>
label-volume =  %percentage%
label-volume-foreground = ${root.foreground}
format-muted-foreground = ${root.foreground}
label-muted =  x
[module/battery]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%% (+%consumption%W, %time%)
label-discharging = bat: %percentage%% (-%consumption%W, %time%)
[module/batteryshort]
type = internal/battery
battery = BAT0
poll-interval = 3
adapter = ADP1
full-at = 95
label-full = bat: %percentage%%
label-charging = bat: %percentage%%
label-discharging = bat: %percentage%%
[module/disk]
type = internal/fs
mount-0 = /
interval = 10
fixed-values = true
spacing = 4
label-mounted = dsk: %used% / %total%
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 5
[module/i3touchmenu]
type = custom/menu
expand-right = true
format-spacing = 1
;; Open the menu
label-open = "| touch"
label-open-foreground = #FFF
;; Close the menu
label-close = "| x"
label-separator = "'"
;; Launcher
menu-0-0 = 
menu-0-0-exec = menu-open-1
;; Move
menu-0-1 = 
menu-0-1-exec = menu-open-2
;; Layout
menu-0-2 = 
menu-0-2-exec = menu-open-3
;; Split
menu-0-3 = 
menu-0-3-exec = menu-open-4
;; Resize
menu-0-4 = 
menu-0-4-exec = menu-open-5
;; Move to workspace
menu-0-5 = 
menu-0-5-exec = menu-open-6
;; Kill
menu-0-6 = 
menu-0-6-exec = menu-open-7
;; Power
menu-0-7 =""
menu-0-7-exec = menu-open-8
;; Launcher: Back to main menu
menu-1-0 = 
menu-1-0-exec = menu-open-0
;; Launcher
menu-1-1="quick"
menu-1-1-exec= setsid quicklaunch
:: Launcher
menu-1-2="xournal"
menu-1-2-exec = "setsid xournalpp"
:: Launcher
menu-1-3="sync"
menu-1-3-exec = "setsid python Sync/o_school/5AHEL/Notebooks/pdfconvert.py"
:: Launcher
menu-1-4=""
menu-1-4-exec = urxvt &
;; Move: Back to main menu
menu-2-0 = 
menu-2-0-exec = menu-open-0
;; Move: Left
menu-2-1 = 
menu-2-1-exec = i3-msg 'move left'
;; Move: Right
menu-2-2 = 
menu-2-2-exec = i3-msg 'move right'
;; Move: Up
menu-2-3 = 
menu-2-3-exec = i3-msg 'move up'
;; Move: Down
menu-2-4 = ""
menu-2-4-exec = i3-msg 'move down'
;; Layout: Back to main menu
menu-3-0 = 
menu-3-0-exec = menu-open-0
;; Layout: Split
menu-3-1 = split
menu-3-1-exec = i3-msg 'layout toggle split'
;; Layout: Stacking
menu-3-2 = stack
menu-3-2-exec = i3-msg 'layout stacking'
;; Layout: Tabbed
menu-3-3 = tab
menu-3-3-exec = i3-msg 'layout tabbed'
;; Layout: Toggle floating
menu-3-4 = float
menu-3-4-exec = i3-msg 'floating toggle'
;; Split: Back to main menu
menu-4-0 = 
menu-4-0-exec = menu-open-0
;; Split: Vertical
menu-4-1 = vert
menu-4-1-exec = i3-msg 'split v'
;; Split: Horizontal
menu-4-2 = horz
menu-4-2-exec = i3-msg 'split h'
;; Resize: Back to main menu
menu-5-0 = 
menu-5-0-exec = menu-open-0
;; Resize: Grow height
menu-5-1 = h+
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
;; Resize: Shrink height
menu-5-2 = h-
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
;; Resize: Grow width
menu-5-3 = w+
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
;; Resize: Shrink width
menu-5-4 = w-
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
;; Move to workspace: Back to main menu
menu-6-0 = 
menu-6-0-exec = menu-open-0
;; Move to workspace: 1
menu-6-1 = 1
menu-6-1-exec = i3-msg 'move container to workspace 1'
;; Move to workspace: 2
menu-6-2 = 2
menu-6-2-exec = i3-msg 'move container to workspace 2'
;; Move to workspace: 3
menu-6-3 = 3
menu-6-3-exec = i3-msg 'move container to workspace 3'
;; Move to workspace: 4
menu-6-4 = 4
menu-6-4-exec = i3-msg 'move container to workspace 4'
;; Move to workspace: 5
menu-6-5 = 5
menu-6-5-exec = i3-msg 'move container to workspace 5'
;; Move to workspace: 6
menu-6-6 = 6
menu-6-6-exec = i3-msg 'move container to workspace 6'
;; Move to workspace: 7
menu-6-7 = 7
menu-6-7-exec = i3-msg 'move container to workspace 7'
;; Move to workspace: 8
menu-6-8 = 8
menu-6-8-exec = i3-msg 'move container to workspace 8'
;; Move to workspace: 9
menu-6-9 = 9
menu-6-9-exec = i3-msg 'move container to workspace 9'
;; Move to workspace: 10
menu-6-10 = "10"
menu-6-10-exec = i3-msg 'move container to workspace 10'
;; Kill: Back to main menu
menu-7-0 = 
menu-7-0-exec = menu-open-0
;; Kill: Kill
menu-7-1 = "confirm"
menu-7-1-exec = i3-msg 'kill'
;; Power: Back to main menu
menu-8-0 = 
menu-8-0-exec = menu-open-0
;; Power: Screen off
menu-8-1 = 
menu-8-1-exec = xset dpms force off
;; Power: Lock
menu-8-2 = 
menu-8-2-exec = i3lock
;; Power: Reboot
menu-8-3 = 
menu-8-3-exec = shutdown -r now
;; Power: Shutdown
menu-8-4 = ""
menu-8-4-exec = shutdown -h now
-14
View File
@@ -1,14 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch
polybar main -r &
polybar second -r &
#insync
echo "Bar launched..."
@@ -1,14 +0,0 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch
polybar portrait -r &
insync
echo "Bar launched..."
-122
View File
@@ -1,122 +0,0 @@
#!/bin/python
import sys
import dbus
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'-t',
'--trunclen',
type=int,
metavar='trunclen'
)
parser.add_argument(
'-f',
'--format',
type=str,
metavar='custom format',
dest='custom_format'
)
parser.add_argument(
'-p',
'--playpause',
type=str,
metavar='play-pause indicator',
dest='play_pause'
)
parser.add_argument(
'--font',
type=str,
metavar='the index of the font to use for the main label',
dest='font'
)
parser.add_argument(
'--playpause-font',
type=str,
metavar='the index of the font to use to display the playpause indicator',
dest='play_pause_font'
)
args = parser.parse_args()
def fix_string(string):
# corrects encoding for the python version used
if sys.version_info.major == 3:
return string
else:
return string.encode('utf-8')
# Default parameters
output = fix_string(u'{play_pause} {artist}: {song}')
trunclen = 25
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
label_with_font = '%{{T{font}}}{label}%{{T-}}'
font = args.font
play_pause_font = args.play_pause_font
# parameters can be overwritten by args
if args.trunclen is not None:
trunclen = args.trunclen
if args.custom_format is not None:
output = args.custom_format
if args.play_pause is not None:
play_pause = args.play_pause
try:
session_bus = dbus.SessionBus()
spotify_bus = session_bus.get_object(
'org.mpris.MediaPlayer2.spotify',
'/org/mpris/MediaPlayer2'
)
spotify_properties = dbus.Interface(
spotify_bus,
'org.freedesktop.DBus.Properties'
)
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
# Handle play/pause label
play_pause = play_pause.split(',')
if status == 'Playing':
play_pause = play_pause[0]
elif status == 'Paused':
play_pause = play_pause[1]
else:
play_pause = str()
if play_pause_font:
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
# Handle main label
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
if not artist and not song:
print('')
else:
if len(song) > trunclen:
song = song[0:trunclen]
song += '...'
if ('(' in song) and (')' not in song):
song += ')'
if font:
artist = label_with_font.format(font=font, label=artist)
song = label_with_font.format(font=font, label=song)
print(output.format(artist=artist, song=song, play_pause=play_pause))
except Exception as e:
if isinstance(e, dbus.exceptions.DBusException):
print('')
else:
print(e)
+137
View File
@@ -0,0 +1,137 @@
* {
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
foreground: rgba ( 193, 193, 193, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 39, 50, 56, 100 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 255, 24, 68, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 255, 24, 68, 100 % );
alternate-urgent-background: rgba ( 39, 50, 56, 100 % );
active-foreground: rgba ( 128, 203, 196, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
alternate-active-background: rgba ( 39, 50, 56, 100 % );
background: rgba ( 39, 50, 56, 100 % );
bordercolor: rgba ( 39, 50, 56, 100 % );
alternate-normal-foreground: @foreground;
normal-background: rgba ( 39, 50, 56, 100 % );
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 57, 66, 73, 100 % );
border-color: @foreground;
spacing: 2;
separatorcolor: rgba ( 30, 37, 41, 100 % );
urgent-background: rgba ( 39, 50, 56, 100 % );
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 39, 50, 56, 100 % );
selected-active-background: rgba ( 57, 66, 73, 100 % );
}
#window {
background-color: @background;
border: 1;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
}
#prompt {
spacing: 0;
text-color: @normal-foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
}
+137
View File
@@ -0,0 +1,137 @@
* {
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
foreground: rgba ( 193, 193, 193, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 65, 39, 39, 100%);
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 255, 24, 68, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 255, 24, 68, 100 % );
alternate-urgent-background: rgba ( 65, 39, 39, 100%);
active-foreground: rgba ( 128, 203, 196, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
alternate-active-background: rgba ( 65, 39, 39, 100%);
background: rgba ( 65, 39, 39, 100%);
bordercolor: rgba ( 65, 39, 39, 100%);
alternate-normal-foreground: @foreground;
normal-background: rgba ( 65, 39, 39, 100%);
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 73, 57, 57, 100 % );
border-color: @foreground;
spacing: 2;
separatorcolor: rgba ( 41, 30, 30, 100 % );
urgent-background: rgba ( 65, 39, 39, 100%);
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 65, 39, 39, 100%);
selected-active-background: rgba ( 57, 66, 73, 100 % );
}
#window {
background-color: @background;
border: 1;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
}
#prompt {
spacing: 0;
text-color: @normal-foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
}
+137
View File
@@ -0,0 +1,137 @@
* {
selected-normal-foreground: rgba ( 255, 255, 255, 100 % );
foreground: rgba ( 193, 193, 193, 100 % );
normal-foreground: @foreground;
alternate-normal-background: rgba ( 39, 50, 56, 100 % );
red: rgba ( 220, 50, 47, 100 % );
selected-urgent-foreground: rgba ( 255, 24, 68, 100 % );
blue: rgba ( 38, 139, 210, 100 % );
urgent-foreground: rgba ( 255, 24, 68, 100 % );
alternate-urgent-background: rgba ( 39, 50, 56, 100 % );
active-foreground: rgba ( 128, 203, 196, 100 % );
lightbg: rgba ( 238, 232, 213, 100 % );
selected-active-foreground: rgba ( 128, 203, 196, 100 % );
alternate-active-background: rgba ( 39, 50, 56, 100 % );
background: rgba ( 39, 50, 56, 100 % );
bordercolor: rgba ( 39, 50, 56, 100 % );
alternate-normal-foreground: @foreground;
normal-background: rgba ( 39, 50, 56, 100 % );
lightfg: rgba ( 88, 104, 117, 100 % );
selected-normal-background: rgba ( 57, 66, 73, 100 % );
border-color: @foreground;
spacing: 2;
separatorcolor: rgba ( 30, 37, 41, 100 % );
urgent-background: rgba ( 39, 50, 56, 100 % );
selected-urgent-background: rgba ( 57, 66, 73, 100 % );
alternate-urgent-foreground: @urgent-foreground;
background-color: rgba ( 0, 0, 0, 0 % );
alternate-active-foreground: @active-foreground;
active-background: rgba ( 39, 50, 56, 100 % );
selected-active-background: rgba ( 57, 66, 73, 100 % );
}
#window {
background-color: @background;
border: 1;
padding: 5;
}
#mainbox {
border: 0;
padding: 0;
}
#message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
#textbox {
text-color: @foreground;
}
#listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: true;
padding: 2px 0px 0px ;
}
#element {
border: 0;
padding: 1px ;
}
#element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
#element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
#element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
#element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
#element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
#element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
#element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
#element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
#scrollbar {
width: 4px ;
border: 0;
handle-width: 8px ;
padding: 0;
}
#sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
#button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
#inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 1px ;
}
#case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
#entry {
spacing: 0;
text-color: @normal-foreground;
}
#prompt {
spacing: 0;
text-color: @normal-foreground;
}
#inputbar {
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}
#textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em ;
text-color: @normal-foreground;
}
+36
View File
@@ -0,0 +1,36 @@
[Setting]
spotify_path = /opt/spotify
prefs_path = /home/sim/.config/spotify/prefs
current_theme = SpicetifyDefault
color_scheme =
inject_css = 1
replace_colors = 1
overwrite_assets = 0
[Preprocesses]
disable_sentry = 1
disable_ui_logging = 1
remove_rtl_rule = 1
expose_apis = 1
[AdditionalOptions]
experimental_features = 0
song_page = 0
visualization_high_framerate = 0
minimal_ui = 0
radio = 0
search_in_sidebar = 0
custom_apps =
fastUser_switching = 0
lyric_force_no_sync = 0
made_for_you_hub = 0
home = 0
lyric_always_show = 0
new_feedback_ui = 0
tastebuds = 0
extensions =
; DO NOT CHANGE!
[Backup]
version = 1.1.10.546.ge08ef575
@@ -0,0 +1,37 @@
[Setting]
inject_css = 1
replace_colors = 1
overwrite_assets = 0
spotify_path = /opt/spotify
prefs_path = /home/sim/.config/spotify/prefs
current_theme = Thinkpad
; current_theme = darkblue
color_scheme =
[Preprocesses]
disable_sentry = 1
disable_ui_logging = 1
remove_rtl_rule = 1
expose_apis = 1
[AdditionalOptions]
made_for_you_hub = 0
new_feedback_ui = 0
custom_apps =
experimental_features = 0
fastUser_switching = 0
home = 0
lyric_always_show = 1
visualization_high_framerate = 0
extensions =
lyric_force_no_sync = 0
radio = 0
search_in_sidebar = 0
song_page = 0
minimal_ui = 0
tastebuds = 0
; DO NOT CHANGE!
[Backup]
version = 1.1.10.546.ge08ef575
+1
View File
@@ -0,0 +1 @@
#3badff
-1
View File
@@ -1 +0,0 @@
#cc2929
@@ -1,5 +1,5 @@
#Refresh rate of the visualizers. A really high refresh rate may cause screen tearing. Default is 20.
visualizer.fps=50
visualizer.fps=40
#Defaults to "/tmp/mpd.fifo"
mpd.fifo.path
@@ -9,30 +9,35 @@ mpd.fifo.path
audio.stereo.enabled=true
#Specifies how often the visualizer will change in seconds. 0 means do not rotate. Default is 0.
#visualizer.rotation.secs=10
visualizer.rotation.secs=0
#Configures the samples rate and the cutoff frequencies.
audio.sampling.frequency=44100
audio.low.cutoff.frequency=30
audio.low.cutoff.frequency=1
audio.high.cutoff.frequency=22050
##Applies scaling factor to both lorenz and ellipse visualizers. This is useful when the system audio is set
#to a low volume.
visualizer.scaling.multiplier=1
#Configures the visualizers and the order they are in. Available visualizers are spectrum,lorenz,ellipse.
#Defaults to spectrum,ellipse,lorenz
visualizers=spectrum
#Configures what character the spectrum visualizer will use. Specifying a space (e.g " ") means the
#background will be colored instead of the character. Defaults to " ".
#visualizer.spectrum.character=#
#Spectrum bar width. Defaults to 1.
visualizer.spectrum.bar.width=3
visualizer.spectrum.bar.width=2
#The amount of space between each bar in the spectrum visualizer. Defaults to 1. It's possible to set this to
#zero to have no space between bars
visualizer.spectrum.bar.spacing=1
#Available smoothing options are monstercat, sgs, none. Defaults to sgs.
visualizer.spectrum.smoothing.mode=monstercat
#visualizer.spectrum.smoothing.mode=monstercat
#This configures the falloff effect on the spectrum visualizer. Available falloff options are fill,top,none.
#Defaults to "fill"
@@ -53,21 +58,28 @@ visualizer.spectrum.reversed=false
#Sets the audio sources to use. Currently available ones are "mpd" and "alsa"Sets the audio sources to use.
#Currently available ones are "mpd", "pulse", and "alsa". Defaults to "mpd".
audio.sources=pulse
#audio.sources=pulse
##vis tries to find the correct pulseaudio sink, however this will not work on all systems.
#If pulse audio is not working with vis try switching the audio source. A list can be found by running the
#command pacmd list-sinks | grep -e 'name:' -e 'index'
audio.pulse.source=0
#audio.pulse.source=0
#This configures the sgs smoothing effect on the spectrum visualizer. More points spreads out the smoothing
#effect and increasing passes runs the smoother multiple times on reach run. Defaults are points=3 and passes=2.
visualizer.sgs.smoothing.points=3
visualizer.sgs.smoothing.passes=2
#Configures what character the ellipse visualizer will use. Specifying a space (e.g " ") means the
#background will be colored instead of the character. Defaults to " ".
#visualizer.ellipse.character=#
#The radius of each color ring in the ellipse visualizer. Defaults to 2.
visualizer.ellipse.radius=2
## Turns off overriding the user's terminal colors
colors.override.terminal=false
#colors.override.terminal=false
#Specifies the color scheme. The color scheme must be in ~/.config/vis/colors/ directory. Default is "colors"
colors.scheme=thinkpad
colors.scheme=blue
+85
View File
@@ -0,0 +1,85 @@
#Refresh rate of the visualizers. A really high refresh rate may cause screen tearing. Default is 20.
visualizer.fps=40
#Defaults to "/tmp/mpd.fifo"
mpd.fifo.path
#If set to false the visualizers will use mono mode instead of stereo. Some visualizers will
#behave differently when mono is enabled. For example, spectrum show two sets of bars.
audio.stereo.enabled=true
#Specifies how often the visualizer will change in seconds. 0 means do not rotate. Default is 0.
visualizer.rotation.secs=0
#Configures the samples rate and the cutoff frequencies.
audio.sampling.frequency=44100
audio.low.cutoff.frequency=1
audio.high.cutoff.frequency=22050
##Applies scaling factor to both lorenz and ellipse visualizers. This is useful when the system audio is set
#to a low volume.
visualizer.scaling.multiplier=1
#Configures the visualizers and the order they are in. Available visualizers are spectrum,lorenz,ellipse.
#Defaults to spectrum,ellipse,lorenz
visualizers=spectrum
#Configures what character the spectrum visualizer will use. Specifying a space (e.g " ") means the
#background will be colored instead of the character. Defaults to " ".
#visualizer.spectrum.character=#
#Spectrum bar width. Defaults to 1.
visualizer.spectrum.bar.width=2
#The amount of space between each bar in the spectrum visualizer. Defaults to 1. It's possible to set this to
#zero to have no space between bars
visualizer.spectrum.bar.spacing=1
#Available smoothing options are monstercat, sgs, none. Defaults to sgs.
#visualizer.spectrum.smoothing.mode=monstercat
#This configures the falloff effect on the spectrum visualizer. Available falloff options are fill,top,none.
#Defaults to "fill"
visualizer.spectrum.falloff.mode=fill
#Configures how fast the falloff character falls. This is an exponential falloff so values usually look
#best 0.9+ and small changes in this value can have a large effect. Defaults to 0.95
visualizer.spectrum.falloff.weight=0.95
#Margins in percent of total screen for spectrum visualizer. All margins default to 0
visualizer.spectrum.top.margin=0.0
visualizer.spectrum.bottom.margin=0.0
visualizer.spectrum.right.margin=0.0
visualizer.spectrum.left.margin=0.0
#Reverses the direction of the spectrum so that high freqs are first and low freqs last. Defaults to false.
visualizer.spectrum.reversed=false
#Sets the audio sources to use. Currently available ones are "mpd" and "alsa"Sets the audio sources to use.
#Currently available ones are "mpd", "pulse", and "alsa". Defaults to "mpd".
#audio.sources=pulse
##vis tries to find the correct pulseaudio sink, however this will not work on all systems.
#If pulse audio is not working with vis try switching the audio source. A list can be found by running the
#command pacmd list-sinks | grep -e 'name:' -e 'index'
#audio.pulse.source=0
#This configures the sgs smoothing effect on the spectrum visualizer. More points spreads out the smoothing
#effect and increasing passes runs the smoother multiple times on reach run. Defaults are points=3 and passes=2.
visualizer.sgs.smoothing.points=3
visualizer.sgs.smoothing.passes=2
#Configures what character the ellipse visualizer will use. Specifying a space (e.g " ") means the
#background will be colored instead of the character. Defaults to " ".
#visualizer.ellipse.character=#
#The radius of each color ring in the ellipse visualizer. Defaults to 2.
visualizer.ellipse.radius=2
## Turns off overriding the user's terminal colors
#colors.override.terminal=false
#Specifies the color scheme. The color scheme must be in ~/.config/vis/colors/ directory. Default is "colors"
colors.scheme=blue
View File