sway: remove border and gaps
This commit is contained in:
@@ -11,12 +11,12 @@ SFMono also provides icons.
|
|||||||
|
|
||||||
## 'invisible' deps
|
## 'invisible' deps
|
||||||
### for sway
|
### for sway
|
||||||
+ `waybar` (cool bar)
|
+ `waybar`
|
||||||
+ `SwayNotificationCenter` - default conf
|
+ `SwayNotificationCenter` - default conf
|
||||||
+ `bemenu` (dmenu replacement)
|
+ `bemenu` (dmenu replacement)
|
||||||
+ `slurp`, `grim`, `swappy` (screenshot)
|
+ `slurp`, `grim`, `swappy` (screenshot)
|
||||||
|
|
||||||
### other
|
### other (used in scripts)
|
||||||
+ `fzf`
|
+ `fzf`
|
||||||
+ `ripgrep`
|
+ `ripgrep`
|
||||||
+ `ripgrep-all`
|
+ `ripgrep-all`
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ env:
|
|||||||
|
|
||||||
window:
|
window:
|
||||||
padding:
|
padding:
|
||||||
x: 10
|
x: 0
|
||||||
y: 10
|
y: 0
|
||||||
|
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ set $bar_bg #323232
|
|||||||
|
|
||||||
# clientclass border backgr. text indicator
|
# clientclass border backgr. text indicator
|
||||||
client.focused $green $green #ffffff $green
|
client.focused $green $green #ffffff $green
|
||||||
client.focused_inactive $baseA2 $baseA2 $baseB0 $baseA2
|
client.focused_inactive $bar_bg $bar_bg $baseB0 $bar_bg
|
||||||
client.unfocused $baseA2 $baseA2 $baseB0 $baseA2
|
client.unfocused $bar_bg $bar_bg $baseB0 $bar_bg
|
||||||
client.urgent $yellow $yellow $baseB3 $orange
|
client.urgent $yellow $yellow $baseB3 $orange
|
||||||
|
|
||||||
# Output configuration
|
# Output configuration
|
||||||
@@ -86,11 +86,11 @@ input type:keyboard {
|
|||||||
bindsym $mod+Shift+Backspace kill
|
bindsym $mod+Shift+Backspace kill
|
||||||
|
|
||||||
# bemenu
|
# bemenu
|
||||||
set $bemenu bemenu -l 7 --tf "#859900" --hf "#859900" --nb "#282828" --hb "#383838" --tb "#282828" --fb "#282828" --fn "SFMono Nerd Font 13" -i -H 30
|
set $bemenu bemenu -l 7 --tf "#859900" --hf "#282828" --nb "#282828" --hb "#859900" --tb "#282828" --fb "#282828" --fn "SFMono Nerd Font 13" -i -H 25
|
||||||
set $files fd -I "pdf$" $HOME | cut -f 4- -d "/"
|
set $files fd -I "pdf$" $HOME | cut -f 4- -d "/"
|
||||||
set $lock_screen printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nshutdown now" | $bemenu -l 3 -p "power" | xargs -d '\n' -r /bin/bash -c
|
set $lock_screen printf "/home/marc/.local/bin/lock.sh\nsystemctl suspend\nshutdown now" | $bemenu -l 3 -p "power" | xargs -d '\n' -r /bin/bash -c
|
||||||
bindsym $mod+d exec dmenu_path | $bemenu | xargs swaymsg exec --
|
bindsym $mod+d exec dmenu_path | $bemenu -p 'run' | xargs swaymsg exec --
|
||||||
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdfs' | xargs -d '\n' -r xdg-open
|
bindsym $mod+p exec $files | $bemenu -l 20 -p 'pdf' | xargs -d '\n' -r xdg-open
|
||||||
bindsym $mod+Ctrl+Backspace exec $lock_screen
|
bindsym $mod+Ctrl+Backspace exec $lock_screen
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
@@ -168,15 +168,18 @@ input type:keyboard {
|
|||||||
bindsym $mod+Control+$right move workspace to output right
|
bindsym $mod+Control+$right move workspace to output right
|
||||||
|
|
||||||
# Layout stuff:
|
# Layout stuff:
|
||||||
|
# titlebar_border_thickness 0
|
||||||
|
# titlebar_padding 0
|
||||||
workspace_layout stacking
|
workspace_layout stacking
|
||||||
title_align center
|
title_align center
|
||||||
default_border pixel 3
|
default_border pixel 0
|
||||||
default_floating_border pixel 3
|
default_floating_border pixel 0
|
||||||
# hide title and border, if only one application open
|
# hide title and border, if only one application open
|
||||||
hide_edge_borders --i3 smart
|
hide_edge_borders --i3 smart
|
||||||
|
|
||||||
gaps inner 5
|
# just show gaps between windows
|
||||||
smart_gaps off
|
# gaps inner 5
|
||||||
|
# gaps outer -5
|
||||||
|
|
||||||
# Make the current focus fullscreen
|
# Make the current focus fullscreen
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
@@ -201,7 +204,6 @@ input type:keyboard {
|
|||||||
for_window [app_id="org.keepassxc.KeePassXC"] move container to workspace number $ws9
|
for_window [app_id="org.keepassxc.KeePassXC"] move container to workspace number $ws9
|
||||||
|
|
||||||
# Status Bar
|
# Status Bar
|
||||||
# man 5 sway-bar
|
|
||||||
bar {
|
bar {
|
||||||
position top
|
position top
|
||||||
tray_output none
|
tray_output none
|
||||||
|
|||||||
@@ -50,16 +50,8 @@ set-option -g mouse on
|
|||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
# some styling
|
# styling
|
||||||
#set -g status-bg white
|
|
||||||
#set -g window-status-current-style "underscore, bold"
|
|
||||||
#set -g window-status-current-format "#I:#W"
|
|
||||||
#set -g window-status-format "#I:#W"
|
|
||||||
#set -g status-left " "
|
|
||||||
#set -g status-right "#S @ #h - %I:%M %p "
|
|
||||||
|
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
set -g pane-border-lines heavy
|
|
||||||
|
|
||||||
# generated, using https://github.com/edkolev/tmuxline.vim
|
# generated, using https://github.com/edkolev/tmuxline.vim
|
||||||
set -g status-justify "left"
|
set -g status-justify "left"
|
||||||
|
|||||||
@@ -85,4 +85,6 @@ let g:netrw_liststyle = 3 " Tree-like structure
|
|||||||
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
||||||
|
|
||||||
" ============================== Macros and Mappings
|
" ============================== Macros and Mappings
|
||||||
map <leader>e :CtrlP<CR>
|
map <C-x><C-f> :CtrlP<CR>
|
||||||
|
map <C-s> :CtrlPLine<CR>
|
||||||
|
map <C-x><C-s> :w<CR>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
|
|
||||||
// If height property would be not present, it'd be calculated dynamically
|
// If height property would be not present, it'd be calculated dynamically
|
||||||
"height": 30,
|
"height": 36,
|
||||||
|
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
"modules-center": [
|
"modules-center": [
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
|
"temperature",
|
||||||
"cpu",
|
"cpu",
|
||||||
"backlight",
|
"backlight",
|
||||||
"battery",
|
"battery",
|
||||||
@@ -124,7 +125,7 @@
|
|||||||
|
|
||||||
"sway/window": {
|
"sway/window": {
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"max-length": 80
|
"max-length": 120
|
||||||
},
|
},
|
||||||
|
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
@@ -134,7 +135,7 @@
|
|||||||
"format-icons": {
|
"format-icons": {
|
||||||
"1": "",
|
"1": "",
|
||||||
"2": "",
|
"2": "",
|
||||||
"3": "ﭮ",
|
"3": "ﭮ",
|
||||||
"4": "",
|
"4": "",
|
||||||
"5": "",
|
"5": "",
|
||||||
"8": "",
|
"8": "",
|
||||||
@@ -164,6 +165,7 @@
|
|||||||
|
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
|
"thermal-zone": 10,
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "{icon} {temperatureC}°C",
|
"format": "{icon} {temperatureC}°C",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Each module l*/
|
/* Each module */
|
||||||
#idle_inhibitor,
|
#idle_inhibitor,
|
||||||
#battery,
|
#battery,
|
||||||
#backlight,
|
#backlight,
|
||||||
@@ -66,13 +66,14 @@
|
|||||||
#network,
|
#network,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#temperature,
|
#temperature,
|
||||||
|
#window,
|
||||||
|
#workspaces button,
|
||||||
#tray {
|
#tray {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #282828;
|
background-color: #282828;
|
||||||
margin-top: 3px;
|
margin-top: 5px;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 5px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
padding-bottom: 2px;
|
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
@@ -161,10 +162,6 @@
|
|||||||
/* No styles */
|
/* No styles */
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-spotify {
|
|
||||||
color: rgb(102, 220, 105);
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
#temperature {
|
||||||
/* No styles */
|
/* No styles */
|
||||||
}
|
}
|
||||||
@@ -174,31 +171,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
/* No styles */
|
/* Empty space on the right */
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
|
||||||
/* font-weight: bold; */
|
|
||||||
border-radius: 5px;
|
|
||||||
background-color: #282828;
|
|
||||||
margin-top: 3px;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
margin-left: 5px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
border-top: 2px solid transparent;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 5px;
|
|
||||||
margin-top: 3px;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
@@ -208,6 +186,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: #2c303c;
|
background-color: #dc322f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* remove weird GTK hover effect */
|
||||||
|
#workspaces button:hover {
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
background: #282828;
|
||||||
|
border: #282828;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused:hover {
|
||||||
|
background: #859900;
|
||||||
|
border: #859900;
|
||||||
|
}
|
||||||
|
|||||||
@@ -23,24 +23,24 @@
|
|||||||
\usepackage{wrapfig}
|
\usepackage{wrapfig}
|
||||||
|
|
||||||
%%% make \paragraph{} and \subparagraph{} look like a normal subsection
|
%%% make \paragraph{} and \subparagraph{} look like a normal subsection
|
||||||
\makeatletter
|
%\makeatletter
|
||||||
\renewcommand\paragraph{%
|
%\renewcommand\paragraph{%
|
||||||
\@startsection{paragraph}{4}{0mm}%
|
% \@startsection{paragraph}{4}{0mm}%
|
||||||
{-\baselineskip}%
|
% {-\baselineskip}%
|
||||||
{.5\baselineskip}%
|
% {.5\baselineskip}%
|
||||||
{\normalfont\normalsize\bfseries}}
|
% {\normalfont\normalsize\bfseries}}
|
||||||
\makeatother
|
%\makeatother
|
||||||
|
%
|
||||||
\makeatletter
|
%\makeatletter
|
||||||
\renewcommand\subparagraph{%
|
%\renewcommand\subparagraph{%
|
||||||
\@startsection{subparagraph}{4}{0mm}%
|
% \@startsection{subparagraph}{4}{0mm}%
|
||||||
{-\baselineskip}%
|
% {-\baselineskip}%
|
||||||
{.5\baselineskip}%
|
% {.5\baselineskip}%
|
||||||
{\normalfont\normalsize\bfseries}}
|
% {\normalfont\normalsize\bfseries}}
|
||||||
\makeatother
|
%\makeatother
|
||||||
|
%
|
||||||
\setcounter{tocdepth}{5}
|
%\setcounter{tocdepth}{5}
|
||||||
\setcounter{secnumdepth}{5}
|
%\setcounter{secnumdepth}{5}
|
||||||
|
|
||||||
%%% links in toc etc
|
%%% links in toc etc
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
|
|||||||
Reference in New Issue
Block a user