Compare commits

..

No commits in common. "master" and "b897574ef719756556244429ebfa9cb5993e0f32" have entirely different histories.

25 changed files with 153 additions and 4056 deletions

View File

@ -1,4 +0,0 @@
[binds]
y = exec wl-copy < "$imv_current_file"
d = exec dragon -a -x "$imv_current_file"
f = fullscreen; reset

View File

@ -1,43 +0,0 @@
# Base16 Gruvbox dark, medium - kitty color config
# Scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
background #282828
foreground #d5c4a1
selection_background #d5c4a1
selection_foreground #282828
url_color #bdae93
cursor #d5c4a1
active_border_color #665c54
inactive_border_color #3c3836
active_tab_background #282828
active_tab_foreground #d5c4a1
inactive_tab_background #3c3836
inactive_tab_foreground #bdae93
tab_bar_background #3c3836
# normal
color0 #282828
color1 #fb4934
color2 #b8bb26
color3 #fabd2f
color4 #83a598
color5 #d3869b
color6 #8ec07c
color7 #d5c4a1
# bright
color8 #665c54
color9 #fb4934
color10 #b8bb26
color11 #fabd2f
color12 #83a598
color13 #d3869b
color14 #8ec07c
color15 #fbf1c7
# extended base16 colors
color16 #fe8019
color17 #d65d0e
color18 #3c3836
color19 #504945
color20 #bdae93
color21 #ebdbb2

View File

@ -1,43 +0,0 @@
# Base16 Solarized Light - kitty color config
# Scheme by Ethan Schoonover (modified by aramisgithub)
background #fdf6e3
foreground #586e75
selection_background #586e75
selection_foreground #fdf6e3
url_color #657b83
cursor #586e75
active_border_color #839496
inactive_border_color #eee8d5
active_tab_background #fdf6e3
active_tab_foreground #586e75
inactive_tab_background #eee8d5
inactive_tab_foreground #657b83
tab_bar_background #eee8d5
# normal
color0 #fdf6e3
color1 #dc322f
color2 #859900
color3 #b58900
color4 #268bd2
color5 #6c71c4
color6 #2aa198
color7 #586e75
# bright
color8 #839496
color9 #dc322f
color10 #859900
color11 #b58900
color12 #268bd2
color13 #6c71c4
color14 #2aa198
color15 #002b36
# extended base16 colors
color16 #cb4b16
color17 #d33682
color18 #eee8d5
color19 #93a1a1
color20 #657b83
color21 #073642

View File

@ -1,9 +1,139 @@
font_family Fira Code Regular font_family Fira Code Medium
bold_font Fira Code Bold bold_font Fira Code Bold
italic_font Fira Code Italic italic_font Fira Code Italic
bold_italic_font auto bold_italic_font auto
font_size 12.0 font_size 11.0
#window_padding_width 2.0 window_padding_width 2.0
#window_padding_height 2.0 window_padding_height 2.0
#include base16-solarized-light-256.conf
include base16-gruvbox-dark-medium-256.conf # 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 #1d2021
color1 #fb4934
color2 #b8bb26
color3 #fabd2f
color4 #83a598
color5 #d3869b
color6 #8ec07c
color7 #d5c4a1
# bright
color8 #665c54
color9 #fb4934
color10 #b8bb26
color11 #fabd2f
color12 #83a598
color13 #d3869b
color14 #8ec07c
color15 #fbf1c7
# extended base16 colors
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

View File

@ -5,35 +5,7 @@ map i $~/.config/lf/pv.sh $f | less -R
cmd trash %trash-put "$fx" cmd trash %trash-put "$fx"
# Search with fzf # Search with fzf
# map f $vi $(fzf) map f $vi $(fzf)
# If you want to jump to a file or directory in lf using fuzzy matching, you can utilize fzf for this purpose:
cmd fzf_jump ${{
res="$(fd . | fzf --reverse --header='Jump to location' | sed 's/\\/\\\\/g;s/"/\\"/g')"
if [ -d "$res" ] ; then
cmd="cd"
elif [ -f "$res" ] ; then
cmd="select"
else
exit 0
fi
lf -remote "send $id $cmd \"$res\""
}}
map f :fzf_jump
# Combining fzf with ripgrep, you can interactively search in the contents of files under the current directory and select a file from the results:
cmd fzf_search ${{
res="$( \
RG_PREFIX="rg --column --line-number --no-heading --color=always \
--smart-case "
FZF_DEFAULT_COMMAND="$RG_PREFIX ''" \
fzf --bind "change:reload:$RG_PREFIX {q} || true" \
--ansi --layout=reverse --header 'Search in files' \
| cut -d':' -f1
)"
[ ! -z "$res" ] && lf -remote "send $id select \"$res\""
}}
map gs :fzf_search
# Recreate open-with with lf # Recreate open-with with lf
cmd open-with %"$@" "$fx" cmd open-with %"$@" "$fx"

