diff --git a/files/.Xresources b/files/.Xresources deleted file mode 100644 index f008d35..0000000 --- a/files/.Xresources +++ /dev/null @@ -1,120 +0,0 @@ -#define C_BG #1c1c1c -#define C_FG #B7BBB7 -! black -#define C_COLOR0 #2C2F33 -! red -#define C_COLOR1 #B04C50 -! green -#define C_COLOR2 #919652 -! yellow -#define C_COLOR3 #E2995C -! light blue -#define C_COLOR4 #527C77 -! magenta -#define C_COLOR5 #8D6494 -! blue -#define C_COLOR6 #66899D -! light -#define C_COLOR7 #A6ABA6 -! dark -#define C_COLOR8 #4B5056 -! white -#define C_COLOR15 #DDE3DC - -#define C_PRIMARY C_COLOR3 -#define C_SECONDARY C_COLOR5 -#define C_ERROR C_COLOR1 -#define C_FG_ENABLED C_COLOR15 -#define C_FG_DISABLED C_COLOR8 -#define C_BG_ENABLED #2c2f33 -#define C_BG_DISABLED C_BG - - -! Fonts -#define F_MONO Hack Nerd Font -#define F_SANS Noto Sans -#define F_ICON_1 Material Icons -#define F_ICON_2 material\-wifi -! -! color -xterm*background: C_BG -xterm*foreground: C_FG -*color0: C_COLOR0 -*color8: C_COLOR8 -*color1: C_COLOR1 -*color9: C_COLOR1 -*color2: C_COLOR2 -*color10: C_COLOR2 -*color3: C_COLOR3 -*color11: C_COLOR3 -*color4: C_COLOR4 -*color12: C_COLOR4 -*color5: C_COLOR5 -*color13: C_COLOR5 -*color6: C_COLOR6 -*color14: C_COLOR6 -*color7: C_COLOR7 -*color15: C_COLOR15 - -! X -Xcursor.size: 16 - -! Rofi -! State: 'bg', 'fg', 'bgalt', 'hlbg', 'hlfg' -rofi.color-normal: #383838, #ffffff, #383838, #f0544c, #ffffff -rofi.color-urgent: #383838, #ffffff, #383838, #f0544c, #ffffff -rofi.color-active: #383838, #ffffff, #383838, #f0544c, #ffffff - -! 'bg', 'border','separator' -rofi.color-window: #383838, #c7c7c7, #383838 - -rofi.separator-style: none -rofi.bw: 0 -rofi.width: 40 -rofi.location: 0 -rofi.font: F_SANS 12 - -! i3 -i3wm*font: F_MONO -i3wm*bg: #3838383 -i3wm*fg: C_FG -i3wm*border: #3838383 -!i3wm*border: #c7c7c7 -i3wm*active: #f0544c - -! lock -lock.font: F_SANS -lock.color.foreground: C_FG_ENABLED -lock.color.background: C_BG_ENABLED -lock.color.primary: C_PRIMARY -lock.color.secondary: C_SECONDARY -lock.color.error: C_ERROR - -! xterm -xterm.termName: xterm-256color -xterm.vt100.locale: true - -xterm*borderWidth: 0 - -! font -xterm*renderFont: true -xterm*faceName: F_MONO -xterm*faceSize: 11 - -! encoding -xterm.ttyModes: erase ^? -xterm.vt100.backarrowKey: false -xterm.vt100.metaSendsEscape: true -xterm.vt100.translations: #override \n\ - Ctrl minus: smaller-vt-font() \n\ - Ctrl plus: larger-vt-font() \n\ - Ctrl 0: set-vt-font(d) \n\ - Ctrl Shift C: copy-selection(CLIPBOARD) \n\ - Ctrl Shift V: insert-selection(CLIPBOARD) \n\ - Shift : exec-formatted("xdg-open '%t'", PRIMARY) - -! mouse selection -xterm*on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+ -xterm*highlightSelection: true -xterm*trimSelection: true - diff --git a/files/.config/compton.conf b/files/.config/compton.conf deleted file mode 100644 index 730d33b..0000000 --- a/files/.config/compton.conf +++ /dev/null @@ -1,254 +0,0 @@ -# Thank you code_nomad: http://9m.no/ꪯ鵞 - -################################# -# -# 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. -# Useful with --glx-swap-method, as well. -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 = false; - -# GLX backend: Avoid rebinding pixmap on window damage. -# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). -# 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 ="-1"; - -################################# -# -# Shadows -# -################################# - -# Enabled client-side shadows on windows. -shadow = true; -# Don't draw shadows on DND windows. -no-dnd-shadow = true; -# Avoid drawing shadows on dock/panel windows. -no-dock-shadow = true; -# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. -clear-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 compton 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 = 'Notification'", - "name = 'Plank'", - "name = 'Docky'", - "name = 'Kupfer'", - "name = 'xfce4-notifyd'", - "name *= 'VLC'", - "name *= 'compton'", - "name *= 'Chromium'", - "name *= 'Chrome'", - "class_g = 'Conky'", - "class_g = 'Kupfer'", - "class_g = 'Synapse'", - "class_g ?= 'Notify-osd'", - "class_g ?= 'Cairo-dock'", - "class_g ?= 'Xfce4-notifyd'", - "class_g ?= 'Xfce4-power-manager'", - "_GTK_FRAME_EXTENTS@:c" -]; -# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) -shadow-ignore-shaped = false; - -################################# -# -# Opacity -# -################################# - -menu-opacity = 1; -inactive-opacity = 1; -active-opacity = 1; -frame-opacity = 1; -inactive-opacity-override = true; -alpha-step = 0.06; - -# Dim inactive windows. (0.0 - 1.0) -#inactive-dim = 0.3; -# 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 = false; -# Blur background of opaque windows with transparent frames as well. -blur-background-frame = false; -# Do not let blur radius adjust based on window opacity. -blur-background-fixed = false; - -blur-kern = "7x7box"; -blur-background-exclude = [ - "window_type = 'dock'", - "window_type = 'desktop'" -]; - -opacity-rule = [ - "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", - - "85:class_g = 'UXTerm' && _NET_WM_STATE@:32a != '_NET_WM_STATE_HIDDEN' && _NET_WM_STATE@:32a != '_NET_WM_STATE_FULLSCREEN'" -] - -################################# -# -# 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, compton will try detecting this with X RandR extension. -refresh-rate = 0; - -# Set VSync method. VSync methods currently available: -# none: No VSync -# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. -# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. -# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. -# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental. -# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. -# (Note some VSync methods may not be enabled at compile time.) -vsync = "none"; - -# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. -# Reported to have no effect, though. -dbe = false; - -# Painting on X Composite overlay window. Recommended. -paint-on-overlay = true; - -# Limit compton 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. -# paint-on-overlay may make the flickering less obvious. -unredir-if-possible = true; - -# 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 = true; - shadow = false; - opacity = 0.85; - focus = true; - }; - - dropdown_menu = - { - fade = false; - }; - - popup_menu = - { - fade = false; - }; - - combo = - { - fade = false; - }; -}; diff --git a/files/.config/gamemode.ini b/files/.config/gamemode.ini index 966810f..f569072 100644 --- a/files/.config/gamemode.ini +++ b/files/.config/gamemode.ini @@ -1,3 +1,3 @@ [custom] -start=$HOME/.local/bin/__on-gamemode start -end=$HOME/.local/bin/__on-gamemode end +start=$HOME/bin/__on-gamemode start +end=$HOME/bin/__on-gamemode end diff --git a/files/.config/i3/config b/files/.config/i3/config deleted file mode 100644 index a2ea9b2..0000000 --- a/files/.config/i3/config +++ /dev/null @@ -1,279 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see http://i3wm.org/docs/userguide.html for a complete reference! - - -# Set colors from Xresources -# Change 'color7' and 'color2' to whatever colors you want i3 to use -# from the generated scheme. -# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if -# it fails to get colors from Xresources for some reason. -set_from_resource $fg i3wm.color.fg #000000 -set_from_resource $bg i3wm.color.bg #FFFFFF -set_from_resource $border i3wm.color.border #FF0000 -set_from_resource $active i3wm.color.active #FF0000 - -# class border backgr. text indicator child_border -client.focused $active $bg $fg $border $active -client.focused_inactive $bg $bg $fg $border $border -client.unfocused $bg $bg $fg $border $border -client.urgent $bg $bg $active $border $border -client.placeholder $bg $bg $fg $border $border - -client.background $bg - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -set_from_resource $font i3wm.color.font monospace -font pango:$font 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -set $ws1 "1: 1 " -set $ws2 "2: 2 " -set $ws3 "3: 3 " -set $ws4 "4: 4 " -set $ws5 "5: 5 " -set $ws6 "6: 6 " -set $ws7 "7: 7 " -set $ws8 "8: 8 " -set $ws9 "9: 9 " -set $ws10 "10: 10 " - -# window title -for_window [class="^.*"] border pixel 2 title_format " %title" -for_window [floating] border pixel 1 -smart_borders on - -# GapS -gaps inner 16 -gaps outer -8 -smart_gaps on - -# Floating mod -for_window [class="^Pavucontrol$"] floating enable -for_window [class="^Pulseeffects$"] floating enable -for_window [class="Remmina" title="Remmina Remote Desktop Client"] floating enable -for_window [class="feh" title="pinned screenshot"] floating enable sticky enable -for_window [class="TeamViewer"] floating enable - -# https://github.com/ValveSoftware/steam-for-linux/issues/1040 -for_window [class="^Steam$" title="^Friends$"] floating enable -for_window [class="^Steam$" title="Steam - News"] floating enable -for_window [class="^Steam$" title=".* - Chat"] floating enable -for_window [class="^Steam$" title="^Settings$"] floating enable -for_window [class="^Steam$" title=".* - event started"] floating enable -for_window [class="^Steam$" title=".* CD key"] floating enable -for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable -for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable -for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable -for_window [title="^Steam Keyboard$"] floating enable - -# mod key -set $mod Mod4 - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# thunar -bindsym $mod+Mod1+Return exec thunar - -# kill focused window -bindsym $mod+Shift+q kill - -# start rofi (a program launcher) -bindsym $mod+Control+Return exec /bin/bash ~/.config/i3/rofi.bash -# start rofi-pass for password autotype -bindsym $mod+Shift+Return exec rofi-pass -# start rofi-radio -bindsym $mod+p exec ~/.config/i3/rofi-radio.py - -# change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right - -# disable focus follow mouse -focus_follows_mouse no - -# alternatively, you can use the cursor keys: -#bindsym $mod+Left focus left -#bindsym $mod+Down focus down -#bindsym $mod+Up focus up -#bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+h move left -bindsym $mod+Shift+j move down -bindsym $mod+Shift+k move up -bindsym $mod+Shift+l move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+Shift+backslash split h # | -bindsym $mod+backslash split h - -# split in vertical orientation -bindsym $mod+minus split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space exec center-float - -# toggle sticky -bindsym $mod+Ctrl+space sticky toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -bindsym $mod+d focus child - -# switch to workspace -bindsym $mod+q workspace back_and_forth -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 - -#bindsym $mod+Ctrl+Up workspace next -#bindsym $mod+Ctrl+Down workspace prev - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# Assignation -assign [class="^Slack$"] $ws1 -assign [class="^discord$"] $ws1 -assign [class="^looking-glass-client$"] $ws3 - -# screen -workspace $ws1 output HDMI-2 -workspace $ws2 output HDMI-2 -workspace $ws3 output HDMI-1 -workspace $ws4 output HDMI-1 -workspace $ws5 output HDMI-1 -workspace $ws6 output HDMI-1 -workspace $ws7 output HDMI-1 -workspace $ws8 output HDMI-1 -workspace $ws9 output HDMI-1 -workspace $ws10 output HDMI-1 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" -# toggle compton -bindsym $mod+c exec --no-startup-id systemctl --user is-active compton && systemctl --user stop compton || systemctl --user start compton -# lock the screen -bindsym $mod+Pause exec lock -# suspend -bindsym $mod+Shift+Pause exec systemctl suspend - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym h resize shrink width 10 px or 10 ppt - bindsym j resize grow height 10 px or 10 ppt - bindsym k resize shrink height 10 px or 10 ppt - bindsym l resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - #bindsym Left resize shrink width 10 px or 10 ppt - #bindsym Down resize grow height 10 px or 10 ppt - #bindsym Up resize shrink height 10 px or 10 ppt - #bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+r mode "resize" - -# reach systemd target -exec --no-startup-id systemctl --user import-environment -exec --no-startup-id systemctl --user start user-graphical-login.target - -exec --no-startup-id /bin/dex -a -exec --no-startup-id /bin/bash ~/.config/i3/startup.bash - -bar { - status_command i3status --config ~/.config/i3/i3status.conf | ~/.config/i3/wrapper.py - - output primary - font pango:$font 10 - height 28 - tray_padding 7 - position top - separator_symbol "|" - strip_workspace_numbers yes - - colors { - background #000000 - statusline $fg - - focused_workspace $bg_enabled $bg_enabled $fg - active_workspace #000000 #000000 $fg - inactive_workspace #000000 #000000 $fg_disabled - urgent_workspace #000000 #000000 $color3 - } -} - diff --git a/files/.config/i3/i3status.conf b/files/.config/i3/i3status.conf deleted file mode 100644 index 234d5a1..0000000 --- a/files/.config/i3/i3status.conf +++ /dev/null @@ -1,90 +0,0 @@ -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - -general { - colors = true - color_good = "#B7BBB7" - color_degraded = "#E2995C" - color_bad = "#B04C50" - - output_format = "i3bar" - interval = 5 -} - -order += "tztime local" -order += "wireless _first_" -order += "ethernet _first_" -order += "cpu_usage" -order += "memory" -order += "battery all" -order += "volume master" -order += "path_exists vpn" -order += "path_exists empty" - -tztime local { - format = " %Y-%m-%d %H:%M" -} - -wireless _first_ { - format_up = "直 <%essid> %ip" - format_down = "睊" - color_bad = "#4B5056" -} - -ethernet _first_ { - # if you use %speed, i3status requires root privileges - format_up = " %ip" - format_down = "" - color_bad = "#4B5056" -} - -cpu_usage { - format = " %usage" - degraded_threshold = 90 - max_threshold = 98 -} - -memory { - format = " %percentage_used" - memory_used_method = "memavailable" - threshold_degraded = "20%" - threshold_degraded = "5%" -} - -battery all { - format = "%status %percentage" - format_down = "" - status_chr = "" - status_bat = "" - status_unk = "" - status_full = "ﮣ" - integer_battery_capacity = true - last_full_capacity = true - hide_seconds = true - - threshold_type = "percentage" - low_threshold = 15 -} - -volume master { - device = "pulse" - format = "墳 %volume" - format_muted = "婢" - color_degraded = "#4B5056" -} - -path_exists vpn { - format = "" - format_down = "" - path = "/proc/sys/net/ipv4/conf/tun0" -} - -path_exists empty { - format = "" - path = "/" -} diff --git a/files/.config/i3/rofi-radio.py b/files/.config/i3/rofi-radio.py deleted file mode 100755 index d9a9d4b..0000000 --- a/files/.config/i3/rofi-radio.py +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env python3 -import json -import os -from subprocess import Popen, PIPE, check_output, check_call - -import yaml - - -station_name_file = '/run/user/%s/rofi-radio-name' % os.getuid() - -def mpv_ipc(*args): - try: - j = json.loads(check_output(['mpv-ipc'] + list(args))) - if j: - return j['data'] - except: - pass - return '' - -with open(os.path.expanduser("~/.local/share/rofi-radio/playlists.yaml")) as f: - stations = yaml.load(f) - -rofi_command = ['rofi', '-i', '-selected-row', '0', '-dmenu', '-p', 'mpv'] - -current_song = mpv_ipc('get_property_string', 'media-title') -if current_song: - try: - with open(station_name_file) as f: - station_name = f.readline() - except: - station_name = '' - rofi_command += ['-mesg', station_name] - commands = b"Play/Pause\nStop\nShuffle\nNext\nPrevious" - -else: - commands = bytes('\n'.join([s["name"] for s in stations]), 'utf8') - -rofi = Popen(rofi_command, stdout=PIPE, stdin=PIPE) -choice = rofi.communicate(input=commands)[0].decode('utf8').rstrip() - -if current_song: - if choice == "Play/Pause": - mpv_ipc('cycle', 'pause') - elif choice == "Stop": - mpv_ipc('stop') - elif choice == "Shuffle": - mpv_ipc('playlist-shuffle') - elif choice == "Next": - mpv_ipc('playlist-next') - elif choice == "Previous": - mpv_ipc('playlist-prev') -else: - s = [s for s in stations if s["name"] == choice] - if s: - # Load the selected playlist - loc = s[0]["loc"] - station_name = s[0]["name"] - if loc.startswith('http') or loc.startswith('ytdl'): - # Load the url - mpv_ipc('loadfile', loc) - else: - # Load the file - workdir = mpv_ipc('get_property_string', 'working-directory') - mpv_ipc('loadfile', os.path.expanduser(loc)) - station_name = loc - with open(station_name_file, 'w') as f: - f.write(station_name) - else: - # Try to load the user input - mpv_ipc('loadfile', choice) - mpv_ipc('set_property_string', 'pause', 'no') - - -# force update of i3status -check_call(['killall', '-USR1', 'i3status']) diff --git a/files/.config/i3/rofi.bash b/files/.config/i3/rofi.bash deleted file mode 100755 index 53625e6..0000000 --- a/files/.config/i3/rofi.bash +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -rofi -combi drun -show drun -modi drun,window - diff --git a/files/.config/i3/startup.bash b/files/.config/i3/startup.bash deleted file mode 100755 index c0c4672..0000000 --- a/files/.config/i3/startup.bash +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# Set wallpaper -$HOME/.fehbg || feh --bg-fill --no-xinerama /usr/share/pixmaps/wallpaper.jpg - -# Initial workspace and startup app -i3-msg workspace number "2: 2 " -i3-sensible-terminal - diff --git a/files/.config/i3/wrapper.py b/files/.config/i3/wrapper.py deleted file mode 100755 index 3be80e0..0000000 --- a/files/.config/i3/wrapper.py +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -# This script is a simple wrapper which prefixes each i3status line with custom -# information. It is a python reimplementation of: -# http://code.stapelberg.de/git/i3status/tree/contrib/wrapper.pl -# -# To use it, ensure your ~/.i3status.conf contains this line: -# output_format = "i3bar" -# in the 'general' section. -# Then, in your ~/.i3/config, use: -# status_command i3status | ~/i3status/contrib/wrapper.py -# In the 'bar' section. -# -# In its current version it will display the cpu frequency governor, but you -# are free to change it to display whatever you like, see the comment in the -# source code below. -# -# © 2012 Valentin Haenel -# -# This program is free software. It comes without any warranty, to the extent -# permitted by applicable law. You can redistribute it and/or modify it under -# the terms of the Do What The Fuck You Want To Public License (WTFPL), Version -# 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more -# details. - -import sys -import json -from subprocess import check_output - -def get_song_name(): - """ Get the name of the currently playing song """ - try: - j = json.loads(check_output(['mpv-ipc', 'get_property_string', 'media-title'])) - if j['data']: - return ' ' + j['data'] - except: - pass - return '' - -def is_virtualbox(): - return check_output(['lspci']).find(b"VirtualBox") != -1 - -def print_line(message): - """ Non-buffered printing to stdout. """ - sys.stdout.write(message + '\n') - sys.stdout.flush() - -def read_line(): - """ Interrupted respecting reader for stdin. """ - # try reading a line, removing any extra whitespace - try: - line = sys.stdin.readline().strip() - # i3status sends EOF, or an empty line - if not line: - sys.exit(3) - return line - # exit on ctrl-c - except KeyboardInterrupt: - sys.exit() - -if __name__ == '__main__': - # Skip the first line which contains the version header. - print_line(read_line()) - - # The second line contains the start of the infinite array. - print_line(read_line()) - - while True: - line, prefix = read_line(), '' - # ignore comma at start of lines - if line.startswith(','): - line, prefix = line[1:], ',' - - j = json.loads(line) - # insert information into the start of the json, but could be anywhere - song_name = get_song_name() - if song_name: - j.insert(0, {'full_text' : '%s' % song_name, 'name' : 'music'}) - if is_virtualbox(): - j = [b for b in j if b["name"] not in ("wireless", "battery", "path_exists") or b["instance"] == "/"] - # and echo back new encoded json - print_line(prefix+json.dumps(j)) diff --git a/files/.profile b/files/.profile index 38df9d8..a416003 100644 --- a/files/.profile +++ b/files/.profile @@ -22,7 +22,6 @@ export QT_QPA_PLATFORMTHEME=gtk2 export QT_AUTO_SCREEN_SCALE_FACTOR=0 # java -export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dsun.java2d.opengl=true" export JAVA_FONTS=/usr/share/fonts/TTF diff --git a/files/.xbindkeysrc b/files/.xbindkeysrc deleted file mode 100644 index 47da52e..0000000 --- a/files/.xbindkeysrc +++ /dev/null @@ -1,30 +0,0 @@ -# backlight -"brightness-control up" - XF86MonBrightnessUp - -"brightness-control down" - XF86MonBrightnessDown - -# volume -"volume-control mute" - XF86AudioMute - -"volume-control up" - XF86AudioRaiseVolume - -"volume-control down" - XF86AudioLowerVolume - -# printscreen -"sshot --pin" - Shift + Print - -"sshot --partial" - Control + Print - -"sshot --window" - Alt + Print - -"sshot" - Print - diff --git a/files/.xinitrc b/files/.xinitrc deleted file mode 100644 index ae2a40d..0000000 --- a/files/.xinitrc +++ /dev/null @@ -1,2 +0,0 @@ -[ -f ~/.xprofile ] && source ~/.xprofile -exec i3 diff --git a/files/.xprofile b/files/.xprofile deleted file mode 100644 index 84b7b19..0000000 --- a/files/.xprofile +++ /dev/null @@ -1,32 +0,0 @@ -systemctl --user import-environment DISPLAY - -# gtk3-nocsd -export GTK_CSD=0 -export LD_PRELOAD="$LD_PRELOAD /usr/lib/libgtk3-nocsd.so.0" - -# screen layout -if xrandr | grep 'HDMI-1 connected'; then - xrandr \ - --output HDMI-1 --auto --pos 1080x190 --primary \ - --output HDMI-2 --rotate right --auto --pos 0x0 -fi -export PRIMARY_MONITOR="$(xrandr | grep 'primary' | grep -Eo '^[^ ]+')" - -# lockscreen -xss-lock -- lock & - -# key binding -[ -f ~/.xbindkeysrc ] && xbindkeys -[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap - -# xrdb -[ -f ~/.Xresources ] && xrdb -I"$HOME" ~/.Xresources - -# wallpaper and colorschemes -sh ~/.fehbg || \ -feh --bg-fill --no-fehbg /usr/share/pixmaps/wallpaper.png - -# set screen blanking to 30 minutes -xset s 1800 1800 - - diff --git a/files/bin/sway b/files/bin/sway index ad19b7b..025eff0 100755 --- a/files/bin/sway +++ b/files/bin/sway @@ -31,4 +31,7 @@ export ELM_ENGINE=wayland_egl # SDL export SDL_VIDEODRIVER=wayland +# Java +export _JAVA_AWT_WM_NONREPARENTING=1 + exec /usr/bin/sway $@