mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
Improve translation handling
This commit is contained in:
parent
9433c552c4
commit
d94ecc18ad
5 changed files with 19 additions and 12 deletions
|
@ -343,7 +343,7 @@ font:
|
|||
#family: JetBrainsMono Nerd Font
|
||||
#family: Iosevka Term
|
||||
#family: cozette
|
||||
#family: Terminus (TTF)
|
||||
family: cherry
|
||||
family: Terminus (TTF)
|
||||
#family: cherry
|
||||
#family: lucy tewi2a
|
||||
#family: Scientifica
|
||||
|
|
|
@ -42,7 +42,6 @@ alert = #bd2c40
|
|||
[global/wm]
|
||||
margin-bottom = 0
|
||||
|
||||
|
||||
[bar/main]
|
||||
monitor = ${env:MONITOR:}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -171,7 +171,7 @@ myLayout = avoidStruts
|
|||
||| (rename "Horizon" $ onlySpacing $ mouseResizableTileMirrored {draggerType = dragger})
|
||||
||| (rename "BSP" $ spacingAndGaps $ borderResize $ emptyBSP)
|
||||
||| (rename "ThreeCol" $ makeTabbed $ spacingAndGaps $ reflectHoriz $ ThreeColMid 1 (3/100) (1/2))
|
||||
||| (rename "TabbedRow" $ makeTabbed $ spacingAndGaps $ zoomRow))
|
||||
||| (rename "TabbedRow" $ makeTabbed $ spacingAndGaps $ zoomRow))
|
||||
|
||||
vertScreenLayouts =
|
||||
((rename "ThreeCol" $ makeTabbed $ spacingAndGaps $ Mirror $ reflectHoriz $ ThreeColMid 1 (3/100) (1/2))
|
||||
|
@ -399,9 +399,15 @@ myKeys = concat [ zoomRowBindings, tabbedBindings, multiMonitorBindings, program
|
|||
withSelectionCommands =
|
||||
[ ("Google", XSel.transformPromptSelection ("https://google.com/search?q=" ++) "qutebrowser")
|
||||
, ("Hoogle", XSel.transformPromptSelection ("https://hoogle.haskell.org/?hoogle=" ++) "qutebrowser")
|
||||
, ("Translate", XSel.transformPromptSelection ("https://translate.google.com/#view=home&op=translate&sl=auto&tl=en&text=" ++) "qutebrowser")
|
||||
, ("Translate", XSel.getSelection >>= translateMenu)
|
||||
]
|
||||
|
||||
translateMenu :: String -> X ()
|
||||
translateMenu input = do
|
||||
selectedLanguage <- Rofi.promptSimple def ["de", "en", "fr"]
|
||||
translated <- runProcessWithInput "trans" [":" ++ selectedLanguage, input, "--no-ansi"] ""
|
||||
notify "Translation" translated
|
||||
|
||||
|
||||
specialCommands :: [(String, X ())]
|
||||
specialCommands =
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
.tab-background:not[visuallyselected] {
|
||||
background: var(--mff-tab-selected-bg) !important;
|
||||
/*opacity: 0.5 !important;*/
|
||||
opacity: 1.0 !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
/* This positions the tabs under the navaigator container */
|
||||
|
@ -119,7 +119,6 @@ hbox.tab-content[pinned="true"] .tab-text {
|
|||
--tab-loading-fill: #033433 !important;
|
||||
}
|
||||
|
||||
|
||||
.tab-label-container:not([textoverflow]) {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
@ -166,6 +165,11 @@ hbox.tab-content[pinned="true"] .tab-text {
|
|||
|
||||
/* Toolbar {{{ */
|
||||
|
||||
::selection {
|
||||
background-color: #8ec07c !important;
|
||||
color: #282828 !important;
|
||||
}
|
||||
|
||||
.urlbar-icon > image {
|
||||
fill: var(--mff-icon-color) !important;
|
||||
color: var(--mff-icon-color) !important;
|
||||
|
@ -181,7 +185,8 @@ hbox.tab-content[pinned="true"] .tab-text {
|
|||
.toolbarbutton-1 {
|
||||
filter: brightness(80%) sepia(50%);
|
||||
}
|
||||
#back-button, #forward-button {
|
||||
#back-button,
|
||||
#forward-button {
|
||||
filter: brightness(80%) sepia(100%);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
@ -226,7 +231,6 @@ hbox.tab-content[pinned="true"] .tab-text {
|
|||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
#urlbar-input {
|
||||
font-size: var(--mff-urlbar-font-size) !important;
|
||||
color: var(--mff-urlbar-color) !important;
|
||||
|
@ -373,9 +377,8 @@ toolbarseparator {
|
|||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* something */
|
||||
.toolbarbutton-icon ,
|
||||
.toolbarbutton-icon,
|
||||
.toolbarbutton-icon::after {
|
||||
fill: #ebdbb2 !important;
|
||||
}
|
||||
|
@ -384,5 +387,4 @@ toolbarseparator {
|
|||
color: red;
|
||||
}
|
||||
|
||||
|
||||
/* }}} */
|
||||
|
|
Loading…
Reference in a new issue