View File

@ -1,4 +0,0 @@
"set runtimepath^=~/.vim runtimepath+=~/.vim/after
"let &packpath=&runtimepath
"source ~/.vimrc
GuiFont! Fira\ Code:h11:m

View File

@ -1,3 +0,0 @@
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc

Binary file not shown.

Before

Width:  |  Height:  |  Size: 563 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

View File

@ -1,19 +0,0 @@
## Base16 Gruvbox dark, medium
# Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
set $base00 #282828
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

View File

@ -1,19 +0,0 @@
## Base16 Solarized Light
# Author: Ethan Schoonover (modified by aramisgithub)
set $base00 #fdf6e3
set $base01 #eee8d5
set $base02 #93a1a1
set $base03 #839496
set $base04 #657b83
set $base05 #586e75
set $base06 #073642
set $base07 #002b36
set $base08 #dc322f
set $base09 #cb4b16
set $base0A #b58900
set $base0B #859900
set $base0C #2aa198
set $base0D #268bd2
set $base0E #6c71c4
set $base0F #d33682

View File

@ -1,429 +0,0 @@
#Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term kitty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
#exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with 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
#
# Workspaces:
#
# # Switch to workspace
# bindsym $mod+1 workspace number 1
# bindsym $mod+2 workspace number 2
# bindsym $mod+3 workspace number 3
# bindsym $mod+4 workspace number 4
# bindsym $mod+5 workspace number 5
# bindsym $mod+6 workspace number 6
# bindsym $mod+7 workspace number 7
# bindsym $mod+8 workspace number 8
# bindsym $mod+9 workspace number 9
# bindsym $mod+0 workspace number 10
# # Move focused container to workspace
# bindsym $mod+Shift+1 move container to workspace number 1
# bindsym $mod+Shift+2 move container to workspace number 2
# bindsym $mod+Shift+3 move container to workspace number 3
# bindsym $mod+Shift+4 move container to workspace number 4
# bindsym $mod+Shift+5 move container to workspace number 5
# bindsym $mod+Shift+6 move container to workspace number 6
# bindsym $mod+Shift+7 move container to workspace number 7
# bindsym $mod+Shift+8 move container to workspace number 8
# bindsym $mod+Shift+9 move container to workspace number 9
# bindsym $mod+Shift+0 move container to workspace number 10
# # Note: workspaces can have any name you want, not just numbers.
# # We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#######################################################################
# lanxu's modifications
#######################################################################
# Linear accel force
input type:pointer {
accel_profile "flat"
pointer_accel 0
}
set $menu wofi --lines=10 --show=drun --allow-images --insensitive
set $ws1 "1:term"
set $ws2 "2:irc"
set $ws3 "3:net"
set $ws4 "4:gfx"
set $ws5 "5:steam"
set $ws6 "6:lutris"
set $ws7 "7:x"
set $ws8 "8:x"
set $ws9 "9:pw"
set $ws10 "10:tray"
# 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+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
# Assignments
assign [app_id="^firefox$"] → $ws3
assign [app_id="^librewolf$"] → $ws3
assign [app_id="^cantata$"] → $ws10
assign [app_id="^org.keepassxc.KeePassXC$" title="^Avaa tietokanta"] → $ws3
assign [app_id="^org.keepassxc.KeePassXC$" title="(?!Avaa tietokanta)"] → $ws9
assign [app_id="^pavucontrol$"] → $ws10
assign [app_id="^blueman-manager$"] → $ws10
assign [app_id="^lutris$"] → $ws6
assign [app_id="com.nextcloud.desktopclient.nextcloud"] → $ws10
assign [app_id="^Element$"] → $ws2
assign [class="^krita$"] → $ws4
assign [class="^Blender$"] → $ws4
assign [class="^Gimp$"] → $ws4
assign [class="^Nextcloud$"] → $ws10
assign [class="^Element$"] → $ws2
# Modifiers
for_window [app_id="telegramdesktop" title="(.*)Telegram(.*)"] floating enable, move scratchpad
# for_window [app_id="telegramdesktop" title=".*(?<!Media viewer)$"] floating enable, move scratchpad
for_window [app_id="mpv"] floating enable, move position center
for_window [app_id="net.sourceforge.mumble.mumble"] floating enable, move position center
for_window [app_id="imv"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable, move position mouse, move down 25px
for_window [app_id="opensnitch_ui"] floating enable, move position center
for_window [class="itch"] floating enable
# for_window [class="Wine"] floating enable
for_window [class="vlc"] floating enable
# services
#for_window [class="Nextcloud"] floating enable, move position center, move scratchpad
for_window [class="cantata"] floating disable
for_window [class="boincmgr"] floating disable
# Games
for_window [class="kfgame.exe"] floating enable
for_window [class="noita.exe"] floating enable
for_window [class="^galaxyclient.exe$"] floating enable
for_window [class="epicgameslauncher.exe"] floating enable
for_window [class="Origin"] floating enable
for_window [class="^steam_app"] floating enable
for_window [class="Wine"] floating enable
for_window [class="Proton"] floating enable
for_window [class="Melvor Idle"] floating enable
for_window [app_id="AlienIsolation"] floating enable
for_window [app_id="FeralLinuxMessage"] floating enable
for_window [title="SRHK"] floating enable
# Steam
# 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
for_window [class="^Steam$"] move container to workspace $ws5
for_window [title="^Friends List$"] move container to workspace $ws5, floating enable, resize set width 400px
mouse_warping none
# Special keysyms
bindsym $mod+t [app_id="telegramdesktop"] scratchpad show
bindsym $mod+n [class="^Nextcloud"] scratchpad show
# gaps
#smart_borders off
#smart_gaps on
#gaps outer 0
#gaps inner 10
# Basic bar configuration using the Base16 variables.
bar {
swaybar_command waybar
}
include /home/lanxu/.config/sway/base16-gruvbox-dark-medium.config
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused $base05 $base0D $base00 $base0D $base0C
client.focused_inactive $base01 $base01 $base05 $base03 $base01
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 0
exec --no-startup-id "dunst" # in case multiple daemons are installed
# Services
exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf" # Music Player Daemon
exec --no-startup-id "systemd-run --user --unit=fullscreen-inhibitor --on-calendar='*:*:0/15' /home/lanxu/Scripts/sway/fullscreen-inhibitor.sh" # Fullscreen inhibitor for dunst
#exec --no-startup-id "./Scripts/sway_screensaver.sh" # Screensaver
exec --no-startup-id "udiskie --notify --automount" # Automounter
# Background software
exec --no-startup-id "cantata"
exec --no-startup-id "pavucontrol"
exec --no-startup-id "keepassxc" # Password manager
exec --no-startup-id "nextcloud --background"
exec --no-startup-id "gammastep -l 61.49911:23.78712" # blue light filter, flickers
# Applications
exec --no-startup-id "dex -a -s ~/.config/autostart/"
# exec --no-startup-id "telegram-desktop" # Added to autostart
# exec --no-startup-id "element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland" # Added to autostart
# exec --no-startup-id "steam" # Should be done with autostart
# Set manual layout for tray workspace
#exec --no-startup-id "i3-msg 'workspace 10:tray; append_layout /home/lanxu/.config/i3/tray.json'"
set $locker 'swaylock -f -c 000000'
exec swayidle -w \
timeout 60 $locker \
timeout 65 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep $locker
bindsym XF86AudioStop exec --no-startup-id mpc stop
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioPause exec --no-startup-id mpc pause
bindsym XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Print screen
bindsym $mod+F8 exec --no-startup-id "./Scripts/sway/take_screencast.sh region-copy"
bindsym $mod+Shift+F8 exec --no-startup-id "./Scripts/sway/take_screencast.sh region"
bindsym $mod+Print exec --no-startup-id "./Scripts/sway/take_screenshot.sh region-copy"
bindsym $mod+Shift+Print exec --no-startup-id "./Scripts/sway/take_screenshot.sh region"
bindsym Print exec --no-startup-id "./Scripts/sway/take_screenshot.sh screen"
#bindsym Print exec --no-startup-id flameshot gui
#bindsym Scroll_Lock exec --no-startup-id "./Scripts/powermenu.sh"
# With Keychron Scroll_Lock is assigned automatically to mod+c (microphone on windows)
bindsym $mod+c exec --no-startup-id "./Scripts/powermenu.sh"
# Moving desktops
bindsym $mod+o move workspace to output left
bindsym $mod+Ctrl+Right move workspace to output right
bindsym $mod+Ctrl+Left move workspace to output left
## One screen
##output HDMI-A-1 disable
#output HDMI-A-2 disable
##output DP-2 pos 0 0 res 1920x1080@60Hz adaptive_sync on
#output DP-2 pos 0 0 res 1920x1080@120Hz adaptive_sync on
# Two screens
output HDMI-A-1 pos 0 0 res 1920x1080
output HDMI-A-2 disable
#output HDMI-A-1 disable
#output HDMI-A-2 pos 0 0 res 1920x1080
output DP-2 pos 1920 0 res 1920x1080@144Hz adaptive_sync on
#output DP-2 pos 0 0 res 1920x1080@144Hz adaptive_sync on
# Other
#output DVI-D-1 pos 0 0 res 1920x1080
#output DP-2 pos 1920 0 res 1920x1080@60Hz adaptive_sync off
#output DP-2 disable
#output DVI-D-1 disable
#output HDMI-A-1 disable
#output HDMI-A-1 pos 3840 0 res 1680x1050
#output HDMI-A-2 pos 5520 0 res 1920x1080 # TV
#output HDMI-A-2 pos 3840 0 res 1920x1080 # TV
output "*" bg "/home/lanxu/.config/sway/background2022.jpg" fill
#max_render_time 5
# inhibits
# wayland
for_window [app_id=".*"] inhibit_idle fullscreen
# xwayland
for_window [class=".*"] inhibit_idle fullscreen
exec_always "/home/lanxu/Scripts/import-gsettings"
# default includes
include /etc/sway/config.d/*

View File

@ -1,23 +0,0 @@
/*
*
* Base16 Gruvbox dark, medium
* Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
*
*/
@define-color base00 #282828;
@define-color base01 #3c3836;
@define-color base02 #504945;
@define-color base03 #665c54;
@define-color base04 #bdae93;
@define-color base05 #d5c4a1;
@define-color base06 #ebdbb2;
@define-color base07 #fbf1c7;
@define-color base08 #fb4934;
@define-color base09 #fe8019;
@define-color base0A #fabd2f;
@define-color base0B #b8bb26;
@define-color base0C #8ec07c;
@define-color base0D #83a598;
@define-color base0E #d3869b;
@define-color base0F #d65d0e;

View File

@ -1,23 +0,0 @@
/*
*
* Base16 Solarized Light
* Author: Ethan Schoonover (modified by aramisgithub)
*
*/
@define-color base00 #fdf6e3;
@define-color base01 #eee8d5;
@define-color base02 #93a1a1;
@define-color base03 #839496;
@define-color base04 #657b83;
@define-color base05 #586e75;
@define-color base06 #073642;
@define-color base07 #002b36;
@define-color base08 #dc322f;
@define-color base09 #cb4b16;
@define-color base0A #b58900;
@define-color base0B #859900;
@define-color base0C #2aa198;
@define-color base0D #268bd2;
@define-color base0E #6c71c4;
@define-color base0F #d33682;

View File

@ -1,131 +0,0 @@
// -*- mode: json -*-
{
"layer": "top",
"position": "top",
"modules-left": [
"sway/workspaces",
],
"modules-center": [
"clock#1",
"clock#2",
"clock#3",
],
"modules-right": [
"pulseaudio",
"memory",
"cpu",
"custom/gpu",
"network",
"mpd",
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"format": "{index}: {name}"
},
"clock#1": {
"format": "{:%a}",
"tooltip": false
},
"clock#2": {
"format": "{:%H.%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d-%m-%Y}",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 5,
"format": "Mem {}%"
},
"cpu": {
"interval": 5,
"format": "CPU {usage:2}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"network": {
"format": "{icon} {ipaddr}",
"format-alt": "{icon} {ipaddr}/{cidr}",
"format-alt-click": "click-right",
"format-icons": {
"wifi": [""],
"ethernet": [""],
"disconnected": [""]
},
"on-click": "kitty -e nmtui",
"tooltip": false
},
"bluetooth": {
"format": "{icon}",
"format-alt": "bluetooth: {status}",
"format-icons": {
"enabled": "",
"disabled": ""
},
"tooltip-format": "{}"
},
"disk": {
"interval": 5,
"format": "💾 {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20,
"spacing": 5
},
"mpd": {
"format": "🎵 {title}",
"max-length": 20
},
"custom/gpu": {
"format": "GPU {} ℃",
//"max-length": 15,
"interval": 15,
"exec": "/home/lanxu/Scripts/gputemp.py",
"on-click": "gputemp.py"
},
"custom/pacman": {
"format": " {}",
"tooltip-format": "{tooltip}",
"return-type": "json",
"interval": 3600, // every hour
"exec": "/home/lanxu/Scripts/checkupdates.sh",
"on-click": "kitty sh -c 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8
}
}

View File

@ -1,122 +0,0 @@
/*@import "/home/lanxu/.config/waybar/base16-solarized-light.css";*/
@import "/home/lanxu/.config/waybar/base16-gruvbox-dark-medium.css";
* {
font-size: 12px;
font-family: "Fira Sans", monospace;
}
window#waybar {
background: transparent;
}
#workspaces,
#clock.1,
#clock.2,
#clock.3,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk,
#custom-gpu,
#custom-pacman,
#mpd,
#network,
#tray,
#mpd {
background: @base00;
color: @base07;
margin-top: 0px;
margin-bottom: 2px;
}
#tray {
background: @base03;
color: @base0D;
padding-left: 10px;
padding-right: 5px;
border-radius: 0px 0 0 5px;
}
#workspaces {
border-radius: 0 0px 5px 0;
}
#clock.1 {
border-radius: 0px 0 0 5px;
}
#clock.2 {
font-weight: bold;
}
#clock.3 {
border-radius: 0 0px 5px 0;
}
#pulseaudio {
border-radius: 0px 0 0 5px;
}
#workspaces button {
color: @base07;
border: none;
border-radius: 0;
padding: 0 5px 0 5px;
border-top: 2px solid @base00;
border-bottom: 2px solid @base00;
}
#workspaces button:last-child {
margin-right: 5px;
}
#workspaces button.focused {
background: @base02;
}
#workspaces button.urgent {
background: @base08;
}
#workspaces button.urgent:hover {
box-shadow: inherit;
text-shadow: inherit;
background: @base08;
border-radius: 0;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
background: @base02;
border-radius: 0;
}
#pulseaudio {
color: @base0D;
}
#memory {
color: @base0D;
}
#cpu {
color: @base0D;
}
#custom-gpu {
color: @base0D;
}
#battery {
color: @base0D;
}
#disk {
color: @base0D;
}
#mpd {
color: @base0D;
}
#clock,
#pulseaudio,
#memory,
#cpu,
#battery,
#custom-gpu,
#mpd,
#network,
#custom-pacman,
#disk {
padding: 0 10px;
}

