Updated configurations
This commit is contained in:
parent
9d99b8470d
commit
34595b4c8d
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/10-autohint.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/10-sub-pixel-rgb.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/11-lcdfilter-default.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/30-win32-aliases.conf
|
|
@ -1 +0,0 @@
|
|||
../avail/69-emoji-monospace.conf
|
|
@ -1 +0,0 @@
|
|||
../avail/69-emoji.conf
|
|
@ -1 +0,0 @@
|
|||
/etc/fonts/conf.avail/70-no-bitmaps.conf
|
|
@ -1 +0,0 @@
|
|||
../avail/70-no-dejavu.conf
|
|
@ -1 +0,0 @@
|
|||
../avail/70-no-mozilla-emoji.conf
|
|
@ -9,7 +9,7 @@
|
|||
<edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit>
|
||||
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
|
||||
<!-- symbols do not support antialias -->
|
||||
<edit mode="assign" name="antialias"><bool>true</bool></edit>
|
||||
<!-- Removed antialias because it made all emoji invisible -->
|
||||
<edit mode="assign" name="rgba"><const>rgb</const></edit>
|
||||
</match>
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
|||
|
||||
<match target="font">
|
||||
<test name="pixelsize" qual="any" compare="more"><double>12</double></test>
|
||||
<test name="weight" compare="more"><const>medium</const></test>
|
||||
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
|
||||
<edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
|
||||
</match>
|
||||
|
@ -33,8 +32,9 @@
|
|||
</match>
|
||||
<match target="pattern">
|
||||
<test qual="any" name="family"><string>verdana</string></test>
|
||||
<edit name="family" mode="assign" binding="same"><string>Ubuntu</string></edit>
|
||||
<edit name="family" mode="assign" binding="same"><string>Bitstream Vera Sans</string></edit>
|
||||
</match>
|
||||
|
||||
<!-- Prefer Liberation -->
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
|
|
4
.config/fontconfig/with-dejavu-emojiless.sh
Normal file
4
.config/fontconfig/with-dejavu-emojiless.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
rm ./conf.d/70-no-dejavu.conf
|
||||
|
||||
echo "Removed configuration"
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
"extractor": {
|
||||
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0",
|
||||
"cookies": "~/cookies.txt",
|
||||
"base-directory": "~/Lataukset/gallery-dl/",
|
||||
"archive": "~/Lataukset/gallery-dl/archive.sqlite3",
|
||||
"exhentai":
|
||||
|
|
|
@ -11,10 +11,7 @@
|
|||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:DejaVu Sans Mono 11
|
||||
|
||||
default_border pixel 1
|
||||
for_window [class=".*"] border pixel 0
|
||||
font pango:DejaVu Sans Mono 10
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
|
@ -29,56 +26,21 @@ for_window [class=".*"] border pixel 0
|
|||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
#exec --no-startup-id "dunst" # in case multiple daemons are installed
|
||||
|
||||
#exec --no-startup-id "nm-applet"
|
||||
#exec --no-startup-id "pasystray"
|
||||
#exec --no-startup-id "blueman-applet"
|
||||
#exec --no-startup-id "udiskie --tray --notify --automount"
|
||||
|
||||
# Services
|
||||
exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf" # Music Player Daemon
|
||||
#exec --no-startup-id "./Scripts/screensaver.sh" # Screensaver
|
||||
#exec --no-startup-id "xscreensaver -no-splash" # Screensaver
|
||||
#exec --no-startup-id "./Scripts/xscreensaverstopper.sh" # Screensaver inhibitor
|
||||
exec --no-startup-id "compton -b" # Compositor
|
||||
exec --no-startup-id "nitrogen --restore" # Wallpaper
|
||||
exec --no-startup-id "udiskie --notify --automount" # Automounter
|
||||
# dunst is used for notifications
|
||||
|
||||
# Background software
|
||||
#exec --no-startup-id "blueman-manager" # Bluetooth
|
||||
exec --no-startup-id "cantata"
|
||||
exec --no-startup-id "boincmgr"
|
||||
exec --no-startup-id "nextcloud"
|
||||
exec --no-startup-id "pavucontrol"
|
||||
exec --no-startup-id "keepassxc" # Password manager
|
||||
|
||||
# Applications
|
||||
exec --no-startup-id "telegram-desktop"
|
||||
|
||||
# Set manual layout for tray workspace
|
||||
#exec --no-startup-id "i3-msg 'workspace 10:tray; append_layout /home/lanxu/.config/i3/tray.json'"
|
||||
#exec --no-startup-id nm-applet
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc play
|
||||
bindsym XF86AudioPause exec --no-startup-id mpc pause
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
|
||||
# Print screen
|
||||
bindsym Print exec --no-startup-id flameshot gui
|
||||
# use these keys for focus, movement, and resize directions when reaching for
|
||||
# the arrows is not convenient
|
||||
set $up l
|
||||
set $down k
|
||||
set $left j
|
||||
set $right semicolon
|
||||
set $up Up
|
||||
set $down Down
|
||||
set $left Left
|
||||
set $right Right
|
||||
|
||||
# use Mouse+Mod4 to drag floating windows to their wanted position
|
||||
floating_modifier Mod4
|
||||
|
@ -90,12 +52,12 @@ bindsym Mod4+Return exec i3-sensible-terminal
|
|||
bindsym Mod4+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym Mod4+d exec --no-startup-id "rofi -theme Arc -modi power:'/home/lanxu/.config/rofi/scripts/powermenu.sh',combi -combi-modi 'window,power,run,ssh' -show combi"
|
||||
bindsym Mod4+F12 exec --no-startup-id "xscreensaver-command -lock"
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym Mod4+d exec --no-startup-id i3-dmenu-desktop
|
||||
#bindsym Mod1+d exec --no-startup-id dmenu_run
|
||||
# A more modern dmenu replacement is rofi:
|
||||
bindsym Mod4+d exec --no-startup-id "rofi -modi power:'/home/lanxu/.config/rofi/scripts/powermenu.sh',combi -combi-modi 'window,power,run,ssh' -show combi"
|
||||
# There also is i3-dmenu-desktop which only displays applications shipping a
|
||||
# .desktop file. It is a wrapper around dmenu, so you need that installed.
|
||||
# bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym Mod4+$left focus left
|
||||
|
@ -104,10 +66,10 @@ bindsym Mod4+$up focus up
|
|||
bindsym Mod4+$right focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym Mod4+Left focus left
|
||||
bindsym Mod4+Down focus down
|
||||
bindsym Mod4+Up focus up
|
||||
bindsym Mod4+Right focus right
|
||||
#bindsym Mod4+Left focus left
|
||||
#bindsym Mod4+Down focus down
|
||||
#bindsym Mod4+Up focus up
|
||||
#bindsym Mod4+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym Mod4+Shift+$left move left
|
||||
|
@ -116,10 +78,10 @@ bindsym Mod4+Shift+$up move up
|
|||
bindsym Mod4+Shift+$right move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym Mod4+Shift+Left move left
|
||||
bindsym Mod4+Shift+Down move down
|
||||
bindsym Mod4+Shift+Up move up
|
||||
bindsym Mod4+Shift+Right move right
|
||||
#bindsym Mod4+Shift+Left move left
|
||||
#bindsym Mod4+Shift+Down move down
|
||||
#bindsym Mod4+Shift+Up move up
|
||||
#bindsym Mod4+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym Mod4+h split h
|
||||
|
@ -162,8 +124,8 @@ set $ws3 "3:net"
|
|||
set $ws4 "4:gfx"
|
||||
set $ws5 "5:steam"
|
||||
set $ws6 "6:lutris"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws7 "7:x"
|
||||
set $ws8 "8:x"
|
||||
set $ws9 "9:pw"
|
||||
set $ws10 "10:tray"
|
||||
|
||||
|
@ -178,7 +140,6 @@ bindsym Mod4+7 workspace $ws7
|
|||
bindsym Mod4+8 workspace $ws8
|
||||
bindsym Mod4+9 workspace $ws9
|
||||
bindsym Mod4+0 workspace $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym Mod4+Shift+1 move container to workspace $ws1
|
||||
bindsym Mod4+Shift+2 move container to workspace $ws2
|
||||
|
@ -200,37 +161,42 @@ bindsym Mod4+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
|
|||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
# 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.
|
||||
# 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 $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 $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
|
||||
|
||||
# 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
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape or Mod4+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym Mod4+r mode "default"
|
||||
# Back to normal: Enter or Escape or Mod4+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym Mod4+r mode "default"
|
||||
}
|
||||
|
||||
bindsym Mod4+r mode "resize"
|
||||
bindsym Mod1+r mode "resize"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
#bar {
|
||||
# status_command i3status
|
||||
#}
|
||||
|
||||
bindsym Mod4+o move workspace to output left
|
||||
#######################################################################
|
||||
# automatically start i3-config-wizard to offer the user to create a
|
||||
# keysym-based config which used their favorite modifier (alt or windows)
|
||||
#
|
||||
|
||||
# i3-config-wizard will not launch if there already is a config file
|
||||
# in ~/.config/i3/config (or $XDG_CONFIG_HOME/i3/config if set) or
|
||||
# ~/.i3/config.
|
||||
#
|
||||
|
@ -238,6 +204,10 @@ bindsym Mod4+o move workspace to output left
|
|||
#######################################################################
|
||||
#exec i3-config-wizard
|
||||
|
||||
#######################################################################
|
||||
# lanxu's modifications
|
||||
#######################################################################
|
||||
|
||||
# Assignments
|
||||
assign [class="^firefox$"] → $ws3
|
||||
assign [class="^krita$"] → $ws4
|
||||
|
@ -293,11 +263,35 @@ mouse_warping none
|
|||
bindsym Mod4+t [class="TelegramDesktop"] scratchpad show
|
||||
bindsym Mod4+n [class="^Nextcloud"] scratchpad show
|
||||
|
||||
# gaps
|
||||
smart_borders on
|
||||
smart_gaps on
|
||||
gaps outer 0
|
||||
gaps inner 10
|
||||
# i3-gaps
|
||||
#smart_borders on
|
||||
#smart_gaps on
|
||||
#gaps outer 0
|
||||
#gaps inner 5
|
||||
|
||||
|
||||
## Base16 Gruvbox dark, hard
|
||||
# Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
|
||||
#
|
||||
# You can use these variables anywhere in the i3 configuration file.
|
||||
|
||||
set $base00 #1d2021
|
||||
set $base01 #3c3836
|
||||
set $base02 #504945
|
||||
set $base03 #665c54
|
||||
set $base04 #bdae93
|
||||
set $base05 #d5c4a1
|
||||
set $base06 #ebdbb2
|
||||
set $base07 #fbf1c7
|
||||
set $base08 #fb4934
|
||||
set $base09 #fe8019
|
||||
set $base0A #fabd2f
|
||||
set $base0B #b8bb26
|
||||
set $base0C #8ec07c
|
||||
set $base0D #83a598
|
||||
set $base0E #d3869b
|
||||
set $base0F #d65d0e
|
||||
|
||||
|
||||
# https://github.com/khamer/base16-i3/tree/master/colors
|
||||
|
||||
|
@ -328,22 +322,22 @@ gaps inner 10
|
|||
#
|
||||
# You can use these variables anywhere in the i3 configuration file.
|
||||
|
||||
set $base00 #002b36
|
||||
set $base01 #073642
|
||||
set $base02 #586e75
|
||||
set $base03 #657b83
|
||||
set $base04 #839496
|
||||
set $base05 #93a1a1
|
||||
set $base06 #eee8d5
|
||||
set $base07 #fdf6e3
|
||||
set $base08 #dc322f
|
||||
set $base09 #cb4b16
|
||||
set $base0A #b58900
|
||||
set $base0B #859900
|
||||
set $base0C #2aa198
|
||||
set $base0D #268bd2
|
||||
set $base0E #6c71c4
|
||||
set $base0F #d33682
|
||||
#set $base00 #002b36
|
||||
#set $base01 #073642
|
||||
#set $base02 #586e75
|
||||
#set $base03 #657b83
|
||||
#set $base04 #839496
|
||||
#set $base05 #93a1a1
|
||||
#set $base06 #eee8d5
|
||||
#set $base07 #fdf6e3
|
||||
#set $base08 #dc322f
|
||||
#set $base09 #cb4b16
|
||||
#set $base0A #b58900
|
||||
#set $base0B #859900
|
||||
#set $base0C #2aa198
|
||||
#set $base0D #268bd2
|
||||
#set $base0E #6c71c4
|
||||
#set $base0F #d33682
|
||||
|
||||
# Basic bar configuration using the Base16 variables.
|
||||
bar {
|
||||
|
@ -362,7 +356,7 @@ bar {
|
|||
|
||||
# State Border BG Text
|
||||
focused_workspace $base05 $base0D $base00
|
||||
active_workspace $base05 $base03 $base00
|
||||
active_workspace $base05 $base03 $base05
|
||||
inactive_workspace $base03 $base01 $base05
|
||||
urgent_workspace $base08 $base08 $base00
|
||||
binding_mode $base00 $base0A $base00
|
||||
|
@ -377,3 +371,51 @@ client.unfocused $base01 $base00 $base05 $base01 $base01
|
|||
client.urgent $base08 $base08 $base00 $base08 $base08
|
||||
client.placeholder $base00 $base00 $base05 $base00 $base00
|
||||
client.background $base07
|
||||
|
||||
default_border pixel 1
|
||||
# Removes all borders
|
||||
for_window [class=".*"] border pixel 1
|
||||
|
||||
#exec --no-startup-id "dunst" # in case multiple daemons are installed
|
||||
#exec --no-startup-id "pasystray"
|
||||
#exec --no-startup-id "blueman-applet"
|
||||
#exec --no-startup-id "udiskie --tray --notify --automount"
|
||||
|
||||
# Services
|
||||
exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf" # Music Player Daemon
|
||||
exec --no-startup-id xss-lock -- lock.sh
|
||||
exec --no-startup-id "./Scripts/screensaver.sh" # Screensaver
|
||||
#exec --no-startup-id "xscreensaver -no-splash" # Screensaver
|
||||
#exec --no-startup-id "./Scripts/xscreensaverstopper.sh" # Screensaver inhibitor
|
||||
exec --no-startup-id "compton -b" # Compositor
|
||||
exec --no-startup-id "nitrogen --restore" # Wallpaper
|
||||
exec --no-startup-id "udiskie --notify --automount" # Automounter
|
||||
# dunst is used for notifications
|
||||
|
||||
# Background software
|
||||
#exec --no-startup-id "blueman-manager" # Bluetooth
|
||||
exec --no-startup-id "cantata"
|
||||
#exec --no-startup-id "boincmgr"
|
||||
#exec --no-startup-id "nextcloud"
|
||||
exec --no-startup-id "pavucontrol"
|
||||
exec --no-startup-id "keepassxc" # Password manager
|
||||
|
||||
# Applications
|
||||
exec --no-startup-id "telegram-desktop"
|
||||
|
||||
# Set manual layout for tray workspace
|
||||
#exec --no-startup-id "i3-msg 'workspace 10:tray; append_layout /home/lanxu/.config/i3/tray.json'"
|
||||
|
||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc play
|
||||
bindsym XF86AudioPause exec --no-startup-id mpc pause
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
|
||||
# Print screen
|
||||
bindsym Print exec --no-startup-id flameshot gui
|
||||
|
||||
bindsym Mod4+l exec --no-startup-id "loginctl lock-session"
|
||||
|
||||
bindsym Mod4+F12 exec --no-startup-id "xscreensaver-command -lock"
|
||||
bindsym Mod4+o move workspace to output left
|
||||
|
|
|
@ -42,6 +42,7 @@ weather_owm {
|
|||
format = "{city} {icon} {temperature}"
|
||||
}
|
||||
|
||||
order += "net_status"
|
||||
order += "dpms"
|
||||
order += "volume_status"
|
||||
order += "sysdata"
|
||||
|
|
23
.config/i3/py3status/net_status.py
Normal file
23
.config/i3/py3status/net_status.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
This module produces list of enabled network interfaces
|
||||
|
||||
"""
|
||||
import sys
|
||||
import subprocess
|
||||
from subprocess import check_output
|
||||
|
||||
class Py3status:
|
||||
format = 'NET: {status}'
|
||||
|
||||
def net_status(self):
|
||||
command = 'nmcli --mode multiline --colors no con show --active | rg DEVICE | awk -F":" \'{ gsub(/ /, ""); print $2}\''
|
||||
return_value = check_output(command, shell=True)
|
||||
value = return_value.decode("utf-8")
|
||||
value = value.replace('\n', ', ').strip(', ')
|
||||
full_text = self.py3.safe_format(self.format, { 'status': value})
|
||||
|
||||
return {
|
||||
'full_text': full_text,
|
||||
'cached_until': self.py3.time_in(15)
|
||||
}
|
104
.config/i3/tray.json
Normal file
104
.config/i3/tray.json
Normal file
|
@ -0,0 +1,104 @@
|
|||
{
|
||||
// splitv split container with 2 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "splitv",
|
||||
"percent": 0.5,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
// splitv split container with 1 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "splitv",
|
||||
"percent": 0.5,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
"border": "pixel",
|
||||
"current_border_width": 0,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 514,
|
||||
"width": 945,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "Äänenvoimakkuus",
|
||||
"percent": 1,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Pavucontrol$"
|
||||
// "instance": "^pavucontrol$",
|
||||
// "title": "^Äänenvoimakkuus$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// splith split container with 1 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "splith",
|
||||
"percent": 0.5,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
"border": "pixel",
|
||||
"current_border_width": 0,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 950,
|
||||
"width": 1223,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "Cantata",
|
||||
"percent": 1,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^cantata$"
|
||||
// "instance": "^cantata$",
|
||||
// "title": "^Cantata$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
// splitv split container with 2 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "splitv",
|
||||
"percent": 0.5,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
"border": "pixel",
|
||||
"current_border_width": 0,
|
||||
"floating": "user_off",
|
||||
"geometry": {
|
||||
"height": 1037,
|
||||
"width": 617,
|
||||
"x": 1455,
|
||||
"y": 33
|
||||
},
|
||||
"name": "Nextcloud",
|
||||
"percent": 0.5,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Nextcloud$"
|
||||
// "instance": "^nextcloud$",
|
||||
// "title": "^Nextcloud$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -3,49 +3,137 @@ bold_font Fira Code Bold
|
|||
italic_font Fira Code Italic
|
||||
bold_italic_font auto
|
||||
font_size 11.0
|
||||
window_padding_width 10.0
|
||||
window_padding_height 10.0
|
||||
window_padding_width 2.0
|
||||
window_padding_height 2.0
|
||||
|
||||
# Base16 Solarized Dark - kitty color config
|
||||
# Scheme by Ethan Schoonover (modified by aramisgithub)
|
||||
background #002b36
|
||||
foreground #93a1a1
|
||||
selection_background #93a1a1
|
||||
selection_foreground #002b36
|
||||
url_color #839496
|
||||
cursor #93a1a1
|
||||
active_border_color #657b83
|
||||
inactive_border_color #073642
|
||||
active_tab_background #002b36
|
||||
active_tab_foreground #93a1a1
|
||||
inactive_tab_background #073642
|
||||
inactive_tab_foreground #839496
|
||||
tab_bar_background #073642
|
||||
# Base16 Gruvbox dark, hard - kitty color config
|
||||
# Scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
|
||||
background #1d2021
|
||||
foreground #d5c4a1
|
||||
selection_background #d5c4a1
|
||||
selection_foreground #1d2021
|
||||
url_color #bdae93
|
||||
cursor #d5c4a1
|
||||
active_border_color #665c54
|
||||
inactive_border_color #3c3836
|
||||
active_tab_background #1d2021
|
||||
active_tab_foreground #d5c4a1
|
||||
inactive_tab_background #3c3836
|
||||
inactive_tab_foreground #bdae93
|
||||
tab_bar_background #3c3836
|
||||
|
||||
# normal
|
||||
color0 #002b36
|
||||
color1 #dc322f
|
||||
color2 #859900
|
||||
color3 #b58900
|
||||
color4 #268bd2
|
||||
color5 #6c71c4
|
||||
color6 #2aa198
|
||||
color7 #93a1a1
|
||||
color0 #1d2021
|
||||
color1 #fb4934
|
||||
color2 #b8bb26
|
||||
color3 #fabd2f
|
||||
color4 #83a598
|
||||
color5 #d3869b
|
||||
color6 #8ec07c
|
||||
color7 #d5c4a1
|
||||
|
||||
# bright
|
||||
color8 #657b83
|
||||
color9 #dc322f
|
||||
color10 #859900
|
||||
color11 #b58900
|
||||
color12 #268bd2
|
||||
color13 #6c71c4
|
||||
color14 #2aa198
|
||||
color15 #fdf6e3
|
||||
color8 #665c54
|
||||
color9 #fb4934
|
||||
color10 #b8bb26
|
||||
color11 #fabd2f
|
||||
color12 #83a598
|
||||
color13 #d3869b
|
||||
color14 #8ec07c
|
||||
color15 #fbf1c7
|
||||
|
||||
# extended base16 colors
|
||||
color16 #cb4b16
|
||||
color17 #d33682
|
||||
color18 #073642
|
||||
color19 #586e75
|
||||
color20 #839496
|
||||
color21 #eee8d5
|
||||
color16 #fe8019
|
||||
color17 #d65d0e
|
||||
color18 #3c3836
|
||||
color19 #504945
|
||||
color20 #bdae93
|
||||
color21 #ebdbb2
|
||||
|
||||
## Base16 Solarized Dark - kitty color config
|
||||
## Scheme by Ethan Schoonover (modified by aramisgithub)
|
||||
#background #002b36
|
||||
#foreground #93a1a1
|
||||
#selection_background #93a1a1
|
||||
#selection_foreground #002b36
|
||||
#url_color #839496
|
||||
#cursor #93a1a1
|
||||
#active_border_color #657b83
|
||||
#inactive_border_color #073642
|
||||
#active_tab_background #002b36
|
||||
#active_tab_foreground #93a1a1
|
||||
#inactive_tab_background #073642
|
||||
#inactive_tab_foreground #839496
|
||||
#tab_bar_background #073642
|
||||
#
|
||||
## normal
|
||||
#color0 #002b36
|
||||
#color1 #dc322f
|
||||
#color2 #859900
|
||||
#color3 #b58900
|
||||
#color4 #268bd2
|
||||
#color5 #6c71c4
|
||||
#color6 #2aa198
|
||||
#color7 #93a1a1
|
||||
#
|
||||
## bright
|
||||
#color8 #657b83
|
||||
#color9 #dc322f
|
||||
#color10 #859900
|
||||
#color11 #b58900
|
||||
#color12 #268bd2
|
||||
#color13 #6c71c4
|
||||
#color14 #2aa198
|
||||
#color15 #fdf6e3
|
||||
#
|
||||
## extended base16 colors
|
||||
#color16 #cb4b16
|
||||
#color17 #d33682
|
||||
#color18 #073642
|
||||
#color19 #586e75
|
||||
#color20 #839496
|
||||
#color21 #eee8d5
|
||||
|
||||
# Base16 Default Dark - kitty color config
|
||||
## Scheme by Chris Kempson (http://chriskempson.com)
|
||||
#background #181818
|
||||
#foreground #d8d8d8
|
||||
#selection_background #d8d8d8
|
||||
#selection_foreground #181818
|
||||
#url_color #b8b8b8
|
||||
#cursor #d8d8d8
|
||||
#active_border_color #585858
|
||||
#inactive_border_color #282828
|
||||
#active_tab_background #181818
|
||||
#active_tab_foreground #d8d8d8
|
||||
#inactive_tab_background #282828
|
||||
#inactive_tab_foreground #b8b8b8
|
||||
#tab_bar_background #282828
|
||||
#
|
||||
## normal
|
||||
#color0 #181818
|
||||
#color1 #ab4642
|
||||
#color2 #a1b56c
|
||||
#color3 #f7ca88
|
||||
#color4 #7cafc2
|
||||
#color5 #ba8baf
|
||||
#color6 #86c1b9
|
||||
#color7 #d8d8d8
|
||||
#
|
||||
## bright
|
||||
#color8 #585858
|
||||
#color9 #ab4642
|
||||
#color10 #a1b56c
|
||||
#color11 #f7ca88
|
||||
#color12 #7cafc2
|
||||
#color13 #ba8baf
|
||||
#color14 #86c1b9
|
||||
#color15 #f8f8f8
|
||||
#
|
||||
## extended base16 colors
|
||||
#color16 #dc9656
|
||||
#color17 #a16946
|
||||
#color18 #282828
|
||||
#color19 #383838
|
||||
#color20 #b8b8b8
|
||||
#color21 #e8e8e8
|
||||
|
|
2
.config/lf/lfrc
Normal file
2
.config/lf/lfrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
set previewer ~/.config/lf/pv.sh
|
||||
map i $~/.config/lf/pv.sh $f | less -R
|
37
.config/lf/pv.sh
Executable file
37
.config/lf/pv.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
SAVEIFS=$IFS
|
||||
IFS=$(echo -en "\n\b")
|
||||
|
||||
FILE="${1}"
|
||||
HEIGHT="${2}"
|
||||
|
||||
case "$1" in
|
||||
#*.png|*.jpg|*.jpeg|*.gif|*.webp)viu -w 100 -s "$1";;
|
||||
*.png|*.jpg|*.jpeg|*.gif|*.webp)
|
||||
catimg -w 100 "${FILE}";;
|
||||
*.tar*)
|
||||
tar tf "$1";;
|
||||
*.zip)
|
||||
unzip -l "$1";;
|
||||
*.rar)
|
||||
unrar l "$1";;
|
||||
*.7z)
|
||||
7z l "$1";;
|
||||
*.pdf)
|
||||
pdftotext "$1" -;;
|
||||
*.mp4|*.avi|*.mkv|*.webm|*.mpg)
|
||||
TMPFILE=$(mktemp)
|
||||
ffmpegthumbnailer -i "${FILE}" -o "${TMPFILE}" -s 0
|
||||
catimg -w 100 "${TMPFILE}";;
|
||||
#mediainfo ${FILE};;
|
||||
*.cbz|*.cbr|*.epub)
|
||||
TMPFILE=$(mktemp)
|
||||
comicthumb.py "${FILE}" "${TMPFILE}" 512 > /dev/null 2>&1
|
||||
echo $TMPFILE
|
||||
catimg -w 100 "${TMPFILE}";;
|
||||
*)
|
||||
bat --color=always --theme=base16 "$1";;
|
||||
esac
|
||||
|
||||
IFS=$SAVEIFS
|
33
.config/ranger/commands.py
Normal file
33
.config/ranger/commands.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
import os
|
||||
from ranger.core.loader import CommandLoader
|
||||
from ranger.api.commands import Command
|
||||
|
||||
class compress(Command):
|
||||
def execute(self):
|
||||
""" Compress marked files to current directory """
|
||||
cwd = self.fm.thisdir
|
||||
marked_files = cwd.get_selection()
|
||||
|
||||
if not marked_files:
|
||||
return
|
||||
|
||||
def refresh(_):
|
||||
cwd = self.fm.get_directory(original_path)
|
||||
cwd.load_content()
|
||||
|
||||
original_path = cwd.path
|
||||
parts = self.line.split()
|
||||
au_flags = [' '.join(parts[1:])]
|
||||
|
||||
descr = "compressing files in: " + os.path.basename(parts[1])
|
||||
obj = CommandLoader(args=['apack'] + au_flags + \
|
||||
[os.path.relpath(f.path, cwd.path) for f in marked_files], descr=descr, read=True)
|
||||
|
||||
obj.signal_bind('after', refresh)
|
||||
self.fm.loader.add(obj)
|
||||
|
||||
def tab(self, tabnum):
|
||||
""" Complete with current folder name """
|
||||
|
||||
extension = ['.zip', '.tar.gz', '.xz', '.rar', '.7z']
|
||||
return ['compress ' + os.path.basename(self.fm.thisdir.path) + ext for ext in extension]
|
|
@ -1,4 +0,0 @@
|
|||
rofi.lines: 20
|
||||
rofi.show-icons: true
|
||||
rofi.width: 60
|
||||
rofi.theme: Arc-Dark
|
8
.config/rofi/config.rasi
Normal file
8
.config/rofi/config.rasi
Normal file
|
@ -0,0 +1,8 @@
|
|||
configuration {
|
||||
font: "Fira Code Regular 12";
|
||||
width: 60;
|
||||
lines: 20;
|
||||
padding: 10;
|
||||
show-icons: true;
|
||||
theme: "/usr/share/rofi/themes/gruvbox-dark-hard.rasi";
|
||||
}
|
|
@ -1,9 +1,5 @@
|
|||
OPTIONS="Reboot\nPoweroff\nSuspend\nHibernate\nLogout\nLock\n"
|
||||
|
||||
lock() {
|
||||
WINDOW=:0 xscreensaver-command -lock
|
||||
}
|
||||
|
||||
if [ "$@" ]
|
||||
then
|
||||
case $@ in
|
||||
|
@ -26,7 +22,8 @@ then
|
|||
systemctl hibernate
|
||||
;;
|
||||
Lock)
|
||||
WINDOW=:0 xscreensaver-command -lock
|
||||
#i3lock -k -i /usr/share/backgrounds/archlinux/wave.png --timecolor FFFFFF --datecolor FFFFFF --ignore-empty-password --show-failed-attempts -C
|
||||
"i3lock"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
16
.vimrc
16
.vimrc
|
@ -38,6 +38,7 @@ Plug 'honza/vim-snippets'
|
|||
"Plug 'altercation/vim-colors-solarized'
|
||||
"Plug 'tomasr/molokai'
|
||||
"Plug 'flazz/vim-colorschemes'
|
||||
"Plug 'tssm/c64-vim-color-scheme'
|
||||
"Plug 'morhetz/gruvbox'
|
||||
"Plug 'chriskempson/base16-vim' " Original but not updated
|
||||
Plug 'danielwe/base16-vim' " Fork. updated. https://github.com/chriskempson/base16-vim/issues/197
|
||||
|
@ -45,7 +46,8 @@ Plug 'danielwe/base16-vim' " Fork. updated. https://github.com/chriskempson/base
|
|||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
|
||||
let g:airline_theme='base16_default'
|
||||
"let g:airline_theme='base16_default'
|
||||
let g:airline_theme='base16_gruvbox_dark_hard'
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
" Initialize plugin system
|
||||
|
@ -54,10 +56,14 @@ filetype plugin indent on
|
|||
|
||||
" Magical color setup
|
||||
syntax on
|
||||
set t_Co=256
|
||||
set background=light
|
||||
let base16colorspace=256
|
||||
colorscheme base16-solarized-dark
|
||||
"set t_Co=256
|
||||
set termguicolors
|
||||
set background=dark
|
||||
"let base16colorspace=256
|
||||
"colorscheme base16-solarized-dark
|
||||
colorscheme base16-gruvbox-dark-hard
|
||||
"colorscheme base16-default-dark
|
||||
|
||||
|
||||
" Other
|
||||
set encoding=utf-8
|
||||
|
|
14
.zprofile
14
.zprofile
|
@ -28,10 +28,14 @@ export LANXU_SCRIPTS_ROOT=${HOME}/Scripts
|
|||
export PATH=$LANXU_SCRIPTS_ROOT:$PATH
|
||||
|
||||
# Other
|
||||
export XDG_CURRENT_DESKTOP=gnome
|
||||
#export XDG_CURRENT_DESKTOP=gnome
|
||||
# export QT_STYLE_OVERRIDE='adwaita'
|
||||
# qt5-styleplugins must be installed to set this to gtk2
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
#export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||
#export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||
#export QT_SCALE_FACTOR=1
|
||||
|
||||
# Wine
|
||||
export WINEARCH=win64 # Set default winearch to win64
|
||||
export WINEDLLOVERRIDES=winemenubuilder.exe=d # No more desktop files!
|
||||
|
||||
|
@ -64,7 +68,7 @@ export TERMINAL=kitty
|
|||
#export TERMINAL=alacritty # Does not support ligatures / Fira Code
|
||||
export TERMCMD=$TERMINAL
|
||||
# Start X on tty1 automatically
|
||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
exec startx
|
||||
fi
|
||||
#if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
# exec startx
|
||||
#fi
|
||||
export WORKON_HOME="${HOME}/Envs"
|
||||
|
|
24
.zshrc
24
.zshrc
|
@ -1,3 +1,10 @@
|
|||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/lanxu/.zshrc'
|
||||
|
||||
|
@ -41,13 +48,14 @@ source ~/.zplugins
|
|||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
alias top=htop
|
||||
alias ll="ls -lh"
|
||||
alias la="ls -a"
|
||||
alias ll="exa -lh"
|
||||
alias la="exa -a"
|
||||
alias lp="keepass.sh"
|
||||
alias ranger="ranger"
|
||||
#alias lf="TCELL_TRUECOLOR=on lf"
|
||||
alias search="search.sh"
|
||||
#alias ls="ls -N --time-style=long-iso --color=auto"
|
||||
alias ls="ls --time-style=long-iso --color=auto --human-readable --group-directories-first --classify"
|
||||
#alias ls="ls --time-style=long-iso --color=auto --human-readable --group-directories-first --classify"
|
||||
alias rhc='RUBYOPT="-W0" rhc'
|
||||
# Other
|
||||
alias fixsteam='find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete'
|
||||
|
@ -62,9 +70,9 @@ alias resetkbcolors="/usr/bin/g512-led -p /etc/g810-led/profile"
|
|||
# alias steam="DBUS_SESSION_BUS_ADDRESS=unix:abstract=/dev/null steam"
|
||||
# https://github.com/chriskempson/base16-shell
|
||||
# git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
|
||||
source $HOME/.config/base16-shell/scripts/base16-default-dark.sh
|
||||
#source $HOME/.config/base16-shell/scripts/base16-solarized-light.sh
|
||||
#source $HOME/.config/base16-shell/scripts/base16-solarized-dark.sh
|
||||
# source $HOME/.config/base16-shell/scripts/base16-default-dark.sh
|
||||
# source $HOME/.config/base16-shell/scripts/base16-solarized-light.sh
|
||||
# source $HOME/.config/base16-shell/scripts/base16-solarized-dark.sh
|
||||
|
||||
# Emscripten
|
||||
#source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh
|
||||
|
@ -105,3 +113,7 @@ function c {
|
|||
function aurls {
|
||||
sudo pacman -Sl custom
|
||||
}
|
||||
#source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
|
13
services/xidlehook.service
Normal file
13
services/xidlehook.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Lock the screen automatically after a timeout.
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=lanxu
|
||||
#Group=users
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/xidlehook --not-when-fullscreen --not-when-audio --timer 60 'notify-send -u low "Locking in 15 seconds..."' '' --timer 15 'i3lock -B sigma -k' '' --timer 60 'xset dpms force off' 'xset dpms force on'
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
Loading…
Reference in New Issue
Block a user