View File

@ -1,118 +0,0 @@
* {
font-size: 12px;
font-family: "Fira Sans", monospace;
}
window#waybar {
background: transparent;
color: #fdf6e3;
}
#workspaces,
#clock.1,
#clock.2,
#clock.3,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk,
#custom-gpu,
#custom-pacman,
#mpd,
#network,
#tray {
background: #1a1a1a;
margin-top: 2px;
margin-bottom: 2px;
}
#workspaces {
border-radius: 0 5px 5px 0;
}
#clock.1 {
border-radius: 5px 0 0 5px;
}
#clock.2 {
font-weight: bold;
}
#clock.3 {
border-radius: 0 5px 5px 0;
}
#pulseaudio {
border-radius: 5px 0 0 5px;
}
#workspaces button {
color: #fdf6e3;
border: none;
border-radius: 0;
padding: 0 5px;
margin-right: 5px;
border-bottom: 2px solid #1a1a1a;
}
#workspaces button.focused {
color: #268bd2;
border-bottom: 2px solid #268bd2;
}
#workspaces button.urgent {
color: #af005f;
border-bottom: 2px solid #af005f;
}
#workspaces button.urgent:hover {
box-shadow: inherit;
text-shadow: inherit;
background: #1a1a1a;
border-radius: 0;
border-bottom: 2px solid #af005f;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
background: #1a1a1a;
border-radius: 0;
border-bottom: 2px solid #268bd2;
}
/*
#workspaces button:hover {
color: #268bd2;
border: 0;
border-bottom: 2px solid #268bd2;
background: #1a1a1a;
}*/
#pulseaudio {
color: #268bd2;
}
#memory {
color: #2aa198;
}
#cpu {
color: #6c71c4;
}
#custom-gpu {
color: #6c71c4;
}
#battery {
color: #859900;
}
#disk {
color: #b58900;
}
#mpd {
color: #EEE;
}
#clock,
#pulseaudio,
#memory,
#cpu,
#battery,
#custom-gpu,
#mpd,
#network,
#custom-pacman,
#disk {
padding: 0 10px;
}

View File

@ -1,152 +0,0 @@
* {
font-size: 10pt;
font-family: "Fira Sans", monospace;
}
window#waybar {
background: transparent;
color: black;
}
#workspaces,
#clock.1,
#clock.2,
#clock.3,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk,
#custom-gpu,
#custom-pacman,
#mpd,
#network,
#tray {
background: #AAA;
color: black;
border-bottom: 1px solid black;
border-right: 1px solid black;
border-top: 1px solid white;
border-left: 1px solid white;
}
#tray {
padding: 0 5px 0 5px;
}
#workspaces {
border-radius: 0 0px 0px 0;
background: #AAA;
color: black;
border-bottom: 1px solid black;
border-right: 1px solid black;
border-top: 1px solid white;
border-left: 1px solid white;
}
#clock.1 {
padding: 0 5px 0 5px;
border-radius: 0px 0 0 0px;
}
#clock.2 {
padding: 0 5px 0 5px;
font-size: 12pt;
font-weight: bold;
}
#clock.3 {
padding: 0 5px 0 5px;
border-radius: 0 0px 0px 0;
}
#pulseaudio {
border-radius: 0px 0 0 0px;
}
#workspaces button {
border: none;
border-radius: 0;
padding: 0 10px;
background: #AAA;
color: black;
border-bottom: 1px solid #444;
border-right: 1px solid #444;
border-top: 1px solid #BBB;
border-left: 1px solid #BBB;
}
#workspaces button.focused {
color: black;
background: #DDD;
border-top: 1px solid #222;
border-left: 1px solid #222;
border-bottom: 1px solid #EEE;
border-right: 1px solid #EEE;
}
#workspaces button.urgent {
color: red;
border-bottom: 1px solid #222;
border-right: 1px solid #222;
border-top: 1px solid #EEE;
border-left: 1px solid #EEE;
}
#workspaces button.urgent:hover {
color: black;
background: #DDD;
border-top: 1px solid #222;
border-left: 1px solid #222;
border-bottom: 1px solid #EEE;
border-right: 1px solid #EEE;
box-shadow: inherit;
text-shadow: inherit;
border-radius: 0;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
border-radius: 0;
background: #DDD;
border-top: 1px solid #222;
border-left: 1px solid #222;
border-bottom: 1px solid #EEE;
border-right: 1px solid #EEE;
}
/*
#workspaces button:hover {
color: #268bd2;
border: 0;
border-bottom: 2px solid #268bd2;
background: #1a1a1a;
}*/
#pulseaudio {
color: #113f60;
}
#memory {
color: #0f3a37;
}
#cpu {
color: #484b82;
}
#custom-gpu {
color: #484b82;
}
#battery {
color: #859900;
}
#disk {
color: #6e5300;
}
#mpd {
color: black;
}
#clock,
#pulseaudio,
#memory,
#cpu,
#battery,
#custom-gpu,
#mpd,
#network,
#custom-pacman,
#disk {
padding: 0 10px;
}

View File

@ -1,54 +0,0 @@
window {
margin: 5px;
border: 2px solid white;
/*background-color: rgba(44,62,80,0.8);*/
background-color: #1a1a1a;
/* background: transparent; */
/* background: transparent; */
}
#input {
margin: 5px;
background: transparent;
color: white;
/* border: 2px solid blue; */
/* background-color: blue; */
}
#inner-box {
margin: 5px;
/* border: 2px solid yellow; */
/* background-color: yellow; */
}
#outer-box {
margin: 5px;
/* border: 2px solid green; */
border: 2px transparent;
/* background-color: green; */
}
#scroll {
margin: 5px;
/* border: 2px solid orange; */
/* background-color: orange; */
}
#text {
margin: 5px;
color: white;
/* border: 2px solid cyan; */
/* background-color: cyan; */
}
#entry:selected {
background-color: rgba(0,0,0,0);
/* text-decoration: underline; */
/* text-decoration-color: white; */
}
#text:selected {
/* background-color: red; */
text-decoration: underline;
text-decoration-color: white;
}

1
.gitignore vendored
View File

@ -1 +0,0 @@
.vim/plugged

File diff suppressed because it is too large Load Diff

15
.vimrc
View File

@ -16,7 +16,7 @@ Plug 'rust-lang/rust.vim', {'for': 'rust'}
" Syntax checking " Syntax checking
"Plug 'Valloric/YouCompleteMe' " alternative #1, full-blown "Plug 'Valloric/YouCompleteMe' " alternative #1, full-blown
Plug 'dense-analysis/ale' Plug 'w0rp/ale',
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Useful plugins " Useful plugins
@ -29,10 +29,6 @@ Plug 'ervandew/supertab'
Plug 'reedes/vim-lexical' Plug 'reedes/vim-lexical'
Plug 'majutsushi/tagbar' Plug 'majutsushi/tagbar'
" Search
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Snippets " Snippets
Plug 'sirver/ultisnips' Plug 'sirver/ultisnips'
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
@ -62,11 +58,10 @@ filetype plugin indent on
syntax on syntax on
"set t_Co=256 "set t_Co=256
set termguicolors set termguicolors
set background=light set background=dark
"let base16colorspace=256 "let base16colorspace=256
"colorscheme base16-solarized-light "colorscheme base16-solarized-dark
"colorscheme base16-gruvbox-dark-hard colorscheme base16-gruvbox-dark-hard
colorscheme base16-gruvbox-dark-medium
"colorscheme base16-default-dark "colorscheme base16-default-dark
@ -169,7 +164,7 @@ let g:ale_linters = {
\'javascript': ['standard'], \'javascript': ['standard'],
\'vue': ['standard --plugin html "**/*.{js,vue}"'], \'vue': ['standard --plugin html "**/*.{js,vue}"'],
\'jsx': ['standard --plugin html "**/*.{js,jsx}"'], \'jsx': ['standard --plugin html "**/*.{js,jsx}"'],
\'rust': ['analyzer'] \'rust': ['cargo']
\} \}
let b:ale_fixers = { let b:ale_fixers = {
\'*': ['remove_trailing_lines', 'trim_whitespace'], \'*': ['remove_trailing_lines', 'trim_whitespace'],

View File

@ -13,6 +13,12 @@ export COCOS_CONSOLE_ROOT=${HOME}/Sovellukset/cocos2d-js-v3.6.1/tools/cocos2d-co
export IONIC_INSTALL=${HOME}/Asiakirjat/Work/Android/ionic/node_modules/.bin export IONIC_INSTALL=${HOME}/Asiakirjat/Work/Android/ionic/node_modules/.bin
export PATH=$IONIC_INSTALL:$COCOS_CONSOLE_ROOT:$PATH export PATH=$IONIC_INSTALL:$COCOS_CONSOLE_ROOT:$PATH
# npm without sudo
# https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
export NPM_PACKAGES=${HOME}/.npm-packages
export NODE_PATH=$NPM_PACKAGES/lib/node_modules:$NODE_PATH
export PATH=$NPM_PACKAGES/bin:$PATH
# Local # Local
export PATH=/usr/local/bin:$PATH export PATH=/usr/local/bin:$PATH
export PATH=${HOME}/.local/bin:$PATH export PATH=${HOME}/.local/bin:$PATH
@ -25,7 +31,7 @@ export PATH=$LANXU_SCRIPTS_ROOT:$PATH
#export XDG_CURRENT_DESKTOP=gnome #export XDG_CURRENT_DESKTOP=gnome
# export QT_STYLE_OVERRIDE='adwaita' # export QT_STYLE_OVERRIDE='adwaita'
# qt5-styleplugins must be installed to set this to gtk2 # 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_AUTO_SCREEN_SCALE_FACTOR=0
#export QT_SCALE_FACTOR=1 #export QT_SCALE_FACTOR=1
@ -37,10 +43,8 @@ export WINEDLLOVERRIDES="winemenubuilder.exe=d;winegstreamer=" # No more desktop
# Npm with no sudo # Npm with no sudo
# https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md # https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
export NPM_PACKAGES="${HOME}/.npm-packages" export NPM_PACKAGES="${HOME}/.npm-packages"
# export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH" # Do not enable by default export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export PATH="$PATH:$NPM_PACKAGES/bin" export PATH="$NPM_PACKAGES/bin:$PATH"
export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man"
# dotnet
export PATH="${HOME}/.dotnet:$PATH" export PATH="${HOME}/.dotnet:$PATH"
# Emscripten # Emscripten
@ -69,10 +73,3 @@ export TERMCMD=$TERMINAL
# exec startx # exec startx
#fi #fi
export WORKON_HOME="${HOME}/Envs" export WORKON_HOME="${HOME}/Envs"
# Rootless docker (https://docs.docker.com/engine/security/rootless/)
export PATH=/home/lanxu/bin:$PATH
export DOCKER_HOST=unix:///run/user/1000/docker.sock
# nixOS integration
#export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"

11
.zshrc
View File

@ -52,8 +52,6 @@ alias ll="exa -lh"
alias la="exa -a" alias la="exa -a"
alias lp="keepass.sh" alias lp="keepass.sh"
alias ranger="ranger" alias ranger="ranger"
alias vim="nvim"
alias vimdiff="nvim -d"
#alias lf="TCELL_TRUECOLOR=on lf" #alias lf="TCELL_TRUECOLOR=on lf"
alias search="search.sh" alias search="search.sh"
#alias ls="ls -N --time-style=long-iso --color=auto" #alias ls="ls -N --time-style=long-iso --color=auto"
@ -69,8 +67,6 @@ alias rbackup="restic -r rclone:hubic:ChimeraLinux"
alias bat="bat --theme base16" alias bat="bat --theme base16"
alias wine32="WINEPREFIX=~/.wine32 wine" alias wine32="WINEPREFIX=~/.wine32 wine"
alias resetkbcolors="/usr/bin/g512-led -p /etc/g810-led/profile" alias resetkbcolors="/usr/bin/g512-led -p /etc/g810-led/profile"
alias showerrors="journalctl -p 3 -xb"
alias browsephone="mount-phone | xargs -I % lf %"
# alias steam="DBUS_SESSION_BUS_ADDRESS=unix:abstract=/dev/null steam" # alias steam="DBUS_SESSION_BUS_ADDRESS=unix:abstract=/dev/null steam"
# https://github.com/chriskempson/base16-shell # https://github.com/chriskempson/base16-shell
# git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell # git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
@ -88,7 +84,8 @@ alias browsephone="mount-phone | xargs -I % lf %"
function auradd { function auradd {
pkg=$1 pkg=$1
aur sync --no-view --no-confirm --rebuild --database localrepo "$pkg" >&2 && sudo pacman -Sy "$pkg" aur sync --no-view --no-confirm --rebuild --database localrepo "$pkg" >&2
sudo pacman -Sy "$pkg"
} }
function aurrm { function aurrm {
@ -109,10 +106,6 @@ function aurupdate {
sudo pacman -Syu sudo pacman -Syu
} }
function aurclear {
find ~/.cache/aurutils/sync -type d -name .git -execdir git clean -xf \;
}
function c { function c {
echo "scale=2; $@" | bc echo "scale=2; $@" | bc
} }